LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-25-2003, 05:37 PM   #1
Karvalho
LQ Newbie
 
Registered: Sep 2003
Posts: 15

Rep: Reputation: 0
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
 
Old 09-25-2003, 05:50 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,570

Rep: Reputation: 171Reputation: 171
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)
 
Old 09-25-2003, 07:50 PM   #3
Karvalho
LQ Newbie
 
Registered: Sep 2003
Posts: 15

Original Poster
Rep: Reputation: 0
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!
 
Old 09-26-2003, 04:46 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,570

Rep: Reputation: 171Reputation: 171
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



Last edited by Mara; 09-26-2003 at 04:56 PM.
 
Old 09-27-2003, 06:36 PM   #5
Karvalho
LQ Newbie
 
Registered: Sep 2003
Posts: 15

Original Poster
Rep: Reputation: 0
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
 
Old 09-28-2003, 05:14 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,570

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to open .deb-files? Waerner Linux - Newbie 4 06-16-2005 05:16 PM
unable to open locked files frayed2 Mandriva 4 04-26-2005 11:22 PM
unable to open .html files car313 Linux - Software 3 08-20-2004 01:07 PM
how to open rpm files on windows bbf3i Linux - Networking 3 03-03-2004 11:27 AM
I can't open .rpm files in Mandrake 8.2 ...also I have n o sound. (NEWBIE) jwieler85 Mandriva 4 10-25-2003 06:14 PM


All times are GMT -5. The time now is 03:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration