我正在尝试更新 Ubuntu 14.04。但sudo apt-get update
返回以下错误。
0% [Connecting to in.archive.ubuntu.com] [Connecting to archive
0% [Connecting to in.archive.ubuntu.com] [Connecting to archive
Err http://in.archive.ubuntu.com trusty InRelease
Err http://archive.canonical.com trusty InRelease
Err http://extras.ubuntu.com trusty InRelease
Err http://in.archive.ubuntu.com trusty Release.gpg
Could not resolve 'in.archive.ubuntu.com'
Err http://archive.canonical.com trusty Release.gpg
Could not resolve 'archive.canonical.com'
Err http://extras.ubuntu.com trusty Release.gpg
Could not resolve 'extras.ubuntu.com'
Reading package lists...Done
W:Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty/InRelease
W:Failed to fetch http://archive.canonical.com/ubuntu/dists/trusty/InRelease
W:Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg
Could not resolve 'in.archive.ubuntu.com'
W:Failed to fetch http://archive.canonical.com/ubuntu/dists/trusty/Release.gpg
Could not resolve 'archive.canonical.com'
W:Failed to fetch http://archive.canonical.com/ubuntu/dists/trusty/Release.gpg
Could not resolve 'extras.ubuntu.com'
W:Some index files failed to download.They have been ignored or old ones used instead.
答案1
答案2
存储库[prbm]
您的链接上有拼写错误来源列表它将出现在目录中(/etc/apt/)。您将能够看到名为来源列表和来源.列表.保存. 手动复制文件内容来源.列表.保存到来源列表。否则在终端上使用以下命令。(确保您以 root 权限登录/您需要知道管理员密码)。
sudo rm /etc/apt/sources.list
sudo cp /etc/apt/sources.list.save /etc/apt/sources.list
sudo apt-get update
sudo apt-get update --fix-missing
我希望它能正常工作。
答案3
我在克什米尔。我刚刚在几分钟前从主服务器更新了我的 Ubuntu (15.10)。请尝试从主服务器更新,并使用apt
命令进行更新,而不是apt-get
:
sudo apt update
并分享错误结果
我不知道你为什么删除了问题中的错误截图。它很有用。