这个问题出现的主要原因还是因为软件源的问题。我参考了csdn的很多教程都不行,也许在别人的运行环境可以。我先后更换阿里的、网易的镜像,甚至也使用了内核的镜像都不行
阿里的是参考这位的,不过有点不一样的是我使用gedit来修改,不过这个不影响的
https://blog.csdn.net/baidu_34122324/article/details/84343164
https://www.jianshu.com/p/aca6cf70a5f0
https://blog.csdn.net/lemontree1945/article/details/81541227
使用网易的软件源的到是很多,自行百度一下就好了
https://blog.csdn.net/yjk13703623757/article/details/78943345/
来说一下我的问题吧!我的主要是在LinuxCNC上面安装linuxcnc-ethercat
步骤是
1、sudo apt-get update
执行这一步的时候卡住了,一直都是出现
Some index files failed to download. They have been ignored, or old ones used instead
这个错误提示,尝试着忽略这个错误,执行
2、sudo apt-get install linuxcnc-ethercat
出现:找不到这个linuxcnc-ethercat 请尝试使用 apt-get update 这个命令。
到来这一步说明以上的软件源都不可以。
不死心的我只能去官网看一下有没有 解决办法,很快找到下载linuxcnc-ethercat的软件源
deb http://repo.modusoft.de/linuxcnc/wheezy ./
官网的网址:
http://wiki.linuxcnc.org/cgi-bin/wiki.pl?EtherCatDriver
到此是安装好Ether的主站