apt-get 名称解析错误

apt-get 名称解析错误

我刚刚输入了sudo apt-get update并收到以下错误:

Err http://de.archive.ubuntu.com natty InRelease

Err http://security.ubuntu.com natty-security InRelease

Err http://de.archive.ubuntu.com natty-updates InRelease

Err http://security.ubuntu.com natty-security Release.gpg
  Temporary failure resolving 'security.ubuntu.com'
Err http://de.archive.ubuntu.com natty Release.gpg
  Temporary failure resolving 'de.archive.ubuntu.com'
Err http://de.archive.ubuntu.com natty-updates Release.gpg
  Temporary failure resolving 'de.archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/natty/InRelease  

W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/natty-updates/InRelease  

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/natty-security/InRelease  

W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/natty/Release.gpg  Temporary failure resolving 'de.archive.ubuntu.com'

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/natty-security/Release.gpg  Temporary failure resolving 'security.ubuntu.com'

W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/natty-updates/Release.gpg  Temporary failure resolving 'de.archive.ubuntu.com'

W: Some index files failed to download. They have been ignored, or old ones used instead.

答案1

暂时无法解析“de.archive.ubuntu.com”

这表明存在 DNS 问题。请确保客户端上的 DNS 服务器设置正确,并验证服务器是否正常运行。

相关内容