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

Bug#355859: When using pinning or --target-release, "upgrades" packages to the already installed version



Package: apt
Version: 0.6.43.2ubuntu1
Severity: normal

Hi,

If pinning or the --*-release= options are used, apt seems to treat
available packages with the highest priority as newer than the already
installed packages even if they have the same version.

This is from an apt-get dist-upgrade:

[...]
Preparing to replace ncftp 2:3.1.9-1 (using .../ncftp_2%3a3.1.9-1_amd64.deb) ...
Preparing to replace netmask 2.3.7 (using .../netmask_2.3.7_amd64.deb) ...
Preparing to replace netmon-applet 0.4-11 (using .../netmon-applet_0.4-11_amd64.deb) ...
Preparing to replace ntfsprogs 1.12.1-1 (using .../ntfsprogs_1.12.1-1_amd64.deb) ...
[...]

If I rerun apt-get dist-upgrade after it has completed, it again tries to
"upgrade" the same packages to the already installed version. While this is
mostly harmless, it potentially wastes large amounts of bandwidth.

# apt-get -u dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade... Done
The following packages have been kept back:
  libkrb5-17-heimdal sasl2-bin unixodbc
The following packages will be upgraded:
  antiword apcalc atftp aumix awesfx base-passwd bc camorama ccache cpio cvs
  dc deborphan devfsd directory-administrator dlocate dmake docbook-xml
  dosbox dosfstools dvdauthor fbset fdutils finger flow-tools fping
  freeglut3 ftp glunarclock gnome-doc-tools gnome-photo-printer
  gnome-randr-applet gnome-swallow-applet gocr gpdf gphotocoll grep
  grep-dctrl groff groff-base gsfonts gtk2-engines-cleanice
  gtk2-engines-magicchicken gtk2-engines-qtpixmap gtk2-engines-spherecrystal
  gtk2-engines-wonderland gtkhtml3.6 gtm gtweakui gzip hermes1 html2text
  indent ipchains ipmasqadm ksymoops less libaa1 libadns1 libapr0 libatm1
  libaudiofile0 libavc1394-0 libbeecrypt6 libcap1 libcln4 libcroco3 libdb2
  libdb3 libdb3-util libdc1394-13 libdvbpsi4 libdvdread3 libedit2 libelfg0
  libevent-perl libevent1 libexpat1 libgc1c2 libgcrypt11 libgdbm3
  libgdk-pixbuf-gnome2 libgdk-pixbuf2 libgimpprint1 libgnomecups1.0-1
  libgnomeprint-bin libgnomeprint15 libgtk1.2 libgtkhtml3.6-18 libgtkspell0
  libid3-3.8.3c2a libid3tag0 libieee1284-3 libimlib2 libintl-gettext-ruby1.8
  libintl-xs-perl liblocale-gettext-perl liblockfile1 libltdl3 liblzo1
  libmad0 libmodplug0c2 libmpcdec3 libnfsidmap1 libntfs8 libopencdk8
  liborbit0 libpcap0.8 libpcd2 libpixman1 libpng12-0 libpvm3 libqalculate1
  libruby1.8 libsdl-net1.2 libshout3 libsmpeg0 libsqlite3-0 libtag1c2a
  libtar libtext-charwidth-perl libtext-iconv-perl libwavpack0 libwmf0.2-7
  libxml-parser-ruby1.8 libxml1 localepurge logrotate lsof m4 man-db mdetect
  menu mii-diag mpg321 nasm ncftp netmask netmon-applet ntfsprogs nvi
  pidentd pkg-config powermgmt-base ppthtml prelink psmisc pump pvm
  python2.3-numeric qalc rdesktop ruby1.8 sed setserial sgml-data
  shared-mime-info sharutils socklog sox tcsh telnet time toolame traceroute
  vacation vgrind vorbis-tools wamerican watchdog wget zip
172 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
Need to get 0B/35.1MB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]?

All these packages are already the version apt wants to upgrade them to.

While this specific box runs an apt from Ubuntu, the problem is also present
in Debian's apt.

/etc/apt/preferences:

Package: *
Pin: release o=Ubuntu
Pin-Priority: 1200

Package: *
Pin: release o=Debian
Pin-Priority: 100

Andras

-- 
                 Andras Korn <korn at chardonnay.math.bme.hu>
                 <http://chardonnay.math.bme.hu/~korn/>	QOTD:
               Taxation is little more than legalized extortion.



Reply to: