Ethercat installation from repositories - how to step by step

More
1 year 10 months ago #317597 by thomaseg
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:
Code:
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.
...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:
Code:
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
...but that didn't work, so i ended up deleting the old keys and copying the new one into their place:
Code:
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.

More
1 year 10 months ago #317598 by rodw
Glad you got it working.
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.

More
1 year 9 months ago #320236 by bananun
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.

More
1 year 9 months ago #320294 by rodw
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.

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago - 1 year 9 months ago #320305 by bananun
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!

Code:
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)
Attachments:
Last edit: 1 year 9 months ago by bananun.

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #320316 by rodw
try:
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.

Time to create page: 1.947 seconds
Powered by Kunena Forum