ubuntu - apt-get update 无法获取存储库

标签 ubuntu ubuntu-16.04 apt-get

尝试在我从 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/

相关文章:

python - 在 Ubuntu 11.10 上安装 wxPython

linux - 如何在 ubuntu 16.04 中使用 oci8 连接 php 7 和 oracle 12c

c - gcc 无法将 *.C 源代码识别为有效的 c 程序

python-2.7 - 如何在ubuntu中完全卸载python并重新安装?

docker - 无法在 Docker 容器 ubuntu :trusty 上安装主管

node.js - 为什么 Ubuntu 的 apt-get 包管理器中有旧版本的 nodejs 和 npm?

ubuntu - 在ubuntu精确上找到glib-2.0库

python-3.x - 在ubuntu上安装没有pip的python

linux - ubuntu 16.04系统如何强制卸载mssql

c++ - 如何从 SuperBible 获取 GLTools 库以在 Ubuntu 中工作?还是另一种选择?