Issues with apt-get

Panu Matilainen pmatilai at welho.com
Sat Mar 13 10:32:48 UTC 2004


On Fri, 2004-03-12 at 14:47, Tim Harris wrote:
> Mark Limburg wrote:
> 
> >Howdy guys,
> >
> >I went to do an apt-get upgrade this morning and got this ..
> >
> >  W: There are multiple versions of "gpg-pubkey" in your system.
> > 
> >  This package won't be cleanly updated, unless you leave
> >  only one version. To leave multiple versions installed,
> >  you may remove that warning by setting the following
> >  option in your configuration file:
> > 
> >  RPM::Allow-Duplicated { "^gpg-pubkey$"; };
> > 
> >  To disable these warnings completely set:
> > 
> >  RPM::Allow-Duplicated-Warning "false";
> >
> >Haven't seen this before .. any ideas how I can clean this up?
> >
> >MWL
> >
> >  
> >
> Do an rpm query like this:
> rpm -q gpg-pubkey
> This will show two version of this app. Uninstall the older version like 
> this:
> rpm -ev gpg-pubkey-xxxxxx.
> You can uninstall versions of an rpm with the "v" switch.
> If you have multiple duplicates please see an earlier thread where 
> someone discribed a script to remove the duplicates with apt-get.

No no.. gpg-pubkey's aren't packages even if they show up in the list,
and it's totally ok (and even expected) that you have multiple of them.
The right thing to do is what apt suggests you to do: add this to
/etc/apt/apt.conf:
RPM::Allow-Duplicated { "^gpg-pubkey$"; }; 

Or even better, since gpg-pubkey's can't be installed or upgraded or
anything like that via apt it's better to make apt ignore them
completely:
RPM::Ignore:: "gpg-pubkey";

	- Panu -






More information about the fedora-list mailing list