PDA

View Full Version : Just installed APT from Fresh RPM


luna6
17th November 2004, 05:23 PM
I just installed Fedora Core 3 x86_64 last night through an ftp install and everthing went smoothly. After I finished the installation of the os, I did download the apt-0.5.15cnc6-1.1.fc3.fr.x86_64.rpm from freshrpms.net and installed that. Once I tried "apt-get upgrade" it gave me errors that there was duplicate rpm's installed. It seems during the FC3 x86_64 install FC3 would install some programs twice the x86_64 rpm and the i386 version (like alsa-lib), and this seems to be messing up APT. Anybody can offer help on how to solve this mess of duplicate rpms (i386 and x86_64)? I want to install a few native x86_64 apps from freshrpms like mplayer. thanks..

luna6
17th November 2004, 06:12 PM
this is the errors that comes up in apt when i do the apt-get update

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 { "^kdelibs$"; };

To disable these warnings completely set:

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

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

To disable these warnings completely set:

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




...thanks

hpx
17th November 2004, 06:54 PM

I got this too. I sort of solve the problem;

1. I edited the /var/log/rpmpkg file to remove all the duplicate i386 packages
2. found a recover-rpms-db.sh script
3. copied all the source rpms from the CDs to the hard drive
4. renamed /var/lib/rpm to /var/lib/rpm2
5. reinitiailzed the database rpm --initdb
6. verified it was empty with rpm -qa
7. rebuilt the rpm database with recover-rpms-db.sh -f /var/log/rpmpkg -p /fc3cds

All the duplicate packages are now gone, however I am getting dependency errors that it can't find GLIB or something. If anyone can solve this, we can reuse apt on FC3 AMD64!

luna6
17th November 2004, 08:08 PM
ack this sucks....would using yum work? i havent had problems doing updates via yum (just dont have any extra repositories setup)....i need xmms-mp3 plugin, mplayer, kaffeine, amarok .....otherwise will have to just use the 32bit fc3 which would be waste :(

Tru
17th November 2004, 08:14 PM
You can get all that stuff with yum. Here is a post with quite a few extra repos. http://www.fedoraforum.org/forum/showthread.php?t=26562 You can also find a lot more topics on Yum and repos and how to use it if you do advanced search and then do a topic search on yum.

I havent used apt before but yum has always worked great and comes preinstalled with fedora so this makes life easier.

luna6
17th November 2004, 08:17 PM
ok....so if if i follow the instructions from that thread you posted, I do not have to setup anything differently for x86_64 rpms? Just want to be able to get 64 bit rpms if at all possible, and not end up in some dependency hell....thanks....

Tru
18th November 2004, 02:38 AM
No, you should be fine. If you have any problems just post them in this post and we will try to solve them.

Raafi
25th February 2005, 03:40 PM
I dont know if i should have started a new thread or just follow up on this one

I recently reinstalled my Fedora Core 3 (this is about the tenth time, i am always experimenting and doing something wrong, but thats not my issue)

i am reading this book "A Practical Guide to Red Hat Linux" by Mark G Sobell, and just a quick background on what caused me to finally pick up the book,

i want to one of the fedora sites and copied and pasted the "new" etc/yum.conf and my yum stopped working, so thru my many readings of the forums, i see that apt-get (which doesnt come with the original) helps solves dependencies

so i ran it and this is what i got


[root@localhost ~]# apt-get check -f
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
[root@localhost ~]# apt-get check
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
bind-chroot#20:9.2.4-2: Depends: bind (= 20:9.2.4-2) but 20:9.2.4-8_FC3 is installed
bind-devel#20:9.2.4-2: Depends: bind (= 20:9.2.4-2) but 20:9.2.4-8_FC3 is installed
gamin-devel#0.0.15-1: Depends: gamin (= 0.0.15) but 0.0.24-1.FC3 is installed
glibc-common#2.3.3-74: Conflicts: glibc (> 2.3.3)
glibc-common#2.3.4-2.fc3: Conflicts: glibc (< 2.3.4)
kdegraphics-devel#7:3.3.0-3: Depends: kdegraphics (= 7:3.3.0-3) but 7:3.3.1-2.4 is installed
kdelibs-devel#6:3.3.0-5: Depends: kdelibs (= 6:3.3.0-5) but 6:3.3.1-2.6.FC3 is installed kdesdk-devel#3.3.0-1: Depends: kdesdk (= 3.3.0-1) but 3.3.1-1 is installed
namazu-cgi#2.0.13-3: Depends: namazu (= 2.0.13) but 2.0.14-0.FC3.0 is installed
openssh-askpass#3.9p1-7: Depends: openssh (= 3.9p1-7) but 3.9p1-8.0.1 is installed
openssh-askpass-gnome#3.9p1-7: Depends: openssh (= 3.9p1-7) but 3.9p1-8.0.1 is installed openssh-clients#3.9p1-7: Depends: openssh (= 3.9p1-7) but 3.9p1-8.0.1 is installed
openssh-server#3.9p1-7: PreDepends: openssh (= 3.9p1-7) but 3.9p1-8.0.1 is installed
postgresql-devel#7.4.6-1.FC3.1: Depends: postgresql-libs (= 7.4.6) but 7.4.7-3.FC3.1 is installed
python-devel#2.3.4-13.1: Conflicts: python (< 2.3.4-13.1)
python-tools#2.3.4-11: Depends: tkinter (= 2.3.4-11) but 2.3.4-13.1 is installed
ruby#1.8.1-7: Depends: ruby-libs (= 1.8.1-7) but 1.8.2-1.FC3.1 is installed
ruby-devel#1.8.1-7: Depends: ruby-libs (= 1.8.1-7) but 1.8.2-1.FC3.1 is installed
ruby-tcltk#1.8.1-7: Depends: ruby-libs (= 1.8.1-7) but 1.8.2-1.FC3.1 is installed
system-config-printer-gui#0.6.116-1: Depends: system-config-printer (= 0.6.116-1) but 0.6.116.1.1-1 is installed
xemacs-info#21.4.15-9: Depends: xemacs (= 21.4.15) but 21.4.17-0.FC3 is installed
xorg-x11#6.8.1-12: Depends: xorg-x11-libs (= 6.8.1-12) but 6.8.1-12.FC3.21 is installed
xorg-x11-devel#6.8.1-12: Depends: xorg-x11-libs (= 6.8.1-12) but 6.8.1-12.FC3.21 is installed
xorg-x11-xfs#6.8.1-12: Depends: xorg-x11-libs (= 6.8.1-12) but 6.8.1-12.FC3.21 is installed
E: Unmet dependencies. Try using -f.
[root@localhost ~]# apt-get -f install
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
The following packages will be REMOVED:
bind-chroot#20:9.2.4-2 bind-devel#20:9.2.4-2 gamin-devel#0.0.15-1 glibc#2.3.4-2.fc3
glibc-common#2.3.4-2.fc3 glibc-devel#2.3.4-2.fc3 glibc-headers#2.3.4-2.fc3
glibc-utils#2.3.4-2.fc3 irb#1.8.1-7 kdegraphics-devel#7:3.3.0-3
kdelibs-devel#6:3.3.0-5 kdesdk-devel#3.3.0-1 namazu-cgi#2.0.13-3
nptl-devel#2.3.4-2.fc3 openssh-askpass#3.9p1-7 openssh-askpass-gnome#3.9p1-7
openssh-clients#3.9p1-7 openssh-server#3.9p1-7 postgresql-devel#7.4.6-1.FC3.1
python-devel#2.3.4-13.1 python-tools#2.3.4-11 redhat-lsb ruby#1.8.1-7
ruby-devel#1.8.1-7 ruby-tcltk#1.8.1-7 system-config-printer-gui#0.6.116-1
xemacs-info#21.4.15-9 xorg-x11#6.8.1-12 xorg-x11-Xdmx#6.8.1-12 xorg-x11-Xnest#6.8.1-12
xorg-x11-Xvfb#6.8.1-12 xorg-x11-deprecated-libs-devel#6.8.1-12 xorg-x11-devel#6.8.1-12
xorg-x11-xfs#6.8.1-12
WARNING: The following essential packages will be removed
This should NOT be done unless you know exactly what you are doing!
glibc#2.3.4-2.fc3 (due to apt)
0 upgraded, 0 newly installed, 34 removed and 0 not upgraded.
Need to get 0B of archives.
After unpacking 263MB disk space will be freed.
You are about to do something potentially harmful
To continue type in the phrase 'Yes, do as I say!'
?] n
Abort.

according to the author, i should delete these and reinstall them using apt-get

is this what you guys would recommend?

or did i just get in way too deep over my head here?

Raafi
26th February 2005, 09:42 PM
hello? anybody home?