当我运行时apt-get upgrade
,出现此错误:
1 upgraded, 0 newly installed, 0 to remove and 73 not upgraded.
Need to get 413 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Err http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main shared-mime-info amd64 1.2- 0ubuntu2
403 Forbidden
E: Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/pool/main/s/shared-mime-info/shared-mime-info_1.2-0ubuntu2_amd64.deb 403 Forbidden
我该如何解决此问题?
答案1
如果你已经尝试过
$ sudo apt-get update
如果它没有起作用,你可能会击中这个 APT + 亚马逊的 S3 漏洞。您可能想尝试以下解决方案:
# echo "Acquire::http::Pipeline-Depth "0";" > /etc/apt/apt.conf.d/90-fix-s3
# sudo apt-get update
# sudo apt-get install your-package-name
如果这不起作用,只需停止使用 Amazon 的 S3 作为您的 Ubuntu 存储库并切换回原始存储库:
# sed -i 's/us-east-1/us/g;' /etc/apt/sources.list
# sudo apt-get update
# sudo apt-get install your-package-name
答案2
您的 apt 数据库已过期。重新运行:
$ sudo apt-get update
如果这不能解决问题,您将需要与维护该存储库的人员交谈。