Ethercat installation from repositories - how to step by step

More
1 year 10 months ago - 1 year 10 months ago #316044 by vibram
Hello

My turn to request some help.
Brand new installation with the latest ISO from the Linuxcnc download section version 2.9.3 PREMPT-RT

paul@mill:~$ sudo apt install  linuxcnc-ethercat
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package linuxcnc-ethercat 


and same for:

sudo apt install ethercat-master libethercat-dev  linuxcnc-ethercatReading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package ethercat-master
E: Unable to locate package libethercat-dev
E: Unable to locate package linuxcnc-ethercat
I tried the mokutil stuff:sudo mokutil --import /var/lib/dkms/mok.pub
EFI variables are not supported on this system

sudo mokutil --sb-state
EFI variables are not supported on this system



I also tried the ecat.sh script from the other topic:

paul@mill:~/Downloads$ sudo ./ecat.sh
[sudo] password for paul:
sudo: ./ecat.sh: command not found

paul@mill:~/Downloads$ ls -l
total 4
-rw-r--r-- 1 paul paul 726 Dec  5 21:45 ecat.sh


Any idea of what should I do?

Thanks you in advance

 

Last edit: 1 year 10 months ago by vibram.

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

More
1 year 10 months ago #316048 by Grotius
Hi,

Looks your sources.list is not ok.

$ sudo thunar

Then find and edit the ~/etc/apt/sources.list
Code:
# See https://wiki.debian.org/SourcesList for more information. deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware deb-src http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware deb-src http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware deb http://security.debian.org/debian-security/ bookworm-security main contrib non-free non-free-firmware deb-src http://security.debian.org/debian-security/ bookworm-security main contrib non-free non-free-firmware

# Fetch sources list.
$ sudo apt get update
# Check if source excists:
$ sudo apt-get install --dry-run ethercat-master

 

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

More
1 year 10 months ago #316051 by rodw
When you downloaded the script, you did not edit the file name to remove the .txt ending
It told you it could not find the file, ls would list the files

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

More
1 year 10 months ago #316079 by vibram
Hello

Here is my source.list:

deb deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware
deb-src deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware

deb deb.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware
deb-src deb.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware

deb security.debian.org/debian-security/ bookworm-security main contrib non-free non-free-firmware
deb-src security.debian.org/debian-security/ bookworm-security main contrib non-free non-free-firmware

 
apt-get update and dry run:

sudo apt-get update
[sudo] password for paul:
... removed due to link limitation                 
Reading package lists... Done                      
paul@mill:~$ sudo apt-get install --dry-run ethercat-master
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package ethercat-master

my Download folder with the file ecat.sh but the error with command not found:

cd Downloads
paul@mill:~/Downloads$ ls
ecat.sh
paul@mill:~/Downloads$ sudo ./ecat.sh
sudo: ./ecat.sh: command not found
paul@mill:~/Downloads$ sudo ecat.sh
sudo: ecat.sh: command not found
paul@mill:~/Downloads$
 
 

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

More
1 year 10 months ago #316082 by rodw
Did you make the script executable?
The following user(s) said Thank You: vibram

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

More
1 year 10 months ago - 1 year 10 months ago #316083 by vibram
I just did and the script was ran successfully thank you.

however. I still get the same error message with apt ethercat and the mokutil --import


edit: I just rebooted and everything went through to the end, my modules are visible :)

thanks a lot for your quick support
Last edit: 1 year 10 months ago by vibram.

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

Time to create page: 0.167 seconds
Powered by Kunena Forum