DefaultAptSources

Differences between revisions 1 and 9 (spanning 8 versions)
Revision 1 as of 2005-10-19 22:06:24
Size: 524
Editor: ca-studio-bsr1o-251
Comment:
Revision 9 as of 2008-08-06 16:32:36
Size: 1979
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
 * '''Launchpad Entry''': https://launchpad.net/distros/ubuntu/+spec/foo
 * '''Created''': [[Date(2005-10-19T22:06:24Z)]] by MattZimmerman
 * '''Launchpad Entry''': https://launchpad.net/distros/ubuntu/+spec/default-apt-sources
 * '''Created''': <<Date(2005-10-19T22:06:24Z)>> by MattZimmerman
Line 10: Line 10:
See launchpad Improve the handling for apt when it comes to network sources.
Line 13: Line 13:

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.
Line 20: Line 22:
Hide the warning/error when no network source information is available by default.
Line 21: Line 25:

The current implementation in the michael.vogt@ubuntu.com--2005/apt--ubuntu--0 branch works as followed.
 1. The methods backend will report a optional "FailReason" to the acquire code.
 1. 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.
 1. The old signature and indexfiles for this source will be used and a warning (instead of a error) is issued.
 1. The list cleaner for /var/lib/apt/lists will not run on StatTransientNetworkError status
 1. No warnings about missing index files will be issued from pkgcachegen.cc
 1. apt-get update will still return a non-zero exit code on "real" network failures.
Line 24: Line 36:
=== Data preservation and migration === The code is available in the michael.vogt@ubuntu.com--2005/apt--ubuntu--0 branch and uploaded to dapper. The coresponding changes are done in synaptic and aptitude as well.
Line 26: Line 38:
== Outstanding issues ==
Line 28: Line 39:
== BoF agenda and discussion == ----
CategorySpec

Summary

Improve the handling for apt when it comes to network sources.

Rationale

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.

Use cases

Scope

Design

Hide the warning/error when no network source information is available by default.

Implementation

The current implementation in the michael.vogt@ubuntu.com--2005/apt--ubuntu--0 branch works as followed.

  1. The methods backend will report a optional "FailReason" to the acquire code.

  2. 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.

  3. The old signature and indexfiles for this source will be used and a warning (instead of a error) is issued.
  4. The list cleaner for /var/lib/apt/lists will not run on StatTransientNetworkError status

  5. No warnings about missing index files will be issued from pkgcachegen.cc
  6. apt-get update will still return a non-zero exit code on "real" network failures.

Code

The code is available in the michael.vogt@ubuntu.com--2005/apt--ubuntu--0 branch and uploaded to dapper. The coresponding changes are done in synaptic and aptitude as well.


CategorySpec

DefaultAptSources (last edited 2008-08-06 16:32:36 by localhost)