apt-get update 出错

浏览: 1639

问题:

 Could not open file /var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_xenial-security_restricted_dep11_Components-amd64.yml.gz - open (13: Permission denied) [IP: 91.189.91.26 80]

解释:

 /var/lib/apt/lists folder messed things up

解决:

sudo -i
apt-get clean
cd /var/lib/apt
mv lists lists.old
mkdir -p lists/partial
apt-get clean
apt-get update

This will rename your "list" folder to "list.old" for backup purposes and then rebuild.

If you did an error free "apt-get update" then yes, the "list.old" folder is corrupted and can be deleted. List.old served its purpose as a backup (the original) in-case something went wrong.

reference:

https://ubuntuforums.org/showthread.php?t=1910598

推荐 0
本文由 safa 创作,采用 知识共享署名-相同方式共享 3.0 中国大陆许可协议 进行许可。
转载、引用前需联系作者,并署名作者且注明文章出处。
本站文章版权归原作者及原出处所有 。内容为作者个人观点, 并不代表本站赞同其观点和对其真实性负责。本站是一个个人学习交流的平台,并不用于任何商业目的,如果有任何问题,请及时联系我们,我们将根据著作权人的要求,立即更正或者删除有关内容。本站拥有对此声明的最终解释权。

0 个评论

要回复文章请先登录注册