Install the RPM package under Linux with a non-root user. Error can’t create transaction lock on /var/lib/ RPM /.rpm. Lock.
[[email protected] rpm]$ rpm -ivh libconfuse-2.5-4.el5.x86_64.rpm
Warning: libconfuse-2.5-4.el5.x86_64.rpm: ヘッダ V3 DSA/SHA1 Signature, key ID 217521f6: NOKEY
エラー: can't create transaction lock on /var/lib/rpm/.rpm.lock (許可がありません)
Error reason: Permission problem
[[email protected] sbin]$ ll /var/lib/rpm/
Totally 95584
-rw-r--r--. 1 root root 10678272 7月 10 11:41 2014 Basenames
-rw-r--r--. 1 root root 12288 5月 4 11:58 2014 Conflictname
-rw-r--r--. 1 root root 2170880 7月 10 11:41 2014 Dirnames
-rw-r--r--. 1 root root 10604544 7月 10 11:41 2014 Filedigests
-rw-r--r--. 1 root root 36864 7月 10 11:41 2014 Group
-rw-r--r--. 1 root root 24576 7月 10 11:41 2014 Installtid
-rw-r--r--. 1 root root 86016 7月 10 11:41 2014 Name
-rw-r--r--. 1 root root 24576 5月 5 15:29 2014 Obsoletename
-rw-r--r--. 1 root root 73293824 7月 10 11:41 2014 Packages
-rw-r--r--. 1 root root 1331200 7月 10 11:41 2014 Providename
-rw-r--r--. 1 root root 667648 7月 10 11:41 2014 Provideversion
-rw-r--r--. 1 root root 12288 3月 27 14:11 2014 Pubkeys
-rw-r--r--. 1 root root 512000 7月 10 11:41 2014 Requirename
-rw-r--r--. 1 root root 323584 7月 10 11:41 2014 Requireversion
-rw-r--r--. 1 root root 163840 7月 10 11:41 2014 Sha1header
-rw-r--r--. 1 root root 77824 7月 10 11:41 2014 Sigmd5
-rw-r--r--. 1 root root 12288 3月 27 14:46 2014 Triggername
-rw-r--r-- 1 root root 24576 7月 10 11:41 2014 __db.001
-rw-r--r-- 1 root root 229376 7月 10 11:41 2014 __db.002
-rw-r--r-- 1 root root 1318912 7月 10 11:41 2014 __db.003
-rw-r--r-- 1 root root 753664 7月 10 11:41 2014 __db.004
solution:
Enter “su” and password at the terminal, log in root, and log in as root will not be prompted
[[email protected] rpm]$ su - root
パスワード:
[[email protected] ~]# pwd
/root
[[email protected] ~]# cd /home/hadoop/rpm/
[[email protected] rpm]# ll
合計 164
-rw-rw-r--. 1 hadoop hadoop 31792 6月 20 17:00 2014 argtable-2.13-2.el6.x86_64.rpm
-rw-rw-r-- 1 hadoop hadoop 87025 7月 10 11:38 2014 libconfuse-2.5-4.el5.x86_64.rpm
-rw-rw-r-- 1 hadoop hadoop 15013 7月 10 11:38 2014 libconfuse-devel-2.5-4.el5.x86_64.rpm
-rw-rw-r--. 1 hadoop hadoop 26256 6月 20 17:00 2014 log4c-devel-1.2.4-1.el6.x86_64.rpm
[[email protected] rpm]# rpm -ivh libconfuse-2.5-4.el5.x86_64.rpm
警告: libconfuse-2.5-4.el5.x86_64.rpm: ヘッダ V3 DSA/SHA1 Signature, key ID 217521f6: NOKEY
準備中... ########################################### [100%]
1:libconfuse ########################################### [100%]
[[email protected] rpm]# rpm -ivh libconfuse-devel-2.5-4.el5.x86_64.rpm
警告: libconfuse-devel-2.5-4.el5.x86_64.rpm: ヘッダ V3 DSA/SHA1 Signature, key ID 217521f6: NOKEY
準備中... ########################################### [100%]
1:libconfuse-devel ########################################### [100%]
[[email protected] rpm]#
Read More:
- configure: error: readline library not found solution
- Root password of windows 10 WSL Ubuntu system
- Wechat payment API V3 payment notice asynchronous signature verification failed
- MySQL password setting error message: error 1054 (42s22): unknown column ‘password’ in ‘field list’
- MySQL startup problem (ERROR 1045 (28000): Access denied for user’ODBC’@’localhost’ (using password: NO))
- ssh-copy-id:/usr/bin/ssh-copy-id: ERROR: No identities found
- Error in installing MySQL devel for CentOS MySQL
- [Solved] Appium Android, Appium settings and Unclock method will be installed every time the phone is started
- MySQL Access denied
- fatal error: Python.h: No such file or directory
- ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
- Error 1045 (28000): solution to access denied for user ‘root’ @’localhost ‘(using password: no)
- Resourcemanger reported an error: the port is unavailable
- Fatal: unable to create ‘project_ path/.git/ index.lock ‘: File exists.
- “Failed to find entry for user…” appears when Linux uses samba
- After switching the tidb database, an error could not commit JDBC transaction appears from time to time
- Global lock, table lock and row lock in MySQL
- Solution of invalid username / password; login denied error in Oracle Database Foundation
- MySQL error 1205 (HY000): lock wait timeout exceeded; try restarting transaction
- Navicat for MySQL error 1251 failed to connect to MySQL