Launchpad Entry: https://launchpad.net/distros/ubuntu/+spec/default-apt-sources
Created: 2005-10-19 by MattZimmerman
Packages affected: apt, synaptic, aptitude
Improve the handling for apt when it comes to network sources.
As of Ubuntu 5.10, the default sources.list is dynamically generated based on (among other information) whether a network connection was available during the installation of the system. In order to be more consistent in the face of changing hardware (and changing support for hardware), it would be preferable if the network sources were always available, regardless of network availability during installation.
Hide the warning/error when no network source information is available by default.
The current implementation in the email@example.com/apt--ubuntu--0 branch works as followed.
The methods backend will report a optional "FailReason" to the acquire code.
On a "Timeout", "TmpResolveFailure" and "ConnectionRefused" it is assumed that the network is not available for this source and the attempt to fetch it will be canceld. The status will be set to StatTransientNetworkError.
- The old signature and indexfiles for this source will be used and a warning (instead of a error) is issued.
The list cleaner for /var/lib/apt/lists will not run on StatTransientNetworkError status
- No warnings about missing index files will be issued from pkgcachegen.cc
- apt-get update will still return a non-zero exit code on "real" network failures.
The code is available in the firstname.lastname@example.org/apt--ubuntu--0 branch and uploaded to dapper. The coresponding changes are done in synaptic and aptitude as well.