apt update is trying to use IPv6 for some reason, which does not work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Today I've discovered that I cannot use apt-get any more:
apt update
Hit:1 http://
Ign:2 http://
Ign:3 http://
Hit:4 http://
Hit:5 http://
Hit:6 http://
Hit:7 http://
0% [Connecting to lt.archive.
and there it stalls for about 30 seconds, after which
Err:10 http://
Cannot initiate the connection to lt.archive.
Err:11 http://
Cannot initiate the connection to lt.archive.
Err:12 http://
Cannot initiate the connection to lt.archive.
Reading package lists... Done
Building dependency tree
Reading state information... Done
16 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Some index files failed to download. They have been ignored, or old ones used instead.
I don't know why it's trying to connect to my Ubuntu mirror over IPv6. There's no IPv6 in Lithuania (I'm exaggerating a bit, but my ISP -- the largest ISP in the country -- does not support IPv6). I've never had working IPv6 connectivity in my life. apt-get used to work before today. I've no idea what changed.
ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: apt 1.8.1
ProcVersionSign
Uname: Linux 5.0.0-27-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.10-0ubuntu27.1
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Wed Sep 11 11:46:28 2019
EcryptfsInUse: Yes
InstallationDate: Installed on 2019-06-12 (90 days ago)
InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
SourcePackage: apt
UpgradeStatus: No upgrade log present (probably fresh install)
It tried both IPv4 and IPv6; the IPv4 mirror is down.