尝试在我从 Logic Supply 获得的新计算机上安装软件包。
当我第一次得到它并登录安装新软件包时,我做了apt-get update
并得到(简化):
Err:1 http://us.archive.ubuntu.com/ubuntu/ xenial InRelease
Could not resolve 'usvt-livepaapt01.logicsupply.com'
Err:2 ...
Err:3 ...
Reading package lists... Done
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/xenial/InRelease Could not resolve 'usvt-livepaapt01.logicsupply.com'
W: ...
W: ...
W: Some files failed to download. They have been ignored, or old ones used instead
这是一个问题,但更严重的问题是,如果我这样做(例如):
sudo apt-get install make
我得到:
...
Package wget is not available, but is referred to by another package
This may mean that the package is missing, has been obsolete, or is only available from another source
E: Package 'wget' has no installation candidate
我向 Logic Supply 投诉,他们告诉我删除
/etc/modprobe.d/blacklist.local.conf
并重新启动,我这样做了。但它并没有解决它。
我已删除
/var/lib/apt/lists/*
和 /etc/apt/sources.list.d
.我可以在网上找到的所有内容都在修复网络,但我的网络似乎还可以。我可以 ping
us.archive.ubuntu.com
服务器。我的
/etc/apt/sources.list
的内容是:###### Ubuntu Main Repos
deb http://us.archive.ubuntu.com/ubuntu/ xenial main
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
###### Ubuntu Update Repos
deb http://us.archive.ubuntu.com/ubuntu/ xenial-security main
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
有任何想法吗?如何重置 apt-get 以不尝试从 logicsupply.com 服务器解析?
最佳答案
看起来 logicsupply 安装了代理设置。
虽然确实从 sources.list.d
中删除了对逻辑电源域的所有引用。 , 还有一个通过 logicsupply.com 中的代理服务器请求/etc/apt/apt.conf
.
删除该 http 代理服务器可解决 apt-get 更新问题。
关于ubuntu - apt-get update 无法获取存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50827541/