- Configuring LinuxCNC
- Advanced Configuration
- EtherCAT
- Ethercat installation from repositories - how to step by step
Ethercat installation from repositories - how to step by step
- vanquang
- Offline
- New Member
-
Less
More
- Posts: 7
- Thank you received: 0
23 Dec 2024 01:00 #317167
by vanquang
Replied by vanquang on topic Ethercat installation from repositories - how to step by step
Dear jjdege.
How can you solve the error when you install the ethercat package by command "sudo apt install -y linux-headers-(uname -r) ethercat-master linuxcnc-ethercat?
How can you solve the error when you install the ethercat package by command "sudo apt install -y linux-headers-(uname -r) ethercat-master linuxcnc-ethercat?
Please Log in or Create an account to join the conversation.
- jjdege
-
- Offline
- Premium Member
-
Less
More
- Posts: 96
- Thank you received: 30
23 Dec 2024 23:07 - 23 Dec 2024 23:15 #317240
by jjdege
Replied by jjdege on topic Ethercat installation from repositories - how to step by step
there is an error in the commandtry this, it doesn't give me any errors
sudo apt install -y linux-headers-$(uname -r) ethercat-master linuxcnc-ethercat
Last edit: 23 Dec 2024 23:15 by jjdege.
Please Log in or Create an account to join the conversation.
- thomaseg
- Offline
- Junior Member
-
Less
More
- Posts: 37
- Thank you received: 5
29 Dec 2024 09:58 #317597
by thomaseg
Replied by thomaseg on topic Ethercat installation from repositories - how to step by step
I'm also seeing issues with the GPG-keys in 2.9.3. I just did a fresh install from the iso found on linuxcnc.org/downloads/ and the first command i ran was:...not sure why it isn't working...
I'm but no means a Linux guru, so my attempt to fix this was to try to jumble together a solution from this thread. I ended up fetching a new key:...but that didn't work, so i ended up deleting the old keys and copying the new one into their place:
...i'm pretty sure this isn't the correct way to fix it, but now i can run apt update without errors. Maybe it can help someone else. I believe this is a bug in 2.9.3, since it was a completely fresh install(with available internet connection) and it was literaly the first command i ran and it failed...
thomas@LinuxCNC-dev:~$ sudo apt update
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://deb.debian.org/debian bookworm-updates InRelease
Hit:3 http://security.debian.org/debian-security bookworm-security InRelease
Hit:5 https://apt.packages.shiftkey.dev/ubuntu any InRelease
Get:6 http://download.opensuse.org/repositories/science:/EtherLab/Debian_12 ./ InRelease [1,575 B]
Hit:4 https://repository.qtpyvcp.com/apt develop InRelease
Err:6 http://download.opensuse.org/repositories/science:/EtherLab/Debian_12 ./ InRelease
The following signatures were invalid: EXPKEYSIG A94819A7CB97A204 science:EtherLab OBS Project <science:EtherLab@build.opensuse.org>
Hit:7 https://www.linuxcnc.org bookworm InRelease
Fetched 1,575 B in 1s (1,952 B/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
146 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://download.opensuse.org>
W: Failed to fetch http://download.opensuse.org/repositories/science:/EtherLab/Debian_12/./InRelease The following signatures were invalid: EXPKEYSIG A94819A7CB97A204 >
W: Some index files failed to download. They have been ignored, or old ones used instead.
I'm but no means a Linux guru, so my attempt to fix this was to try to jumble together a solution from this thread. I ended up fetching a new key:
KEYRING=/usr/share/keyrings/ethercat.gpg && curl -fsSL https://download.opensuse.org/repositories/science:/EtherLab/Debian_12/Release.key | gpg --dearmor | sudo tee "$KEYRING" >/dev/null
sudo rm /etc/apt/trusted.gpg.d/science_EtherLab.gpg.key.*
sudo cp /usr/share/keyrings/ethercat.gpg /etc/apt/trusted.gpg.d/science_EtherLab.gpg.key.binary.gpg
sudo cp /usr/share/keyrings/ethercat.gpg /etc/apt/trusted.gpg.d/science_EtherLab.gpg.key.chroot.gpg
...i'm pretty sure this isn't the correct way to fix it, but now i can run apt update without errors. Maybe it can help someone else. I believe this is a bug in 2.9.3, since it was a completely fresh install(with available internet connection) and it was literaly the first command i ran and it failed...
Please Log in or Create an account to join the conversation.
- rodw
-
Topic Author
- Away
- Platinum Member
-
Less
More
- Posts: 10951
- Thank you received: 3634
29 Dec 2024 10:04 #317598
by rodw
Replied by rodw on topic Ethercat installation from repositories - how to step by step
Glad you got it working.
There is another sticky to fix this
forum.linuxcnc.org/ethercat/53785-instal...thercat-repositories
There is another sticky to fix this
forum.linuxcnc.org/ethercat/53785-instal...thercat-repositories
Please Log in or Create an account to join the conversation.
- bananun
- Offline
- New Member
-
Less
More
- Posts: 14
- Thank you received: 0
31 Jan 2025 15:32 #320236
by bananun
Replied by bananun on topic Ethercat installation from repositories - how to step by step
Hi! I've tried to install ethercat to the latest RPi5 image, however it does not work, seems to be some kind of kernel mismatch. I've managed to install it and get it working with cornholio's image found here (forum.linuxcnc.org/9-installing-linuxcnc...berry-pi-5?start=310). Any idea what might be the issue? Since I'm doing a fresh install I kind of want to install the latest :) Thanks!
Please Log in or Create an account to join the conversation.
- rodw
-
Topic Author
- Away
- Platinum Member
-
Less
More
- Posts: 10951
- Thank you received: 3634
01 Feb 2025 06:49 #320294
by rodw
Replied by rodw on topic Ethercat installation from repositories - how to step by step
I suspect the issue is that the Ethercat libraries are not supported on the 6.12 kernel
If you:
1. Only post once, not three times
2. show the output of the error, we might be able to help further.
If you:
1. Only post once, not three times
2. show the output of the error, we might be able to help further.
Please Log in or Create an account to join the conversation.
- bananun
- Offline
- New Member
-
Less
More
- Posts: 14
- Thank you received: 0
01 Feb 2025 08:24 - 01 Feb 2025 08:28 #320305
by bananun
Replied by bananun on topic Ethercat installation from repositories - how to step by step
Sorry, my bad! I should have waited until I had access to the machine so I could post more info about the issue. This is what goes wrong for me with the latest RPi5 image. I've attached the full "log" as well. Is there any other data I can attach to assist? Thank you for your help in advance, I greatly appreciate it!
dpkg: dependency problems prevent configuration of ethercat-master:
ethercat-master depends on ethercat-dkms; however:
Package ethercat-dkms is not configured yet.
dpkg: error processing package ethercat-master (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linuxcnc-ethercat:
linuxcnc-ethercat depends on etherlabmaster | ethercat-master; however:
Package etherlabmaster is not installed.
Package ethercat-master is not configured yet.
dpkg: error processing package linuxcnc-ethercat (--configure):
dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils (0.26-1) ...
Processing triggers for libc-bin (2.36-9+deb12u9) ...
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for mailcap (3.70+nmu1) ...
Errors were encountered while processing:
ethercat-dkms
ethercat-master
linuxcnc-ethercat
E: Sub-process /usr/bin/dpkg returned an error code (1)
Last edit: 01 Feb 2025 08:28 by bananun.
Please Log in or Create an account to join the conversation.
- rodw
-
Topic Author
- Away
- Platinum Member
-
Less
More
- Posts: 10951
- Thank you received: 3634
01 Feb 2025 11:12 #320316
by rodw
Replied by rodw on topic Ethercat installation from repositories - how to step by step
try:
sudo apt install dkms
dkms should be a dependency of ethercat-master
maybe it needs installing manually on the pi
sudo apt install dkms
dkms should be a dependency of ethercat-master
maybe it needs installing manually on the pi
Please Log in or Create an account to join the conversation.
- rodw
-
Topic Author
- Away
- Platinum Member
-
Less
More
- Posts: 10951
- Thank you received: 3634
01 Feb 2025 11:24 #320317
by rodw
Replied by rodw on topic Ethercat installation from repositories - how to step by step
my bad. seems its not compatibleBuilding initial module for 6.12.11
Error! Bad return status for module build on kernel: 6.12.11 (aarch64)
Consult /var/lib/dkms/ethercat-dkms/1.6.2/build/make.log for more information.
dpkg: error processing package ethercat-dkms (--configure):
installed ethercat-dkms package post-installation script subprocess returned error exit status 10Possibly report a issue in Etherlabs gitlab
Error! Bad return status for module build on kernel: 6.12.11 (aarch64)
Consult /var/lib/dkms/ethercat-dkms/1.6.2/build/make.log for more information.
dpkg: error processing package ethercat-dkms (--configure):
installed ethercat-dkms package post-installation script subprocess returned error exit status 10Possibly report a issue in Etherlabs gitlab
Please Log in or Create an account to join the conversation.
- bananun
- Offline
- New Member
-
Less
More
- Posts: 14
- Thank you received: 0
01 Feb 2025 11:38 #320318
by bananun
Replied by bananun on topic Ethercat installation from repositories - how to step by step
Thank you for the reply! Sorry for the perhaps stupid questions, this is the first time for me with linuxcnc, ethercat and linux in general basically...
However I guess that means that the Etherlabs people have to do some kind of update for it to be compatible?
I guess I will continue on the 6.1.69 image from Cornholio then. I was able to update it to lcnc 2.9.4 and install ethercat through you guides (would not have been possible without them, so huge thank you!), and I guess it does not really matter to have the latest kernel right?
However I guess that means that the Etherlabs people have to do some kind of update for it to be compatible?
I guess I will continue on the 6.1.69 image from Cornholio then. I was able to update it to lcnc 2.9.4 and install ethercat through you guides (would not have been possible without them, so huge thank you!), and I guess it does not really matter to have the latest kernel right?
Please Log in or Create an account to join the conversation.
- Configuring LinuxCNC
- Advanced Configuration
- EtherCAT
- Ethercat installation from repositories - how to step by step
Time to create page: 0.110 seconds