Re: apt wants to downgrade a package. Why?

Hans Deragon <[email protected]> Thu, 13 Oct 2005 15:24:52 -0400
Newsgroups gmane.linux.conectiva.apt-rpm
Message-ID <[email protected]>
Panu Matilainen wrote:
> 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 -

That is it.  Thanks.  It would be nice if there was an option in 
apt-get, like --debug, that would show why a version has more priority 
than another, either because of the Epoch, or "preferences" file.

Best regards,
Hans Deragon
--
Consultant en informatique/Software Consultant
Deragon Informatique inc.
http://www.deragon.biz        Open source (contribution):
mailto://[email protected]     http://autopoweroff.deragon.biz