以下是我在使用该命令时遇到的一些错误:
sudo apt-get update && sudo apt-get upgrade
W: Failed to fetch http://pk.archive.ubuntu.com/ubuntu/dists/precise-updates/Release.gpg Could not connect to pk.archive.ubuntu.com:80 (58.65.218.244). - connect (110: Connection timed out)
W: Failed to fetch http://pk.archive.ubuntu.com/ubuntu/dists/precise-updates/universe/source/Sources Unable to connect to pk.archive.ubuntu.com:http:
E: Some index files failed to download. They have been ignored, or old ones used instead.
答案1
你可以通过这个命令
sudo apt-get clean && sudo apt-get 更新
清理缓存(和部分下载的文件),然后更新您的包列表。