LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't Install .rpm Files! (https://www.linuxquestions.org/questions/linux-newbie-8/can%27t-install-rpm-files-265925/)

Hagen 12-13-2004 10:04 AM

Can't Install .rpm Files!
 
When I'm trying to install a .rpm file on my mandrake 10, i get this:

$ rpm -ivh xmms-1.2.10-1.src.rpm
error: cannot create %sourcedir /usr/src/RPM/SOURCES

Why do I get this error, and how can i (step by step :P) fix it?

jeffreybluml 12-13-2004 10:12 AM

Hi,

You simply need to do this as root...it can't create a directory it needs as a normal user...

good luck,

Hagen 12-13-2004 10:19 AM

Login as root?
 
Then how can I go as a root? I'm really a newbie at Linux, so I need lots of help! :D

jeffreybluml 12-13-2004 10:30 AM

well, hopefully you know the root password. Assuming you do, just type this...

su

and hit enter. It will ask for a password. Enter it, and bam, you're root. Now try and install the rpm.

When you're done, make sure you type

exit

so you're not root anymore. It's important to make sure you're not root when doing normal things, so you do'nt screw up and ruin your system...

Good luck,

Hagen 12-13-2004 10:33 AM

Ohhh! Thanks a lot! You saved the day for me! :D Luv ya! :P


All times are GMT -5. The time now is 11:57 PM.