Installing ethercat repositories

More
12 Oct 2024 05:25 #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
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 /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
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
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. 

 
The following user(s) said Thank You: Tntmold, Macwolf

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

More
12 Oct 2024 13:28 #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.

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

More
12 Oct 2024 13:42 - 12 Oct 2024 14:35 #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
Last edit: 12 Oct 2024 14:35 by Macwolf.

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

More
12 Oct 2024 14:04 #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.
The following user(s) said Thank You: Macwolf

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

More
10 Nov 2024 02:55 - 10 Nov 2024 03:01 #314170 by Rkatts
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
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?
nc:/etc/apt/sources.list.d$ chmod +x ./science_EtherLab.list
chmod: changing permissions of './science_EtherLab.list': Operation not permitted
Last edit: 10 Nov 2024 03:01 by Rkatts.

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

More
10 Nov 2024 20:58 #314213 by Rkatts
Replied by Rkatts on topic Installing ethercat repositories
I was able to edit the file by using:
sudo nano science_EtherLab.list
Then it all worked.  Thanks for the notes.

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

More
08 Jan 2025 22:24 - 08 Jan 2025 22:31 #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?
Last edit: 08 Jan 2025 22:31 by Tntmold.

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

More
09 Jan 2025 01:04 #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
The following user(s) said Thank You: Tntmold

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

More
12 Jan 2025 08:27 - 12 Jan 2025 08:31 #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:
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.
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.
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
Attachments:
Last edit: 12 Jan 2025 08:31 by hmnijp.

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

Time to create page: 0.118 seconds
Powered by Kunena Forum