sudo apt-get update 在 Linux Parrot 上不起作用

sudo apt-get update 在 Linux Parrot 上不起作用

运行sudo apt-get update返回:

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

整个终端输出如下所示:

Err:1 https://download.sublimetext.com apt/stable/ InRelease
  Something wicked happened resolving 'download.sublimetext.com:https' (-5 - No address associated with hostname)
Err:2 http://dl.google.com/linux/chrome/deb stable InRelease                   
  Something wicked happened resolving 'dl.google.com:http' (-5 - No address associated with hostname)
Err:3 http://deb.parrotsec.org/parrot parrot InRelease                         
  Something wicked happened resolving 'deb.parrotsec.org:http' (-5 - No address associated with hostname)
Err:4 http://packages.microsoft.com/repos/vscode stable InRelease              
  Something wicked happened resolving 'packages.microsoft.com:http' (-5 - No address associated with hostname)
Reading package lists... Done                                                  
Building dependency tree       
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/InRelease  Something wicked happened resolving 'dl.google.com:http' (-5 - No address associated with hostname)
W: Failed to fetch http://deb.parrotsec.org/parrot/dists/parrot/InRelease  Something wicked happened resolving 'deb.parrotsec.org:http' (-5 - No address associated with hostname)
W: Failed to fetch https://download.sublimetext.com/apt/stable/InRelease  Something wicked happened resolving 'download.sublimetext.com:https' (-5 - No address associated with hostname)
W: Failed to fetch http://packages.microsoft.com/repos/vscode/dists/stable/InRelease  Something wicked happened resolving 'packages.microsoft.com:http' (-5 - No address associated with hostname)
W: Some index files failed to download. They have been ignored, or old ones used instead.

答案1

您似乎在将主机名解析为 IP 地址时遇到问题。可能是你的DNS配置错误。

你是如何完成该配置的?

相关内容