sudo apt-get update下令报错Could not connect to archive.ubuntukylin.co ...

打印 上一主题 下一主题

主题 893|帖子 893|积分 2679

以下办法是我搜了好久才找到的,对我来说是有用的
1. 报错Could not connect to archive.ubuntukylin.com:10006

  1. W: Failed to fetch http://archive.ubuntukylin.com:10006/ubuntukylin/dists/xenial/InRelease  Could not connect to archive.ubuntukylin.com:10006 (120.240.95.35), connection timed out
  2. W: Some index files failed to download. They have been ignored, or old ones used instead.
复制代码
解决方法

  1. sudo vim /etc/apt/sources.list.d/ubuntukylin.list
复制代码
进入文件后把 deb http://archive.ubuntukylin.com:10006/ubuntukylin xenial main 表明掉

2. 报错Problem executing scripts APT::Update:ost-Invoke-Success ‘if

  1. E: Problem executing scripts APT::Update::Post-Invoke-Success ‘if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli;  then appstreamcli refresh > /dev/null; fi’
  2. E: Sub-process returned an error code
复制代码
解决方法

  1. sudo apt-get purge libappstream3
复制代码
安装完这个依靠后就可以重新执行sudo apt-get update下令了,不外我在执行完后,就是代码就只有几条

相比之前如下图所示是少了很多行的

不外这个应该是下令重复利用的问题,总之sudo apt-get update下令下出现的问题都已解决。

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

0 个回复

正序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

南飓风

金牌会员
这个人很懒什么都没写!

标签云

快速回复 返回顶部 返回列表