ToB企服应用市场:ToB评测及商务社交产业平台

标题: sudo apt-get update下令报错Could not connect to archive.ubuntukylin.co [打印本页]

作者: 南飓风    时间: 2024-10-12 19:20
标题: sudo apt-get update下令报错Could not connect to archive.ubuntukylin.co
以下办法是我搜了好久才找到的,对我来说是有用的
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企服之家,中国第一个企服评测及商务社交产业平台。




欢迎光临 ToB企服应用市场:ToB评测及商务社交产业平台 (https://dis.qidao123.com/) Powered by Discuz! X3.4