ubuntu 18.04 apt-get 升级问题“遇到重定向循环”。

Lar*_*rry 3 apt 18.04

我最近从 Ubuntu 16.04 升级到 18.04。现在,当我运行时apt-get upgrade,出现以下错误。

larry@VUbuntu15:~$ sudo apt-get upgrade
[sudo] password for larry: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  linux-generic linux-headers-generic linux-image-generic
The following packages will be upgraded:
  libvte-2.91-0 linux-libc-dev
2 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 1,146 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Err:1 http://192.119.223.46:80/data/0116fed259cd0925/us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libvte-2.91-0 amd64 0.52.2-1ubuntu1~18.04.2
  Redirection loop encountered
Err:2 http://192.119.223.46:80/data/011634d2c0cdf482/us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 linux-libc-dev amd64 4.15.0-30.32
  Redirection loop encountered
E: Failed to fetch http://192.119.223.46:80/data/0116fed259cd0925/us.archive.ubuntu.com/ubuntu/pool/main/v/vte2.91/libvte-2.91-0_0.52.2-1ubuntu1~18.04.2_amd64.deb  Redirection loop encountered
E: Failed to fetch http://192.119.223.46:80/data/011634d2c0cdf482/us.archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_4.15.0-30.32_amd64.deb  Redirection loop encountered
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Run Code Online (Sandbox Code Playgroud)

如果我运行sudo apt-get update --fix-missing,我会得到同样的错误。

“遇到重定向循环”是什么意思?我该如何解决这个错误?

没有问题apt-get update。该sources.list文件似乎没问题。

小智 5

你会喜欢这个的。

192.119.223.46 解析为 192-119-223-46.client.mchsi.com。

mchsi.com 属于 Mediacom。如果您是 Mediacom 客户,则意味着他们正在劫持您的流量并将其发送到不该去的地方。

我会尝试使用 traceroute 到 us.archive.ubuntu.com 并查看它转移到哪里。

我还会尝试使用免费的 DNS 服务器,例如 Google 的 8.8.8.8 或 Cloudflare 的 1.1.1.1。