LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unable to open rpm files. Please help! (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-open-rpm-files-please-help-96898/)

Karvalho 09-25-2003 05:37 PM

Unable to open rpm files. Please help!
 
Hi,

I'm using linux for the first time. So please be patient ;) I'm using Redhat 7.0. When trying to open any rpm file, after doing rpm -i "name of the file" I get the following errors:

cannot get exclusive lock on /var/lib/rpm/Packages
cannot open Packages index using db3 - operation not permitted (1)
cannot open packages database in /var/lib/rpm

Can someone help me, please?
Cheers!
K

Mara 09-25-2003 05:50 PM

You can install RPMs only as root. Sowhen you're logged as your normal user, the right sequence of commands is
su
(enter root password when asked)
rpm -i package
exit
(to quit root mode)

Karvalho 09-25-2003 07:50 PM

Many thanks!
 
Many thanks , Mara. It's done!

Now I have a much harder problem: to install a hp 710C printer to work with linux. It's one of the so called winprinters. I read a lot of different things in the net aboput it. Any sugestion to make my life easier?

Thanks again!

Mara 09-26-2003 04:46 PM

I can't help much, because I've never had a printer, but that's what my boyfriend says:
1) Try to find a driver for any 7xx (use google). If you can't find or it doesn't work
2) Generic hp (should be included in your system). Just 'hp deskjet'.
Everything should be in cups manual (man cups).

Update: there's a driver for 710C in cups 1.1.19. RH 7.0 probably has an older version, so you need to upgrade it. In mandrake, you need to have (MDK packages, in RH they'll be different, but the same versons):
foomatic-filters-3.0-0.beta1.20030310.2mdk
foomatic-db-engine-3.0-0.beta1.20030310.2mdk
foomatic-db-3.0-0.beta1.20030310.2mdk
libcups1-1.1.19-1.1mdk
cups-1.1.19-1.1mdk
cups-common-1.1.19-1.1mdk
cups-drivers-1.1-104.2mdk



Karvalho 09-27-2003 06:36 PM

Tks Mara. Because 710C it's a "winprinter" I need to have a driver pnm2ppa. I checked it is in my system in /usr/bin. But when I try to print a doc from Abiword, for example, the sign of pages "going to the printer" shows up but then nothing happens...

I'll keeep looking for asolution.

Many thanks
K

Mara 09-28-2003 05:14 PM

Make sure cups' running. It should also produce logs (/var/log/messages).


All times are GMT -5. The time now is 04:41 AM.