Newb having problems with RPMs

The place to post if you need help or advice

Moderators: ChrisThornett, LXF moderators

Newb having problems with RPMs

Postby Philosophicles » Wed Jul 06, 2005 10:00 pm

I'm pretty new to linux, i.e. I installed the day before yesterday. It will therefore possibly seem odd that I am already attempting to recompile my kernel, which I am, but you have to take my word for it that I *do* need to ;)

My query is that I am trying to download the latest stable kernel from the Mandriva Cooker, which AFAIK is just a repository for Mandrake/Mandriva stuff. I have tried many of the different mirrors, but each rpm that I download does the same thing. I enter the root password, answer yes to a prompt that I do want to install, rather than just saving, then the installation begins, and I get an error saying that the package has a bad signature. If I "continue anyway" the installation just stops.

What is causing this, and how can I get around this? Corruption is not likely since I've tried a few different download mirrors, so I assume I am doing something wrong ;)
Last edited by Philosophicles on Thu Jul 07, 2005 5:18 pm, edited 3 times in total.
He who asks is a fool for 5 minutes, but he who does not ask remains a fool forever...
Philosophicles
 
Posts: 9
Joined: Wed Jul 06, 2005 4:10 pm
Location: Devon!

RE: Newb having problems with RPMs

Postby Rhakios » Thu Jul 07, 2005 12:08 am

Two possibilities:
1. The kernel source rpm is a large package (or it should be) installation can seem to hang for some time, you might need to leave it a little longer.
2. Try installing form the command line with rpm -ivh kernel-source-whatever.rpm (su to root first, i.e. type su <return> enter root password <return>, when you finished being use exit to log off).

You are probably getting the signature error if you haven't configured cooker as an rpm source, which normally imports the key automagically.
Bye, Rhakios
User avatar
Rhakios
Moderator
 
Posts: 7634
Joined: Wed Apr 06, 2005 11:18 pm
Location: Midlands, UK

RE: Newb having problems with RPMs

Postby towy71 » Thu Jul 07, 2005 6:26 am

Philosophicles have you actually downloaded the kernel package before trying to install it? That might be your problem! As I understand it if you try to install before you have the complete file it will look for the various components and they will not neccessarily be there.
HTH
Dick
still looking for that door into summer
User avatar
towy71
Moderator
 
Posts: 4276
Joined: Wed Apr 06, 2005 2:11 pm
Location: wild West Wales

RE: Newb having problems with RPMs

Postby Guest » Thu Jul 07, 2005 11:05 am

Heheh, yes thanks Towy71, I did wait for the entire 40.7 meg to download :P . As for Rhakios' suggestion, I tried leaving it for about 5 minutes after clicking the "Continue anyway [despite signature error]" option, and no dice. Tried your command-line alternative (I really need to learn how to do all these things at the shell, don't I?) :

[root@localhost Desktop]# rpm -ivh kernel-2.6.12.3mdk-1-1mdk.src.rpm
warning: kernel-2.6.12.3mdk-1-1mdk.src.rpm: V3 DSA signature: NOKEY, key ID 26752624
1:kernel-2.6.12.3mdk warning: user flepied does not exist - using root
warning: user flepied does not exist - using root
warning: user flepied does not exist - using root
warning: user flepied does not exist - using root
warning: user flepied does not exist - using root)
########################################### [100%]
warning: user flepied does not exist - using root
warning: user flepied does not exist - using root
warning: user flepied does not exist - using root
[root@localhost Desktop]#


I think I actually tried it at the command line once before, before looking here for help, and I'm pretty sure it gave me something different, but still the same first line "Warning... NOKEY...etc", and pretty clearly did not actually install the package.

If I then cd /usr/src and do an ls, I get three folders: linux, linux-2.6.8.1-12mdk and RPM. As I understand, linux is the currently installed kernel, and RPM is not too relevant to what I'm doing here (correct me if I'm wrong). The linux-2.6.8.1-12mdk was one I got off the distro CD, but I kinda tried playing with it and I think I broke it ;). It certainly won't do the things that the Mandriva "How to recompile kernel" guide says it should, so I am wary of using it anymore, lest I end up with no kernel.

My point there is that the downloaded package, kernel-2.6.12.3mdk-1-1mdk.src.rpm, does not seem to be there anywhere, and I believe that is where it would be installed to by default. Any more suggestions based on this?
Guest
 

RE: Newb having problems with RPMs

Postby Philosophicles » Thu Jul 07, 2005 11:09 am

Whoops, forgot to sign in there. If you didn't guess, last post was me. Sorry!
He who asks is a fool for 5 minutes, but he who does not ask remains a fool forever...
Philosophicles
 
Posts: 9
Joined: Wed Jul 06, 2005 4:10 pm
Location: Devon!

RE: Newb having problems with RPMs

Postby Philosophicles » Thu Jul 07, 2005 1:57 pm

OK, I think I've sorted it all out. In the end I figured out how to unbreak the package I got off the CD, so I've installed that again and am right in the middle of a kernel recompile as I type. No quiche for me ;)

Thanks for your help, guys. I'm sure I'll be back with another problem before long!
He who asks is a fool for 5 minutes, but he who does not ask remains a fool forever...
Philosophicles
 
Posts: 9
Joined: Wed Jul 06, 2005 4:10 pm
Location: Devon!

RE: Newb having problems with RPMs

Postby Rhakios » Fri Jul 08, 2005 10:44 am

Of course the other problem was that you were installing a src rpm as opposed to an rpm of the kernel source. A common mistake. Firstly a src.rpm is a file containing the the source code and spec file for an application, you use rpmbuild --rebuild to create an rpm from it. If you install such a src.rpm all it does is dump a tar.bz2 package of the sources in /usr/src/RPM/SOURCES and the spec file in the same place under SPECS.
On the other hand the kernel-source rpm is a package that installs the mandriva kernel sources (including kernel headers, and a copy of the default .config) under /usr/src/linux-2.6.whatever and linked to /usr/src/linux.
Bye, Rhakios
User avatar
Rhakios
Moderator
 
Posts: 7634
Joined: Wed Apr 06, 2005 11:18 pm
Location: Midlands, UK


Return to Help!

Who is online

Users browsing this forum: No registered users and 1 guest