来自孟加拉国的问候。我是 Ubuntu 操作系统的中级用户。我在 apt 更新方面遇到了问题。我在网上搜索过,但找不到任何答案,所以我发了这个问题,请帮帮我。
Err:20 http://archive.ubuntu.com/ubuntu eoan-updates/restricted amd64 c-n-f Metadata
Could not open file /var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_eoan-updates_restricted_cnf_Commands-amd64.xz - open (13: Permission denied) [IP: 91.189.88.152 80]
Ign:35 http://archive.ubuntu.com/ubuntu eoan-updates/multiverse amd64 c-n-f Metadata
Err:37 http://archive.ubuntu.com/ubuntu eoan-backports/main amd64 c-n-f Metadata
Could not open file /var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_eoan-backports_main_cnf_Commands-amd64.xz - open (13: Permission denied) [IP: 91.189.88.152 80]
Reading package lists... Done
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/eoan-updates/restricted/cnf/Commands-amd64 Could not open file /var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_eoan-updates_restricted_cnf_Commands-amd64.xz - open (13: Permission denied) [IP: 91.189.88.152 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/eoan-backports/main/cnf/Commands-amd64 Could not open file /var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_eoan-backports_main_cnf_Commands-amd64.xz - open (13: Permission denied) [IP: 91.189.88.152 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
我曾尝试过
- 完全删除部分文件夹的内容。
- 清洁
sudo apt clean
moving the lists to lists.old
then updating the apt
但运气不佳。
答案1
我已从列表中删除了受限的软件源,并通过以下方式进行了更新,sudo apt update
然后再次将受限的软件源添加到列表中,并再次进行了另一次更新,错误就消失了。