apt-get

Place to discuss Fedora and/or Red Hat
Post Reply
kovax
scripter
scripter
Posts: 85
Joined: Mon Jan 24, 2005 9:47 am
Location: Jacksonville, USA
Contact:

apt-get

Post by kovax » Tue Jan 09, 2007 12:58 pm

It was suggested to me that I install apt-get so that i would no longer have to go through the process of installing things one piece at a time. However, when I tried to get apt-get installed it prompted me for this:
# rpm -ivh apt-0.5.15cnc6-4.1.el3.rf.i386.rpm
warning: apt-0.5.15cnc6-4.1.el3.rf.i386.rpm: V3 DSA signature: NOKEY, key ID 1aa78495
error: Failed dependencies:
librpm-4.2.so is needed by apt-0.5.15cnc6-4.1.el3.rf.i386
librpmdb-4.2.so is needed by apt-0.5.15cnc6-4.1.el3.rf.i386
librpmio-4.2.so is needed by apt-0.5.15cnc6-4.1.el3.rf.i386
I then tried to install one of the prerequicites for one of the other prerequicites and was propmpted for one of its prerequisites......

It is a neverending hole.......

Please help.

User avatar
Void Main
Site Admin
Site Admin
Posts: 5712
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Tue Jan 09, 2007 1:10 pm

Things will get easier after apt is installed and your source repositories configured. To install both of the packages that require each other to be installed do them both at the same time. e.g.

rpm -Uvh package1.rpm package2.rpm

rpm will see that you are installing both and the dependencies will be satisfied. You can install several packages in one shot.

worker201
guru
guru
Posts: 668
Joined: Sun Jun 13, 2004 6:38 pm
Location: Hawaii

Post by worker201 » Tue Jan 09, 2007 1:13 pm

All those libraries seem to be provided by rpm-4.2-0.69.

You can find a copy of it here:
http://www.wesmo.com/rpm2html/contribut ... .i386.html

FYI, pages like this come up pretty consistently if you google for a specific library file. This page was the first hit of a google search for "librpm-4.2.so".

Strangely, the package appear to both provide and require the same libraries. But hey, it's just one package, so give it a go.

User avatar
Void Main
Site Admin
Site Admin
Posts: 5712
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Tue Jan 09, 2007 2:29 pm

worker201 wrote:All those libraries seem to be provided by rpm-4.2-0.69.

You can find a copy of it here:
http://www.wesmo.com/rpm2html/contribut ... .i386.html

FYI, pages like this come up pretty consistently if you google for a specific library file. This page was the first hit of a google search for "librpm-4.2.so".

Strangely, the package appear to both provide and require the same libraries. But hey, it's just one package, so give it a go.
Sorry worker but I would not advise doing what you are suggesting especially with "rpm". This needs to come from his distribution. In his case Red Hat Enterprise Linux v3. He just ran into a case where he needed to install two rpms in one shot because they were dependant on each other.

User avatar
Calum
guru
guru
Posts: 1348
Joined: Fri Jan 10, 2003 11:32 am
Location: Bonny Scotland
Contact:

Post by Calum » Tue Jan 09, 2007 4:22 pm

in my experience trying to mix rpm and apt versions across different red hat based operating systems is always a recipe for disaster, and while it's very tempting, it never works out like you want! (that's just my experience though)

worker201
guru
guru
Posts: 668
Joined: Sun Jun 13, 2004 6:38 pm
Location: Hawaii

Post by worker201 » Tue Jan 09, 2007 5:31 pm

Agreed, he should probably try to find a distro-specific rpm, especially for something as vital as rpmlib. But a google search might get you started with what packages might be providing missing libraries, and I still recommend googling as a jumping-off point.

User avatar
Void Main
Site Admin
Site Admin
Posts: 5712
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Tue Jan 09, 2007 6:16 pm

Yes that is true, however it shouldn't be necessary when/if he gets apt installed. :)

kovax
scripter
scripter
Posts: 85
Joined: Mon Jan 24, 2005 9:47 am
Location: Jacksonville, USA
Contact:

Post by kovax » Wed Jan 10, 2007 8:02 am

I hope i can get this thing installed correctly. I think i have it installed but i get the following when i try to launch it:

# apt-get
apt-get: error while loading shared libraries: librpm-4.2.so: cannot open shared object file: No such file or directory

Thanks

User avatar
Void Main
Site Admin
Site Admin
Posts: 5712
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Wed Jan 10, 2007 10:21 am

Ok I have a few questions for you. What version of rpm do you have installed (rpm -q rpm)? Have you updated your EL3 system with all the latest updates? I assume since you are running EL3 you have RHN support. If so just do an "up2date" and update your system. I think the required library will get installed when you do this. If you do not have RHN support then I am curious why you are running that old EL3? I assume you must have some application that requires it? EL3 is based on Redhat 9 if I recall and I think EL4 is based on Fedora Core 3. I never really wanted to support Red Hat's Enterprise linux because I figured people pay Red Hat to do this, however I am perfectly happy supporting Fedora.

I do use Enterprise Linux a lot at work but I have RHN support on all of these servers (we even have a Red Hat Satellite server). But ALL of these EL installations are servers, not desktops. I personally wouldn't install apt and desktop apps such as mplayer on these servers. You may have good reasons I don't know, I'm certainly interested in hearing your story. I use Fedora Core 6 (or close to it) on my desktops and it's not nearly as painful to install these cool 3rd party desktop apps. Again, I'll continue to help, just interested that's all.

kovax
scripter
scripter
Posts: 85
Joined: Mon Jan 24, 2005 9:47 am
Location: Jacksonville, USA
Contact:

Post by kovax » Fri Jan 12, 2007 9:27 am

rpm-4.3.3-7_nonptl

User avatar
Void Main
Site Admin
Site Admin
Posts: 5712
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Fri Jan 12, 2007 12:10 pm

Do me a favor, what is the output of "cat /etc/redhat-release"? That looks like the version of RPM for EL4 not EL3. If that is the case then you need to go back and reinstall all of those 3rd party EL3 RPMs with the EL4 version and things should work. Also, what about all the other questions I asked?

kovax
scripter
scripter
Posts: 85
Joined: Mon Jan 24, 2005 9:47 am
Location: Jacksonville, USA
Contact:

Post by kovax » Fri Jan 19, 2007 8:45 am

cat /etc/redhat-release
Red Hat Enterprise Linux ES release 4 (Nahant)

User avatar
Void Main
Site Admin
Site Admin
Posts: 5712
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Fri Jan 19, 2007 8:53 am

kovax wrote:cat /etc/redhat-release
Red Hat Enterprise Linux ES release 4 (Nahant)
That's what I thought. You are running EL4, not EL3. Why are you trying to install EL3 RPMs on EL4? This will cause you all kinds of headaches. You need to install the EL4 versions. You started out by showing me you were trying to install EL3 RPMs so I *assumed* you were in fact running EL3.

kovax
scripter
scripter
Posts: 85
Joined: Mon Jan 24, 2005 9:47 am
Location: Jacksonville, USA
Contact:

Fixed

Post by kovax » Wed Feb 21, 2007 1:13 pm

I have updated my apt-get with the proper version. I removed the prior references of EL3 and ran rpm -ivh apt-0.5.15lorg3.1-4.el4.rf.i386.rpm and it seems to work fine.

Sorry for any previous misunderstandings

Thanks

User avatar
Void Main
Site Admin
Site Admin
Posts: 5712
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Wed Feb 21, 2007 1:58 pm

No problem, just don't let it happen again. Just kidding. :)

Post Reply