[Bug 1314502] [NEW] apt-get install foo/trusty selects version from trusty-updates

Michael Vogt michael.vogt at canonical.com
Wed Apr 30 07:28:04 UTC 2014


Public bug reported:

When using the release modfiers on the apt commandline specifying the release does not always work, e.g.:
"""
$ apt-get install --reinstall webapp-container/trusty -s)
...
Selected version '0.23+14.04.20140416-0ubuntu1' (Ubuntu:14.04/trusty-updates [amd64]) for 'webapp-container'
"""

The reason is that apt-get foo/release matches for both "Suite" and "Codename" in the Release file. The trusty-updates
Release file looks like this:
"""
 Suite: trusty-updates
 Codename: trusty
"""
So apt matches the suite first, then the codename and takes the match.

Previously it would only match on "Suite", but commit efc487fb changed
this behavior (some time ago). Attached is a testcase to illustrate the
issue.

** Affects: apt (Ubuntu)
     Importance: Low
         Status: Triaged

** Attachment added: "testcase for apts integration testsuite"
   https://bugs.launchpad.net/bugs/1314502/+attachment/4101072/+files/test-apt-archive-codename-match

** Changed in: apt (Ubuntu)
       Status: New => Triaged

** Changed in: apt (Ubuntu)
   Importance: Undecided => Low

-- 
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/1314502

Title:
  apt-get install foo/trusty selects version from trusty-updates

Status in “apt” package in Ubuntu:
  Triaged

Bug description:
  When using the release modfiers on the apt commandline specifying the release does not always work, e.g.:
  """
  $ apt-get install --reinstall webapp-container/trusty -s)
  ...
  Selected version '0.23+14.04.20140416-0ubuntu1' (Ubuntu:14.04/trusty-updates [amd64]) for 'webapp-container'
  """

  The reason is that apt-get foo/release matches for both "Suite" and "Codename" in the Release file. The trusty-updates
  Release file looks like this:
  """
   Suite: trusty-updates
   Codename: trusty
  """
  So apt matches the suite first, then the codename and takes the match.

  Previously it would only match on "Suite", but commit efc487fb changed
  this behavior (some time ago). Attached is a testcase to illustrate
  the issue.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1314502/+subscriptions



More information about the foundations-bugs mailing list