[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#543966: marked as done (apt wants to downgrade packages with pin-priority less than 1000)



Your message dated Mon, 12 Aug 2013 21:05:29 +0000
with message-id <E1V8zIv-0004vt-TL@franck.debian.org>
and subject line Bug#543966: fixed in apt 0.9.10
has caused the Debian Bug report #543966,
regarding apt wants to downgrade packages with pin-priority less than 1000
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
543966: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=543966
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: apt
Version: 0.7.22
Severity: normal

== Summary ==

apt will attempt to downgrade an installed package if the pin-priority
of the package is greater than 99.

apt will not downgrade when pin-priorty is 99 or below because the
already installed package automatically gets a priority of 100.

According to the apt_preferences manpage (mentioned several times), apt
will *never* downgrade a package unless the priority of an available
version exceeds 1000.

== Details ==

Tested and confirmed on:
    Debian Testing (Squeeze) | apt 0.7.22
    Ubuntu 9.10 (Karmic)     | apt 0.7.21ubuntu1
    Ubuntu 8.04 (Hardy LTS)  | apt 0.7.9ubuntu17.1

I originally submitted this issue to Ubuntu on Launchpad, and it was
suggested to be filed upstream:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/315175


Reproducing the issue is simple, as described below (I have chosen
base-files as its a small package without any build-deps, but any
package will do).

# dpkg -s base-files |grep Version
Version: 5.0.0

# grep deb-src /etc/apt/sources.list
deb-src http://http.us.debian.org/debian squeeze main

# apt-get source base-files
dpkg-source: info: extracting base-files in base-files-5.0.0
dpkg-source: info: unpacking base-files_5.0.0.tar.gz

# head debian/changelog
base-files (5.0.0-1) unstable; urgency=low

  * testing pinning issue

 -- Alon Swartz <alon@turnkeylinux.org> Thu, 27 Aug 2009 21:04:00 +0200

# dpkg-buildpackage -b -tc

# dpkg -i base-files_5.0.0-1_amd64.deb
Setting up base-files (5.0.0-1) ...

# cat > /etc/apt/preferences <<EOF
Package: base-files
Pin: release o=Debian
Pin-Priority: 999
EOF

Note: the pin-priority can be anything larger than 99 to reproduce this

# apt-cache policy base-files
base-files:
  Installed: 5.0.0-1
  Candidate: 5.0.0
  Package pin: 5.0.0
  Version table:
 *** 5.0.0-1 999
        100 /var/lib/dpkg/status
     5.0.0 999
        500 http://http.us.debian.org squeeze/main Packages

# apt-get install base-files
The following packages will be DOWNGRADED:
  base-files

In other words, apt wants to downgrade a package even though the
pin-priority is less than 1000, which goes against all the
documentation.


== Interesting find ==

Max Bowsher made an interesting find that if an asterisk is included in
the package name, the bug is not reproduced.

# cat > /etc/apt/preferences <<EOF
Package: base-files*
Pin: release o=Debian
Pin-Priority: 999
EOF

# apt-cache policy base-files
base-files:
  Installed: 5.0.0-1
  Candidate: 5.0.0-1
  Version table:
 *** 5.0.0-1 0
        100 /var/lib/dpkg/status
     5.0.0 0
        500 http://http.us.debian.org squeeze/main Packages

# apt-get install base-files
base-files is already the newest version.


Cheers,
Alon Swartz






--- End Message ---
--- Begin Message ---
Source: apt
Source-Version: 0.9.10

We believe that the bug you reported is fixed in the latest version of
apt, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 543966@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Vogt <mvo@debian.org> (supplier of updated apt package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Mon, 12 Aug 2013 21:45:07 +0200
Source: apt
Binary: apt libapt-pkg4.12 libapt-inst1.5 apt-doc libapt-pkg-dev libapt-pkg-doc apt-utils apt-transport-https
Architecture: source all amd64
Version: 0.9.10
Distribution: unstable
Urgency: low
Maintainer: APT Development Team <deity@lists.debian.org>
Changed-By: Michael Vogt <mvo@debian.org>
Description: 
 apt        - commandline package manager
 apt-doc    - documentation for APT
 apt-transport-https - https download transport for APT
 apt-utils  - package management related utility programs
 libapt-inst1.5 - deb package format runtime library
 libapt-pkg-dev - development files for APT's libapt-pkg and libapt-inst
 libapt-pkg-doc - documentation for APT development
 libapt-pkg4.12 - package management runtime library
Closes: 543966 665411 687611 718482 718615 719263 719279
Changes: 
 apt (0.9.10) unstable; urgency=low
 .
   The "Hello to Debconf" upload
 .
   [ Christian Perrier ]
   * Vietnamese translation update. Closes: #718615
   * Japanese translation update. Closes: #719279
 .
   [ Michael Vogt ]
   * work on fixing coverity scan results:
     - fix some off-by-one errors
     - fix some resource leaks
     - fixes in chroot() handling
     - fix some missing va_end()
   * make the code -Wall clean again
   * remove duplicated #include<list>
   * add .travis.yml
   * use the 'abi-complicance-checker' package and remove the buildin
     copy for the abi checks
 .
   [ David Kalnischkies ]
   * ensure that FileFd::Size returns 0 in error cases
   * add missing Turkish (tr) to po/LINGUAS
   * correct management-typo in description found by lintian
   * implement debian/rules build-{arch,indep} as required by policy 3.9.4
   * reenable automatic parallel build of APT
   * exclude config.{sub,guess} from source package
   * update the symbol files to reflect current state
   * unset LANGUAGE for showing [Y/n] answer hints
   * fix some unitialized data members
   * specific pins below 1000 cause downgrades (Closes: 543966)
   * use pkgTagFile to parse "header" of Release files
   * fix: --print-uris removes authentication (Closes: 719263)
   * always use our own trustdb.gpg in apt-key
   * use a tmpfile for trustdb.gpg in apt-key.
     Thanks to Andreas Beckmann for the initial patch! (Closes: #687611)
   * do not double-slash paths in apt-key (Closes: 665411)
   * make the keyring locations in apt-key configurable
   * let apt-key del work better with softlink and single key keyrings
   * do not call 'apt-key update' in apt.postinst
 .
   [ Colin Watson ]
   * prefer native arch over higher priority for providers (Closes: #718482)
Checksums-Sha1: 
 52551ebfc040b0cbc218a33d761e56baa8968ec0 1684 apt_0.9.10.dsc
 4695674bc0a210c74bb0a3deb2f39810c4896225 3360436 apt_0.9.10.tar.gz
 3bbc585725213f40f31051e1d0d2ae4aaff51bb0 264602 apt-doc_0.9.10_all.deb
 d78f9d54593a89979d559cfc96c3440dcdea4aa1 550654 libapt-pkg-doc_0.9.10_all.deb
 917aab673874888c6ca985972bcad24700c2d6cc 712650 libapt-pkg4.12_0.9.10_amd64.deb
 8ee0357f939f6f8247f5cc14bd7ba260cda493e1 156270 libapt-inst1.5_0.9.10_amd64.deb
 426304e48bb0db771a7ca9c04fcf1d528ee3993a 1005310 apt_0.9.10_amd64.deb
 a0568e1b12ae8ee4d14d1c3196cf735b92237dd1 176576 libapt-pkg-dev_0.9.10_amd64.deb
 abae3ec582bd21c14d8a5bc10560c7823b9b7a91 343326 apt-utils_0.9.10_amd64.deb
 309b02b15fd04e6428143123174c19bea8b1211a 111508 apt-transport-https_0.9.10_amd64.deb
Checksums-Sha256: 
 dcf13b289c06265240ff9c2255de8980093cb361931877408eab8f7e842c8676 1684 apt_0.9.10.dsc
 75f0df6d658131fd4b4bcbc4980459935f8d0c9fcdee413b561ccf4b01c16cc8 3360436 apt_0.9.10.tar.gz
 f715afec5a1f94f0faacdbb6692ff18996be8d41b2ec1ce956905c1a08dd967f 264602 apt-doc_0.9.10_all.deb
 0f25edc64a3b5a8fe3b845a430fc2c65d973a522a6facb2853a02a707a081b8a 550654 libapt-pkg-doc_0.9.10_all.deb
 917f4f86f1522b66a82386a255a5ee98d630f00147f470e666809b8401c7a3e6 712650 libapt-pkg4.12_0.9.10_amd64.deb
 750f7c3b4da93508d24e7585f30e56fcb2156641ccde8e0e146ce629efd209ca 156270 libapt-inst1.5_0.9.10_amd64.deb
 ddb19311e3c3ee3478f323c37f893e06939dedd143b100ce13c1726bd902cec7 1005310 apt_0.9.10_amd64.deb
 3515f631a45fa659d008c838e9421bcad1ef1884f18ca2d4624d7178be124cb1 176576 libapt-pkg-dev_0.9.10_amd64.deb
 20a62c6cb9fc99913d0322c024acc26c0b7c833026d348ae712cff38db547c2b 343326 apt-utils_0.9.10_amd64.deb
 bd1230a0004d20699fb25859814ced5d4ef1a76b7567ee7fd7ecc86a5bc52fda 111508 apt-transport-https_0.9.10_amd64.deb
Files: 
 8ee1a0bfd761abb519acd56e818c3191 1684 admin important apt_0.9.10.dsc
 e19f33c0dce34a2df2c7f5daa2d27be6 3360436 admin important apt_0.9.10.tar.gz
 f5114793d45452ddbc8f82e53e609dfc 264602 doc optional apt-doc_0.9.10_all.deb
 9796f980e07467f0a93d581ea78ecae3 550654 doc optional libapt-pkg-doc_0.9.10_all.deb
 a4703ddd1e0c504b23fd8454976406ec 712650 libs important libapt-pkg4.12_0.9.10_amd64.deb
 9138c9e17b6cfb7734aa0407bb7af277 156270 libs important libapt-inst1.5_0.9.10_amd64.deb
 68a9877fa4ed37d8203c18e200fddafc 1005310 admin important apt_0.9.10_amd64.deb
 35ffa03efbe451b1c11c0d82a5494955 176576 libdevel optional libapt-pkg-dev_0.9.10_amd64.deb
 feaaf59ba25f16cc3ff90530e3e05331 343326 admin important apt-utils_0.9.10_amd64.deb
 f070452f577f179cd7291bea100639cc 111508 admin optional apt-transport-https_0.9.10_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)

iEYEARECAAYFAlIJPpQACgkQliSD4VZixzRqrQCfTYchQhIyLCQzXBKs+PjTkv5h
FhMAn17KQqjuVUqyFsEE4N8wLIhURodQ
=fKFk
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: