我在戴尔笔记本电脑上使用 ubuntu 16.04,一段时间后我收到一条错误消息
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/restricted/dep11/Components-amd64.yml 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.88.162 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
使用命令更新时sudo apt update
。我不知道为什么会发生这种情况。请帮我解决这个问题。
答案1
您能否检查目录“/var/lib/apt/lists/partial/”并从中删除内容。然后尝试运行更新,我认为这可以解决您的问题。
sudo rm /var/lib/apt/lists/partial/*