Re: [wlug] Fedora 2 and rpm denial Terminal log so far
[john@localhost john]$ pwd /home/john [john@localhost john]$ rpm --import RPM-GPG-KEY.txt error: cannot get exclusive lock on /var/lib/rpm/Packages error: cannot open Packages index using db3 - Operation not permitted (1) error: cannot open Packages database in /var/lib/rpm error: RPM-GPG-KEY.txt: import failed. [john@localhost john]$ rpm --import RPM-GPG-KEY.txt error: cannot get exclusive lock on /var/lib/rpm/Packages error: cannot open Packages index using db3 - Operation not permitted (1) error: cannot open Packages database in /var/lib/rpm error: RPM-GPG-KEY.txt: import failed. [john@localhost john]$ [john@localhost john]$ wget http://freshrpms.net/packages/RPM-GPG-KEY.txt --19:36:20-- http://freshrpms.net/packages/RPM-GPG-KEY.txt => `RPM-GPG-KEY.txt.1' Resolving freshrpms.net... 66.40.9.130 Connecting to freshrpms.net[66.40.9.130]:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1,631 [text/plain]
100%[====================================>] 1,631 --.--K/s
19:36:22 (15.55 MB/s) - `RPM-GPG-KEY.txt.1' saved [1631/1631]
[john@localhost john]$ rpm --import RPM-GPG-KEY.txt error: cannot get exclusive lock on /var/lib/rpm/Packages error: cannot open Packages index using db3 - Operation not permitted (1) error: cannot open Packages database in /var/lib/rpm error: RPM-GPG-KEY.txt: import failed. [john@localhost john]$
- jaytee@clear.net.nz jaytee@clear.net.nz [2004-06-12
09:12]:
http://freshrpms.net/packages/RPM-GPG-KEY.txt What to do here. There is nothing to download, I saved the all the text (from start to finish) in an open office file as Key.sxw
Err, you can put the text into a text editor, but a word processor document is not a plaintext file. You are supposed to simply download the file.
I did not know this!!
How about
wget http://freshrpms.net/packages/RPM-GPG-KEY.txt
Yes! This worked fine John..
"If you can't laugh at yourself, you don't take life seriously enough."
wlug mailing list | wlug@list.waikato.ac.nz Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug
* jaytee@clear.net.nz jaytee@clear.net.nz [2004-06-12 09:45]:
19:36:22 (15.55 MB/s) - `RPM-GPG-KEY.txt.1' saved
^^
Have you downloaded the file multiple times?
[john@localhost john]$ rpm --import RPM-GPG-KEY.txt
You are not importing ``RPM-GPG-KEY.txt.1'' here -- is the other file a plaintext file all the same? (Probably, but I'm asking to be sure.)
Try looking at them with ``less filename'' (obviously replacing "filename" with whatever the file in question is called) in the console -- if all you see is gunk, then that file is not plaintext. (Obviously. :) )
error: cannot get exclusive lock on /var/lib/rpm/Packages error: cannot open Packages index using db3 - Operation not permitted (1) error: cannot open Packages database in /var/lib/rpm error: RPM-GPG-KEY.txt: import failed.
Apparently, you are not executing the command in question as root. Do ``su -'' and enter your root password before running the RPM commands.
With sudo is set up appropriately, you could also simply do
sudo some-command-to-run-as-root --with-whatever-params
without entering a password.
jaytee@clear.net.nz wrote:
[john@localhost john]$ pwd /home/john [john@localhost john]$ rpm --import RPM-GPG-KEY.txt error: cannot get exclusive lock on /var/lib/rpm/Packages error: cannot open Packages index using db3 - Operation not permitted (1) error: cannot open Packages database in /var/lib/rpm error: RPM-GPG-KEY.txt: import failed. [john@localhost john]$ rpm --import RPM-GPG-KEY.txt error: cannot get exclusive lock on /var/lib/rpm/Packages error: cannot open Packages index using db3 - Operation not permitted (1)
You can only add keys and install packages as root; "su" and try again :)
participants (3)
-
A. Pagaltzis -
jaytee@clear.net.nz -
zcat