Installing ethercat repositories
08 Sep 2024 10:48 #309640
by rodw
Installing ethercat repositories was created by rodw
Sometimes you need to install the ethercat repositories and don't have the linuxcnc ISO handy or:
1. ethercat's security key has expired and needs updating
2. You are not running Debian Bookworm installed by Linuxcnc's ISO on the downloads page.
3. You are running linuxcnc on hardware that is not directly supported by our ISO
Please proceed as follows.
1. download the attached script.
2. rename it to be ecat.sh (eg remove .txt)
3. Navigate to the download folder in a terminal console
4. type: sudo ./ecat.sh
Follow the steps outlined in this sticky
forum.linuxcnc.org/ethercat/45336-etherc...-how-to-step-by-step
The script will delete the ethercat apt sources file if it exists (and has the same name as used in our ISO.)
Mods might like to sticky this as some people have needed this recently (Due to point 1)
1. ethercat's security key has expired and needs updating
2. You are not running Debian Bookworm installed by Linuxcnc's ISO on the downloads page.
3. You are running linuxcnc on hardware that is not directly supported by our ISO
Please proceed as follows.
1. download the attached script.
2. rename it to be ecat.sh (eg remove .txt)
3. Navigate to the download folder in a terminal console
4. type: sudo ./ecat.sh
Follow the steps outlined in this sticky
forum.linuxcnc.org/ethercat/45336-etherc...-how-to-step-by-step
The script will delete the ethercat apt sources file if it exists (and has the same name as used in our ISO.)
Mods might like to sticky this as some people have needed this recently (Due to point 1)
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 18733
- Thank you received: 6299
09 Sep 2024 21:44 #309793
by tommylight
Should we unsticky the other topic?
The titles are very similar.
Replied by tommylight on topic Installing ethercat repositories
Done, thank you.Mods might like to sticky this as some people have needed this recently (Due to point 1)
Should we unsticky the other topic?
The titles are very similar.
Please Log in or Create an account to join the conversation.
09 Sep 2024 21:47 #309795
by rodw
Replied by rodw on topic Installing ethercat repositories
Thanks Tommy,
The other needs to stay a sticky as it has a lot of additional steps that can't be scripted
This one just allows people to install the repositories if they are not on their version of linux or the etherlabmaster's security key changes (which will happen every 2 years)
The other needs to stay a sticky as it has a lot of additional steps that can't be scripted
This one just allows people to install the repositories if they are not on their version of linux or the etherlabmaster's security key changes (which will happen every 2 years)
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
11 Sep 2024 17:00 #309922
by cncLab
Replied by cncLab on topic Installing ethercat repositories
Hello rodw
A few weeks ago I run apt update to both amd64 and Raspi5 successfully. Now I have linuxcnc v2.9.3 / Ethercat up and running on both platforms but I can not any more update or upgrade either due to errors in repositories (new keys?).
Additionally it will require much effort to scratch install the provided ISO (linuxcnc.org/downloads/) so I would prefer to skip this option
So just to understand, by running the above script ecat.sh I will be able to nomally update my systems or I have to do something else?
I would appreciate your response
Best Regards and thanks in advance
Konstantinos
A few weeks ago I run apt update to both amd64 and Raspi5 successfully. Now I have linuxcnc v2.9.3 / Ethercat up and running on both platforms but I can not any more update or upgrade either due to errors in repositories (new keys?).
Additionally it will require much effort to scratch install the provided ISO (linuxcnc.org/downloads/) so I would prefer to skip this option
So just to understand, by running the above script ecat.sh I will be able to nomally update my systems or I have to do something else?
I would appreciate your response
Best Regards and thanks in advance
Konstantinos
Please Log in or Create an account to join the conversation.
12 Sep 2024 05:02 #309963
by rodw
Replied by rodw on topic Installing ethercat repositories
Yes, this script won't break anything. Its a variant of the script I use in some of the installers that etherlabmaster helped me with.
I think the problem is the security key they use has a 2 year life then it expires. This script simply removes the file causing the key error, gets the key and creates the required apt file. Then
sudo apt update
sudo apt upgrade
will correctly update your system
I think the problem is the security key they use has a 2 year life then it expires. This script simply removes the file causing the key error, gets the key and creates the required apt file. Then
sudo apt update
sudo apt upgrade
will correctly update your system
Please Log in or Create an account to join the conversation.
26 Sep 2024 01:25 - 26 Sep 2024 01:28 #310801
by Masa
Replied by Masa on topic Installing ethercat repositories
Hello rodw.
I tried to install LinuxCNC and the EtherCAT driver for the first time in a while, but the installation from the ISO image was interrupted by an error. After reading the forum, I ran ecat.sh and then tried to install using apt, but the installation could not be completed due to the following error. I'm in trouble.
I'm working in a Japanese environment, so I apologize if the error message contains Japanese.
thank you.
I tried to install LinuxCNC and the EtherCAT driver for the first time in a while, but the installation from the ISO image was interrupted by an error. After reading the forum, I ran ecat.sh and then tried to install using apt, but the installation could not be completed due to the following error. I'm in trouble.
I'm working in a Japanese environment, so I apologize if the error message contains Japanese.
thank you.
sg01@SG01-1015:/usr/src$ sudo apt install linuxcnc-ethercat
[sudo] sg01 のパスワード:
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています... 完了
状態情報を読み取っています... 完了
以下の追加パッケージがインストールされます:
autoconf autoconf-archive automake autotools-dev ethercat-dkms
ethercat-master libethercat libltdl-dev libtool m4
提案パッケージ:
gnu-standards autoconf-doc libtool-doc gfortran | fortran95-compiler gcj-jdk
m4-doc
以下のパッケージが新たにインストールされます:
autoconf autoconf-archive automake autotools-dev ethercat-dkms
ethercat-master libethercat libltdl-dev libtool linuxcnc-ethercat m4
アップグレード: 0 個、新規インストール: 11 個、削除: 0 個、保留: 88 個。
5,372 kB のアーカイブを取得する必要があります。
この操作後に追加で 86.5 MB のディスク容量が消費されます。
続行しますか? [Y/n] y
取得:1 http://deb.debian.org/debian bookworm/main amd64 autoconf-archive all 20220903-3 [775 kB]
取得:2 http://deb.debian.org/debian bookworm/main amd64 m4 amd64 1.4.19-3 [287 kB]
取得:3 http://deb.debian.org/debian bookworm/main amd64 autoconf all 2.71-3 [332 kB]
取得:4 http://deb.debian.org/debian bookworm/main amd64 autotools-dev all 20220109.1 [51.6 kB]
取得:5 http://deb.debian.org/debian bookworm/main amd64 automake all 1:1.16.5-1.3 [823 kB]
取得:6 http://deb.debian.org/debian bookworm/main amd64 libtool all 2.4.7-7~deb12u1 [517 kB]
取得:7 http://deb.debian.org/debian bookworm/main amd64 libltdl-dev amd64 2.4.7-7~deb12u1 [164 kB]
エラー:8 http://download.opensuse.org/repositories/science:/EtherLab/Debian_12 ./ ethercat-dkms 1.6.0.g8330bca-1+3.1
404 Not Found [IP: 195.135.223.226 80]
エラー:9 http://download.opensuse.org/repositories/science:/EtherLab/Debian_12 ./ ethercat-master 1.6.0.g8330bca-1+3.1
404 Not Found [IP: 195.135.223.226 80]
エラー:10 http://download.opensuse.org/repositories/science:/EtherLab/Debian_12 ./ libethercat 1.6.0.g8330bca-1+3.1
404 Not Found [IP: 195.135.223.226 80]
エラー:11 http://download.opensuse.org/repositories/science:/EtherLab/Debian_12 ./ linuxcnc-ethercat 1.39.0.g4299f7a-0
404 Not Found [IP: 195.135.223.226 80]
2,951 kB を 2秒 で取得しました (1,440 kB/s)
E: http://download.opensuse.org/repositories/science:/EtherLab/Debian_12/all/ethercat-dkms_1.6.0.g8330bca-1%2b3.1_all.deb の取得に失敗しました 404 Not Found [IP: 195.135.223.226 80]
E: http://download.opensuse.org/repositories/science:/EtherLab/Debian_12/amd64/ethercat-master_1.6.0.g8330bca-1%2b3.1_amd64.deb の取得に失敗しました 404 Not Found [IP: 195.135.223.226 80]
E: http://download.opensuse.org/repositories/science:/EtherLab/Debian_12/amd64/libethercat_1.6.0.g8330bca-1%2b3.1_amd64.deb の取得に失敗しました 404 Not Found [IP: 195.135.223.226 80]
E: http://download.opensuse.org/repositories/science:/EtherLab/Debian_12/amd64/linuxcnc-ethercat_1.39.0.g4299f7a-0_amd64.deb の取得に失敗しました 404 Not Found [IP: 195.135.223.226 80]
E: いくつかのアーカイブを取得できません。apt-get update を実行するか --fix-missing オプションを付けて試してみてください。
sg01@SG01-1015:/usr/src$
Last edit: 26 Sep 2024 01:28 by Masa.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 18733
- Thank you received: 6299
26 Sep 2024 01:48 - 26 Sep 2024 01:49 #310802
by tommylight
Replied by tommylight on topic Installing ethercat repositories
Versions of deb files have changed so none of the existing methods work, try manually downloading and installing from here:
download.opensuse.org/repositories/science:/EtherLab/Debian_12/
and here
download.opensuse.org/repositories/scien...erLab/Debian_12/all/
See the error report and download only files mentioned near the end
download.opensuse.org/repositories/science:/EtherLab/Debian_12/
and here
download.opensuse.org/repositories/scien...erLab/Debian_12/all/
See the error report and download only files mentioned near the end
Last edit: 26 Sep 2024 01:49 by tommylight.
Please Log in or Create an account to join the conversation.
26 Sep 2024 03:00 #310805
by Masa
Replied by Masa on topic Installing ethercat repositories
Thanks tommylight.
Sorry, but what should I install and in what order?
Sorry, but what should I install and in what order?
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 18733
- Thank you received: 6299
26 Sep 2024 10:31 #310822
by tommylight
Files in the above folders ending with .deb, but they will have different numbering in the names.
Replied by tommylight on topic Installing ethercat repositories
E: http://download.opensuse.org/repositories/science:/EtherLab/Debian_12/all/ethercat-dkms_1.6.0.g8330bca-1%2b3.1_all.deb の取得に失敗しました 404 Not Found [IP: 195.135.223.226 80]
E: http://download.opensuse.org/repositories/science:/EtherLab/Debian_12/amd64/ethercat-master_1.6.0.g8330bca-1%2b3.1_amd64.deb の取得に失敗しました 404 Not Found [IP: 195.135.223.226 80]
E: http://download.opensuse.org/repositories/science:/EtherLab/Debian_12/amd64/libethercat_1.6.0.g8330bca-1%2b3.1_amd64.deb の取得に失敗しました 404 Not Found [IP: 195.135.223.226 80]
E: http://download.opensuse.org/repositories/science:/EtherLab/Debian_12/amd64/linuxcnc-ethercat_1.39.0.g4299f7a-0_amd64.deb
Please Log in or Create an account to join the conversation.
27 Sep 2024 16:45 - 27 Sep 2024 16:50 #310906
by Rios
Replied by Rios on topic Installing ethercat repositories
After following the advice from tommylight and downloading and installing the files in that order did in fact work , the names aren't the same but i will post the files that worked for me .
After downloading i wasn't able to install by the GUI Package Installer , so i used the cmd :
the same for the rest of the files , after that is just to continuing to follow the tutorial from this link and it will be done.
Thanks to tommylight and rodw for the continuos help.
After downloading i wasn't able to install by the GUI Package Installer , so i used the cmd :
cd Downloads/
sudo dpkg -i ethercat-dkms_1.6.1.g419f621-1+8.3_all.deb
the same for the rest of the files , after that is just to continuing to follow the tutorial from this link and it will be done.
Thanks to tommylight and rodw for the continuos help.
Last edit: 27 Sep 2024 16:50 by Rios.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
Time to create page: 0.104 seconds