在 Ubuntu 18.04 中运行 sudo apt-get update 时出现“无法解析‘proxyhost’”

在 Ubuntu 18.04 中运行 sudo apt-get update 时出现“无法解析‘proxyhost’”

sudo apt-get update在 Ubuntu 18.04 LTS 中无法使用

Err:1 http://in.archive.ubuntu.com/ubuntu bionic InRelease
  Could not resolve 'proxyhost'
Err:2 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease
  Could not resolve 'proxyhost'
Err:3 http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease
  Could not resolve 'proxyhost'
Err:4 http://in.archive.ubuntu.com/ubuntu bionic-security InRelease
  Could not resolve 'proxyhost'
Reading package lists... Done
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/bionic/InRelease  Could not resolve 'proxyhost'
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease  Could not resolve 'proxyhost'
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease  Could not resolve 'proxyhost'
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/bionic-security/InRelease  Could not resolve 'proxyhost'
W: Some index files failed to download. They have been ignored, or old ones used instead.

相关内容