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

Bug#366437: wants to install package with "0:" epoch again and again



Package: apt
Version: 0.6.43.3
Severity: normal

mailman currently has a version number of, literally, "0:2.1.8-1". apt's
handling of this is decidedly strange. Quoting the user who first
reported the issue on debian-user, Dave Carrigan <dave@rudedog.org>:

> I'm not sure if this is a problem with mailman or dpkg, but apt continually 
> wants to upgrade mailman, even though I'm at the most recent version:
>
> # apt-get -s upgrade
> Reading package lists... Done
> Building dependency tree... Done
> The following packages will be upgraded:
>   mailman
> 1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
> Inst mailman [2.1.8-1] (0:2.1.8-1 Debian:unstable)
> Conf mailman (0:2.1.8-1 Debian:unstable)

Notice that apt is sometimes showing the epoch and sometimes not.

> # apt-cache policy mailman
> mailman:
>   Installed: 2.1.8-1
>   Candidate: 0:2.1.8-1
>   Version table:
>      0:2.1.8-1 0
>         500 http://debian-mirror.mirror.umn.edu unstable/main Packages
>      0:2.1.7-2.1.8rc1-1 0
>         500 http://debian-mirror.mirror.umn.edu testing/main Packages
>  *** 2.1.8-1 0
>         100 /var/lib/dpkg/status
>      2.1.5-8sarge2 0
>         500 http://debian-mirror.mirror.umn.edu stable/main Packages

And again, the pattern seems to be that it thinks version 2.1.8-1 is installed,
stripping off the 0:, since 0 is the default epoch if none is specified. But
it doesn't do this for the candidate version, so the two versions fail
to compare.

> # dpkg-deb -I /var/cache/apt/archives/mailman_0%3a2.1.8-1_i386.deb |
> grep '^ Version'
>  Version: 0:2.1.8-1
> # dpkg -i /var/cache/apt/archives/mailman_0%3a2.1.8-1_i386.deb | grep
> '^ Version'
>  <snip successful install>
> # dpkg --status mailman | grep ^Version
> Version: 2.1.8-1
> # apt-get -s upgrade
> Reading package lists... Done
> Building dependency tree... Done
> The following packages will be upgraded:
>   mailman
> 1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
> Inst mailman [2.1.8-1] (0:2.1.8-1 Debian:unstable)
> Conf mailman (0:2.1.8-1 Debian:unstable)
> 
> It's getting very annoying.

I second that, and I'm also seeing the problem here, apt upgrades
mailman every time I upgrade, and the version is always 0:2.1.8-1.

-- Package-specific info:

-- apt-config dump --

APT "";
APT::Architecture "i386";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::userstatus "status.user";
Dir::State::status "/var/lib/dpkg/status";
Dir::Cache "var/cache/apt/";
Dir::Cache::archives "archives/";
Dir::Cache::srcpkgcache "srcpkgcache.bin";
Dir::Cache::pkgcache "pkgcache.bin";
Dir::Etc "etc/apt/";
Dir::Etc::sourcelist "sources.list";
Dir::Etc::sourceparts "sources.list.d";
Dir::Etc::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::dpkg "/usr/bin/dpkg";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/bin/apt-listchanges --apt || test $? -ne 10";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
DPkg::Tools "";
DPkg::Tools::Options "";
DPkg::Tools::Options::/usr/bin/apt-listchanges "";
DPkg::Tools::Options::/usr/bin/apt-listchanges::Version "2";
DPkg::Post-Invoke "";
DPkg::Post-Invoke:: "if [ -x /usr/bin/debsums ]; then /usr/bin/debsums --generate=nocheck -sp /var/cache/apt/archives; fi";
Acquire "";
Acquire::http "";
Acquire::http::Proxy "/";

-- (no /etc/apt/preferences present) --


-- /etc/apt/sources.list --

deb ftp://ftp.nerim.net/debian-marillat/ sid main 

# deb file:/home/joey/lib/debian/ local/ 
# deb file:/home/joey/lib/debian/ unstable/ 

# deb http://kitenet.net/~joey/debian/ unstable/ 
deb http://uqm.debian.net/ unstable/ 

deb http://ftp.debian.org/debian/ unstable main contrib non-free  
deb-src http://ftp.debian.org/debian/ unstable main contrib non-free    
deb http://ftp.debian.org/debian/ experimental main contrib non-free

#deb http://ftp.debian.org/debian/ unstable main contrib non-free  
#deb-src http://ftp.debian.org/debian/ unstable main contrib non-free    
#deb http://ftp.debian.org/debian/ experimental main contrib non-free
deb http://ftp.debian.org/debian/ testing main
deb http://ftp.debian.org/debian/ stable main

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages apt depends on:
ii  libc6                       2.3.6-7      GNU C Library: Shared libraries
ii  libgcc1                     1:4.1.0-1+b1 GCC support library
ii  libstdc++6                  4.1.0-1+b1   The GNU Standard C++ Library v3

Versions of packages apt recommends:
ii  debian-archive-keyring        2006.01.18 GnuPG archive keys of the Debian a

-- no debconf information

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature


Reply to: