Re: apt wants to downgrade a package. Why?

Panu Matilainen <[email protected]> Thu, 13 Oct 2005 18:36:26 +0300
Newsgroups gmane.linux.conectiva.apt-rpm
Message-ID <[email protected]>
On Thu, 2005-10-13 at 11:24 -0400, Hans Deragon wrote:
> Greetings.
> 
> 
>    I installed a newer autofs rpm on a SLES9 machine manually, using 
> "rpm -Uhv ...".  Then I start apt-get to upgrade the system, and it 
> suggest that the rpm should be downgraded.  Why is that?  Apparently for 
> apt, the version number 4.1.4.lmw1-1 is lower than 4.1.3.lmw5-1.  Since 
> "rpm -Uhv" worked when I went from 4.1.3.lmw5-1 to 4.1.4.lmw1-1, rpm is 
> not the problem.  /etc/apt/preferences is non existant, to ensure that 
> it does not skew apt.
> 
> --->
> [root@machine] apt-get -V -y -s upgrade
> Reading Package Lists... Done
> Building Dependency Tree... Done
> The following packages will be upgraded
>     autofs (4.1.4.lmw1-1 => 4.1.3.lmw5-1)
> 1 upgraded, 0 newly installed, 0 removed and 0 not upgraded.
> Inst autofs [4.1.4.lmw1-1] (1:4.1.3.lmw5-1 SLES9:SLES9 en/SuSE)
> Conf autofs (1:4.1.3.lmw5-1 SLES9:SLES9 en/SuSE)
              ^^^
There's the cause - the older package has epoch of 1, the newer one
doesn't have an epoch. And epoch overrides all the other version
information...

	- Panu -