sudo apt-get update返回带有某些存储库的连接错误,并且无法更新

阿代洛德

我记得,当我卸载一些软件包与ROSsudo apt-get autoremove <name package>我不能得到sudo apt-get update了,这是后,我的文字是我的终端上的结果:

Err http://packages.ros.org trusty InRelease                                   

Err http://packages.ros.org trusty Release.gpg         
  Unable to connect to packages.ros.org:http:
Reading package lists... Done
W: Failed to fetch http://packages.ros.org/ros/ubuntu/dists/trusty/InRelease  

W: Failed to fetch http://packages.ros.org/ros/ubuntu/dists/trusty/Release.gpg  Unable to connect to packages.ros.org:http:

W: Some index files failed to download. They have been ignored, or old ones used instead.

我发短信后find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;,结果是:

/etc/apt/sources.list.d/ros-latest.list

 deb http://packages.ros.org/ros/ubuntu trusty main

/etc/apt/sources.list

 deb http://kambing.ui.ac.id/ubuntu/ trusty main restricted universe multiverse
 deb http://kambing.ui.ac.id/ubuntu/ trusty-updates main restricted universe multiverse
 deb http://kambing.ui.ac.id/ubuntu/ trusty-security main restricted universe multiverse
 deb http://kambing.ui.ac.id/ubuntu/ trusty-backports main restricted universe multiverse
 deb http://kambing.ui.ac.id/ubuntu/ trusty-proposed main restricted universe multiverse

我应该怎么办?我必须安装一些软件包,并且系统不允许我这样做...

托马斯·沃德

有问题的存储库是packages.ros.org一个,出现“无法连接”错误。反过来,这指向ftp.osuosl.org我刚运行的DNS查找。据我所知,这也是“有效的”。

您的系统可能无法访问这些服务器,原因可能是由于沿阻塞访问线路的某处进行了网络过滤,或者存在间歇性网络问题,或者您的ISP阻止了访问。如果所有其他存储库都正常工作,则必须调试您与该存储库服务器之间的连接。

在我看来,虽然那是唯一给您问题的存储库。如果问题没有解决,那么您将需要尝试与维护存储库的人员联系(对不起,我不知道他们是谁),然后尝试在那里解决问题。不过,我们在这里实际上无能为力。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章