LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Multiple versions of packages installed (https://www.linuxquestions.org/questions/fedora-35/multiple-versions-of-packages-installed-160259/)

bakwas_internet 03-20-2004 01:15 PM

Multiple versions of packages installed
 
hi,
i updated all the Xfree86 packages using synaptic....it went well .....after that i restarted the system......system is working fine.....but whenever i use apt-get to install something it gaves a error message like this....
Quote:

W: There are multiple versions of "XFree86-xdm" 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 { "^XFree86-xdm$"; };

To disable these warnings completely set:

RPM::Allow-Duplicated-Warning "false";

W: There are multiple versions of "XFree86-font-utils" 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 { "^XFree86-font-utils$"; };

To disable these warnings completely set:

RPM::Allow-Duplicated-Warning "fal
W: There are multiple versions of "XFree86-100dpi-fonts" 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 { "^XFree86-100dpi-fonts$"; };

To disable these warnings completely set:RPM::Allow-Duplicated-Warning
W: There are multiple versions of "XFree86-base-fonts" 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 { "^XFree86-base-fonts$"; };

To disable these warnings completely set:

RPM::Allow-Duplicated-Warning "fal
W: There are multiple versions of "XFree86-truetype-fonts" 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 { "^XFree86-truetype-fonts$"; };

To disable these warnings completely set:

RPM::Allow-Duplicated-Warn
W: There are multiple versions of "XFree86-75dpi-fonts" 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 { "^XFree86-75dpi-fonts$"; };

To disable these warnings completely set:

RPM::Allow-Duplicated-Warning "f
W: There are multiple versions of "XFree86-Mesa-libGLU" 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 { "^XFree86-Mesa-libGLU$"; };

To disable these warnings completely set:

RPM::Allow-Duplicated-Warning "f
W: There are multiple versions of "XFree86-tools" 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 { "^XFree86-tools$"; };

To disable these warnings completely set:

RPM::Allow-Duplicated-Warning "false";

W: You may want to run apt-get update to correct these problems
[root@aragon root]# apt-get -f install
Reading Package Lists... Done
Building Dependency Tree... Done
0 upgraded, 0 newly installed, 0 removed and 68 not upgraded.
W: There are multiple versions of "XFree86-xdm" 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 { "^XFree86-xdm$"; };

To disable these warnings completely set:

RPM::Allow-Duplicated-Warning "false";

W: There are multiple versions of "XFree86-font-utils" 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 { "^XFree86-font-utils$"; };

To disable these warnings completely set:

RPM::Allow-Duplicated-Warning "fal
W: There are multiple versions of "XFree86-100dpi-fonts" 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 { "^XFree86-100dpi-fonts$"; };To disable these warnings completely set:

RPM::Allow-Duplicated-Warning
W: There are multiple versions of "XFree86-base-fonts" 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 { "^XFree86-base-fonts$"; };

To disable these warnings completely set:

RPM::Allow-Duplicated-Warning "fal
W: There are multiple versions of "XFree86-truetype-fonts" 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 { "^XFree86-truetype-fonts$"; };

To disable these warnings completely set:

RPM::Allow-Duplicated-Warn
W: There are multiple versions of "XFree86-75dpi-fonts" 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 { "^XFree86-75dpi-fonts$"; };

To disable these warnings completely set:

RPM::Allow-Duplicated-Warning "f
W: There are multiple versions of "XFree86-Mesa-libGLU" 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 { "^XFree86-Mesa-libGLU$"; };

To disable these warnings completely set:RPM::Allow-Duplicated-Warning "f
W: There are multiple versions of "XFree86-tools" 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 { "^XFree86-tools$"; };

To disable these warnings completely set:

RPM::Allow-Duplicated-Warning "false";

W: You may want to run apt-get update to correct these problems
i think new packages got installed side by side old packages....wat can i do now....any help will be highly appreciated...also how do i find out which version of xfree86 is currently being used....thanx in advance
bakwas

jailbait 03-20-2004 07:32 PM

"i think new packages got installed side by side old packages....wat can i do now"

First take a look and see what packages are duplicated. Use this command:
rpm -qa | sort > /root/packages.txt
to create a file which lists all of your package names. Then use an editor or the less command to read /root/packages.txt
and figure out what packages are duplicated. Figure out which version of the duplicate package that you actually want to use. Get a copy of that package's rpm file and keep it handy.

You can then fix the problem by using rpm. When you have a duplicate package name then use this command to get rid of one copy of the package:
rpm --nodeps -e badpackagename
Then issue the same command again to get rid of the second copy of badpackagename. Keep doing that until rpm tells you that badpackagename is not installed. Then install the correct version of that package with:
rpm --force -i /pathname/packagename

See:
man rpm
to see what all of the rpm options that I described actually do.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

bakwas_internet 03-21-2004 12:44 AM

thanx jailbait for your help ....now there are no errors....but can u tell me wat went wrong and why in the first place duplicate packages got installed.....i thought apt will take care of theese things by itself....anyway thanx again fot your help......

jailbait 03-21-2004 11:43 AM

"can u tell me wat went wrong and why in the first place duplicate packages got installed.....i thought apt will take care of theese things by itself...."

apt is supposed to take of the dependencies by itself. But all of the automated installers somtimes fail on complicated dependencies. So far, I don't think that any of them, including apt, have reached the point where they are perfect. So when they fail you have to drop down to the lower level logic of command line rpm and straighten out the mess by hand.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

russkiypenguin 04-28-2004 08:12 AM

an easier solution
 
if you notice there's a solution proposed in the error message itself.

"you could run apt-get update to fix this"

I tried it and it solved my problem. I don't know why apt-get can figure out it's problems but the front end synaptic can't. I doubt I'll be using synaptic again.

timcharper 05-05-2005 01:48 PM

thanks jailbait
that helped!


Raafi 05-05-2005 07:49 PM

i did this once with java, because i became confused by the various methods of installing it, i kept getting that same error message that you have for apt-get but synaptic also told me that i had two or more of the same program

i had java 1.4.2 and 1.5.0 two or three times

i used synaptic to remove them, because it showed up twice, everything came out nice

topazcaleb 06-01-2007 01:04 PM

Multiple versions of libraries present.
 
The above situation arises due the --force switch given with rpm command. But its not too late...

please run the below command as root

apt-get update --fix-broken

This would fix all the broken libraries.

Topaz


All times are GMT -5. The time now is 03:30 AM.