- Posts: 16
- Thank you received: 0
Installing ethercat repositories
2 years 2 weeks ago #311844
by burnie
Replied by burnie on topic Installing ethercat repositories
I tried running the script on a fresh LCNC 2.9.3 install from ISO and encountered a few problems.
1. Command not found error when running "sudo ./ecat.sh"
Fixed by running "chmod +x ./ecat.sh" before
2. When running the "sudo apt update" I get this error
I fixed it by editing the /etc/apt/sources.list.d/science_EtherLab.list, changing "science_EtherLab.gpg.key.binary.gpg" to "science_EtherLab.gpg"
3. After re-running "sudo apt update" I get this warning
fix it by removing the ighvh.sources file by running "rm /etc/apt/sources.list.d/ighvh.sources"
After all that, I was able to follow Rodw instruction and successfully install Ethercat. I don't know how to code and this is my first time using Linux, so I don't know if this is the correct way to fix these problems, but I hope it at least helps other people with the same problem.
1. Command not found error when running "sudo ./ecat.sh"
Fixed by running "chmod +x ./ecat.sh" before
2. When running the "sudo apt update" I get this error
Code:
E: Conflicting values set for option Signed-By regarding source http://download.opensuse.org/repositories/science:/EtherLab/Debian_12/ ./: /etc/apt/trusted.gpg.d/science_EtherLab.gpg != /etc/apt/trusted.gpg.d/science_EtherLab.gpg.key.binary.gpg E: The list of sources could not be read.
3. After re-running "sudo apt update" I get this warning
Code:
W: Target Packages (Packages) is configured multiple times in /etc/apt/sources.list.d/ighvh.sources:1 and /etc/apt/sources.list.d/science_EtherLab.list:1 W: Target Translations (en_US) is configured multiple times in /etc/apt/sources.list.d/ighvh.sources:1 and /etc/apt/sources.list.d/science_EtherLab.list:1 W: Target Translations (en) is configured multiple times in /etc/apt/sources.list.d/ighvh.sources:1 and /etc/apt/sources.list.d/science_EtherLab.list:1 W: Target Packages (Packages) is configured multiple times in /etc/apt/sources.list.d/ighvh.sources:1 and /etc/apt/sources.list.d/science_EtherLab.list:1 W: Target Translations (en_US) is configured multiple times in /etc/apt/sources.list.d/ighvh.sources:1 and /etc/apt/sources.list.d/science_EtherLab.list:1 W: Target Translations (en) is configured multiple times in /etc/apt/sources.list.d/ighvh.sources:1 and /etc/apt/sources.list.d/science_EtherLab.list:1
After all that, I was able to follow Rodw instruction and successfully install Ethercat. I don't know how to code and this is my first time using Linux, so I don't know if this is the correct way to fix these problems, but I hope it at least helps other people with the same problem.
Please Log in to join the conversation.
2 years 2 weeks ago #311860
by BaxEDM
Replied by BaxEDM on topic Installing ethercat repositories
Thanks that works for me too! The thread "Ethercat installation from repositories - how to step by step" is getting really long. I tried a lot of things suggested there to no avail. Eventually did a new ISO install LinuxCNC 2.9.3, ran the ecat.sh script, and changed the things you mentioned. I then followed the main installation thread and got it to work.
I'll write a new installation instruction webpage for my customers. That will save them a lot of frustration.
I'll write a new installation instruction webpage for my customers. That will save them a lot of frustration.
Please Log in to join the conversation.
2 years 2 weeks ago #311861
by Macwolf
Replied by Macwolf on topic Installing ethercat repositories
I am currently installing Linuxcnc 2.93 on a PC. After the installation I run "sudo apt update". It tells me that the Ethercat repos have errors. After running the script, "Apt" is broken because no package can be installed. How do I update the necessary sources? I am new to Linux cnc.
thanks Markus
many thanks Burnie it's work
thanks Markus
many thanks Burnie it's work
Please Log in to join the conversation.
2 years 2 weeks ago #311866
by burnie
Replied by burnie on topic Installing ethercat repositories
Have you tried my fix above? sound like you have the same problem as me.
Please Log in to join the conversation.
1 year 11 months ago #314170
by Rkatts
I'm getting this same error. But when I try to edit the file, it says I don't have permission.
I tried going to that directory and using chmod +x ./science_EtherLab.list, but that didn't work.
How do you edit the file?
Replied by Rkatts on topic Installing ethercat repositories
I tried running the script on a fresh LCNC 2.9.3 install from ISO and encountered a few problems.
2. When running the "sudo apt update" I get this error
Code:E: Conflicting values set for option Signed-By regarding source http://download.opensuse.org/repositories/science:/EtherLab/Debian_12/ ./: /etc/apt/trusted.gpg.d/science_EtherLab.gpg != /etc/apt/trusted.gpg.d/science_EtherLab.gpg.key.binary.gpg E: The list of sources could not be read. I fixed it by editing the [b]/etc/apt/sources.list.d/science_EtherLab.list, changing "[i]science_EtherLab.gpg.key.binary.gpg" to "[i]science_EtherLab.gpg"[/i][/i][/b]
I'm getting this same error. But when I try to edit the file, it says I don't have permission.
I tried going to that directory and using chmod +x ./science_EtherLab.list, but that didn't work.
How do you edit the file?
Code:
nc:/etc/apt/sources.list.d$ chmod +x ./science_EtherLab.list
chmod: changing permissions of './science_EtherLab.list': Operation not permitted
Please Log in to join the conversation.
1 year 11 months ago #314213
by Rkatts
Replied by Rkatts on topic Installing ethercat repositories
I was able to edit the file by using:
Then it all worked. Thanks for the notes.
Code:
sudo nano science_EtherLab.list
Please Log in to join the conversation.
1 year 9 months ago #318476
by Tntmold
Replied by Tntmold on topic Installing ethercat repositories
I have been trying to install ethercat using the step-by-step instructions for a month and nothing is working. I have erased my partition and reloaded at least 20 times, but there is always a roadblock: broken links or unmet dependencies or it can't find the repositories.
My downloaded iso file installs debian 10 and linuxcnc 2.8.4
My current error is:
The following packages have unmet dependencies:
linuxcnc-ethercat : Depends: libc6 (>= 2.34) but 2.28-10+deb10u4 is to be installed
I am either getting closer or just circling the drain, any help would be appreciated.
when I try to update libc6 it tells me the most recent version is 2.28-10+deb10u4 which is clearly older than what ethercat installation wants. How do I get to success?
My downloaded iso file installs debian 10 and linuxcnc 2.8.4
My current error is:
The following packages have unmet dependencies:
linuxcnc-ethercat : Depends: libc6 (>= 2.34) but 2.28-10+deb10u4 is to be installed
I am either getting closer or just circling the drain, any help would be appreciated.
when I try to update libc6 it tells me the most recent version is 2.28-10+deb10u4 which is clearly older than what ethercat installation wants. How do I get to success?
Please Log in to join the conversation.
1 year 9 months ago #318483
by jst
Replied by jst on topic Installing ethercat repositories
Maybe get a newer Debain version?
2.28 is the last version in debain 10
Linuxcnc 2.9 comes in Debain 12
2.28 is the last version in debain 10
Linuxcnc 2.9 comes in Debain 12
Please Log in to join the conversation.
1 year 9 months ago #318740
by hmnijp
Replied by hmnijp on topic Installing ethercat repositories
If you are still having problems installing, I suggest you first uninstall all possible previously installed keys and repositories:
and then run the script from the first post.
Or you can run the updated script, which will do this immediately. I've attached it.
Code:
sudo rm -f /etc/apt/sources.list.d/ighvh.sources /etc/apt/sources.list.d/linuxcnc-ethercat.list /etc/apt/sources.list.d/science_EtherLab.list /etc/apt/trusted.gpg.d/linuxcnc-ethercat.gpg /etc/apt/trusted.gpg.d/science_EtherLab.gpg*
and then run the script from the first post.
Code:
wget -O ecat.sh https://forum.linuxcnc.org/media/kunena/attachments/20660/ecat.sh.txt
chmod +x ./ecat.sh
sudo ./ecat.sh
Or you can run the updated script, which will do this immediately. I've attached it.
Code:
wget -O ethercat-repos-update.sh https://forum.linuxcnc.org/media/kunena/attachments/34171/ethercat-repos-update.sh.txt
chmod +x ./ethercat-repos-update.sh
sudo ./ethercat-repos-update.sh
Please Log in to join the conversation.
9 months 3 weeks ago #341134
by NickH
Replied by NickH on topic Installing ethercat repositories
Also having problems installing and building Ethercat Master. I have tried the first script at the top ofthe thread(editing Deb12 for Deb13) and the new updated script and still get SSL errors, listed below.
Linux headers are installed and latest for rt kernel.
SSL errors:
root@chewy:/home/nick/ethercat-master# make modules_install install
make -C "/usr/src/linux-headers-6.12.57+deb13-rt-amd64" M="/home/nick/ethercat-master" INSTALL_MOD_DIR="ethercat" modules_install
make[1]: Entering directory '/usr/src/linux-headers-6.12.57+deb13-rt-amd64'
INSTALL /lib/modules/6.12.57+deb13-rt-amd64/ethercat/examples/mini/ec_mini.ko
SIGN /lib/modules/6.12.57+deb13-rt-amd64/ethercat/examples/mini/ec_mini.ko
At main.c:171:
- SSL error:FFFFFFFF80000002:system library::No such file or directory: ../crypto/bio/bss_file.c:67
- SSL error:10000080:BIO routines::no such file: ../crypto/bio/bss_file.c:75
sign-file: /usr/src/linux-headers-6.12.57+deb13-common-rt/output/signing_key.pem
XZ /lib/modules/6.12.57+deb13-rt-amd64/ethercat/examples/mini/ec_mini.ko.xz
INSTALL /lib/modules/6.12.57+deb13-rt-amd64/ethercat/master/ec_master.ko
SIGN /lib/modules/6.12.57+deb13-rt-amd64/ethercat/master/ec_master.ko
At main.c:171:
- SSL error:FFFFFFFF80000002:system library::No such file or directory: ../crypto/bio/bss_file.c:67
- SSL error:10000080:BIO routines::no such file: ../crypto/bio/bss_file.c:75
sign-file: /usr/src/linux-headers-6.12.57+deb13-common-rt/output/signing_key.pem
XZ /lib/modules/6.12.57+deb13-rt-amd64/ethercat/master/ec_master.ko.xz
INSTALL /lib/modules/6.12.57+deb13-rt-amd64/ethercat/devices/ec_generic.ko
SIGN /lib/modules/6.12.57+deb13-rt-amd64/ethercat/devices/ec_generic.ko
At main.c:171:
- SSL error:FFFFFFFF80000002:system library::No such file or directory: ../crypto/bio/bss_file.c:67
- SSL error:10000080:BIO routines::no such file: ../crypto/bio/bss_file.c:75
sign-file: /usr/src/linux-headers-6.12.57+deb13-common-rt/output/signing_key.pem
XZ /lib/modules/6.12.57+deb13-rt-amd64/ethercat/devices/ec_generic.ko.xz
INSTALL /lib/modules/6.12.57+deb13-rt-amd64/ethercat/devices/r8169/ec_r8169.ko
SIGN /lib/modules/6.12.57+deb13-rt-amd64/ethercat/devices/r8169/ec_r8169.ko
At main.c:171:
- SSL error:FFFFFFFF80000002:system library::No such file or directory: ../crypto/bio/bss_file.c:67
- SSL error:10000080:BIO routines::no such file: ../crypto/bio/bss_file.c:75
sign-file: /usr/src/linux-headers-6.12.57+deb13-common-rt/output/signing_key.pem
XZ /lib/modules/6.12.57+deb13-rt-amd64/ethercat/devices/r8169/ec_r8169.ko.xz
DEPMOD /lib/modules/6.12.57+deb13-rt-amd64
Warning: modules_install: missing 'System.map' file. Skipping depmod.
make[1]: Leaving directory '/usr/src/linux-headers-6.12.57+deb13-rt-amd64'
Making install in include
make[1]: Entering directory '/home/nick/ethercat-master/include'
make[2]: Entering directory '/home/nick/ethercat-master/include'
make[2]: Nothing to be done for 'install-exec-am'.
/usr/bin/mkdir -p '/usr/local/include'
/usr/bin/install -c -m 644 ecrt.h ectty.h '/usr/local/include'
make[2]: Leaving directory '/home/nick/ethercat-master/include'
make[1]: Leaving directory '/home/nick/ethercat-master/include'
Making install in script
make[1]: Entering directory '/home/nick/ethercat-master/script'
make[2]: Entering directory '/home/nick/ethercat-master/script'
/usr/bin/mkdir -p '/etc'
/usr/bin/install -c -m 644 ethercat.conf '/etc'
/usr/bin/mkdir -p '/usr/local/sbin'
/usr/bin/install -c ethercatctl '/usr/local/sbin'
/usr/bin/mkdir -p '/usr/local/share/bash-completion/completions'
/usr/bin/install -c -m 644 ethercat.bash_completion '/usr/local/share/bash-completion/completions'
/usr/bin/mkdir -p '/etc/init.d'
/usr/bin/install -c init.d/ethercat '/etc/init.d'
/usr/bin/mkdir -p '/etc/sysconfig'
/usr/bin/install -c -m 644 ethercat '/etc/sysconfig'
make install-data-hook
Can anyone help me put this right please?
##Fresh start, reinstalled##
Linux headers are installed and latest for rt kernel.
SSL errors:
root@chewy:/home/nick/ethercat-master# make modules_install install
make -C "/usr/src/linux-headers-6.12.57+deb13-rt-amd64" M="/home/nick/ethercat-master" INSTALL_MOD_DIR="ethercat" modules_install
make[1]: Entering directory '/usr/src/linux-headers-6.12.57+deb13-rt-amd64'
INSTALL /lib/modules/6.12.57+deb13-rt-amd64/ethercat/examples/mini/ec_mini.ko
SIGN /lib/modules/6.12.57+deb13-rt-amd64/ethercat/examples/mini/ec_mini.ko
At main.c:171:
- SSL error:FFFFFFFF80000002:system library::No such file or directory: ../crypto/bio/bss_file.c:67
- SSL error:10000080:BIO routines::no such file: ../crypto/bio/bss_file.c:75
sign-file: /usr/src/linux-headers-6.12.57+deb13-common-rt/output/signing_key.pem
XZ /lib/modules/6.12.57+deb13-rt-amd64/ethercat/examples/mini/ec_mini.ko.xz
INSTALL /lib/modules/6.12.57+deb13-rt-amd64/ethercat/master/ec_master.ko
SIGN /lib/modules/6.12.57+deb13-rt-amd64/ethercat/master/ec_master.ko
At main.c:171:
- SSL error:FFFFFFFF80000002:system library::No such file or directory: ../crypto/bio/bss_file.c:67
- SSL error:10000080:BIO routines::no such file: ../crypto/bio/bss_file.c:75
sign-file: /usr/src/linux-headers-6.12.57+deb13-common-rt/output/signing_key.pem
XZ /lib/modules/6.12.57+deb13-rt-amd64/ethercat/master/ec_master.ko.xz
INSTALL /lib/modules/6.12.57+deb13-rt-amd64/ethercat/devices/ec_generic.ko
SIGN /lib/modules/6.12.57+deb13-rt-amd64/ethercat/devices/ec_generic.ko
At main.c:171:
- SSL error:FFFFFFFF80000002:system library::No such file or directory: ../crypto/bio/bss_file.c:67
- SSL error:10000080:BIO routines::no such file: ../crypto/bio/bss_file.c:75
sign-file: /usr/src/linux-headers-6.12.57+deb13-common-rt/output/signing_key.pem
XZ /lib/modules/6.12.57+deb13-rt-amd64/ethercat/devices/ec_generic.ko.xz
INSTALL /lib/modules/6.12.57+deb13-rt-amd64/ethercat/devices/r8169/ec_r8169.ko
SIGN /lib/modules/6.12.57+deb13-rt-amd64/ethercat/devices/r8169/ec_r8169.ko
At main.c:171:
- SSL error:FFFFFFFF80000002:system library::No such file or directory: ../crypto/bio/bss_file.c:67
- SSL error:10000080:BIO routines::no such file: ../crypto/bio/bss_file.c:75
sign-file: /usr/src/linux-headers-6.12.57+deb13-common-rt/output/signing_key.pem
XZ /lib/modules/6.12.57+deb13-rt-amd64/ethercat/devices/r8169/ec_r8169.ko.xz
DEPMOD /lib/modules/6.12.57+deb13-rt-amd64
Warning: modules_install: missing 'System.map' file. Skipping depmod.
make[1]: Leaving directory '/usr/src/linux-headers-6.12.57+deb13-rt-amd64'
Making install in include
make[1]: Entering directory '/home/nick/ethercat-master/include'
make[2]: Entering directory '/home/nick/ethercat-master/include'
make[2]: Nothing to be done for 'install-exec-am'.
/usr/bin/mkdir -p '/usr/local/include'
/usr/bin/install -c -m 644 ecrt.h ectty.h '/usr/local/include'
make[2]: Leaving directory '/home/nick/ethercat-master/include'
make[1]: Leaving directory '/home/nick/ethercat-master/include'
Making install in script
make[1]: Entering directory '/home/nick/ethercat-master/script'
make[2]: Entering directory '/home/nick/ethercat-master/script'
/usr/bin/mkdir -p '/etc'
/usr/bin/install -c -m 644 ethercat.conf '/etc'
/usr/bin/mkdir -p '/usr/local/sbin'
/usr/bin/install -c ethercatctl '/usr/local/sbin'
/usr/bin/mkdir -p '/usr/local/share/bash-completion/completions'
/usr/bin/install -c -m 644 ethercat.bash_completion '/usr/local/share/bash-completion/completions'
/usr/bin/mkdir -p '/etc/init.d'
/usr/bin/install -c init.d/ethercat '/etc/init.d'
/usr/bin/mkdir -p '/etc/sysconfig'
/usr/bin/install -c -m 644 ethercat '/etc/sysconfig'
make install-data-hook
Can anyone help me put this right please?
##Fresh start, reinstalled##
Please Log in to join the conversation.
Time to create page: 0.063 seconds
