[Bug 1759118] Re: apt attempts to connect to IPv6 addresses even when there is no IPv6 route
Julian Andres Klode
1759118 at bugs.launchpad.net
Wed Aug 22 10:40:44 UTC 2018
APT only uses IPv6 addresses when there's a chance of success. It tells
the system resolver to only return addresses for configured address
families. So, either your network is misconfigured (which seems most
likely), or you hit a bug in the system resolver.
>From the apt side, it will now fall back to IPv4 within 150 ms or so, to
cater to problematic systems like yours. Note that most other programs
do not have that fallback and will still try IPv6, so I highly recommend
checking your network setup.
** Changed in: apt (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1759118
Title:
apt attempts to connect to IPv6 addresses even when there is no IPv6
route
Status in apt package in Ubuntu:
Invalid
Bug description:
Configure internet connectivity without IPv6, e.g. via DHCP on a
router that supports only IPv4. The active interface should have only
a link-local IPv6 address. (Link-local addresses are not routable.)
Run apt update. You may see output like the following:
Hit:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
Ign:2 http://ddebs.ubuntu.com bionic InRelease
Ign:3 http://ddebs.ubuntu.com bionic-updates InRelease
Ign:4 http://ddebs.ubuntu.com bionic-proposed InRelease
Get:5 http://ddebs.ubuntu.com bionic Release [34.7 kB]
Hit:6 http://ddebs.ubuntu.com bionic-updates Release
Get:8 http://ddebs.ubuntu.com bionic-proposed Release [34.7 kB]
Get:9 http://ddebs.ubuntu.com bionic Release.gpg [819 B]
Get:10 http://ddebs.ubuntu.com bionic-proposed Release.gpg [819 B]
Get:11 http://ddebs.ubuntu.com bionic/main amd64 Packages [528 kB]
Get:12 http://ddebs.ubuntu.com bionic/main i386 Packages [525 kB]
Get:13 http://ddebs.ubuntu.com bionic/universe amd64 Packages [4,372 kB]
0% [Connecting to au.archive.ubuntu.com (2001:388:30bc:cafe::beef)] [13 Package^C
Here, apt has correctly used IPv4 for ddebs and security, but
continues to try IPv6 for au.archive, despite having no valid IPv6
address from which to reach the internet.
apt should be more clever about this, and only attempt to use a
protocol if there is a non-zero chance of success.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: apt 1.6~beta1
ProcVersionSignature: Ubuntu 4.15.0-12.13-generic 4.15.7
Uname: Linux 4.15.0-12-generic x86_64
ApportVersion: 2.20.9-0ubuntu1
Architecture: amd64
CurrentDesktop: KDE
Date: Tue Mar 27 14:52:03 2018
InstallationDate: Installed on 2018-03-12 (15 days ago)
InstallationMedia: Kubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 (20180310)
SourcePackage: apt
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1759118/+subscriptions
More information about the foundations-bugs
mailing list