Install the RPM package under Linux with a non-root user. Error can’t create transaction lock on /var/lib/ RPM /.rpm. Lock.
[hadoop@hadoop186 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
[hadoop@hadoop186 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
[hadoop@hadoop186 rpm]$ su - root
パスワード:
[root@hadoop186 ~]# pwd
/root
[root@hadoop186 ~]# cd /home/hadoop/rpm/
[root@hadoop186 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
[root@hadoop186 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%]
[root@hadoop186 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%]
[root@hadoop186 rpm]#
Read More:
- Global lock, table lock and row lock in MySQL
- Error: Failed dependencies: error encountered when installing rpm package
- Lock wait timeout exceeded — transaction and index
- MySQL error 1205 (HY000): lock wait timeout exceeded; try restarting transaction
- Unity Cursor Lock& Camera Lock
- Error in installing centos8.3: DFN error: error in postrans scriptlet in RPM package kernel core
- Fatal: unable to create ‘project_ path/.git/ index.lock ‘: File exists.
- When installing software in Ubuntu, it prompts: E: You don’t have enough free space in /var/cache/apt/archives/.
- Lock mechanism in Oracle
- DB2 encountered the problem of sqlcode = 911 lock table when updating record update
- Centos 7 | mariadb/mysql | [ERROR] InnoDB: Unable to lock ./ibdata1 error: 11
- Ansible Failed – apt lock
- Java uses lock to realize multithread sequential alternate execution mode 2
- When Linux installs redis, it executes make install and reports an error: Make: * * [server. O] error 1 (solved)
- Waiting for another pilot command to release the startup lock
- mysqldump: Got error: 1016: Can’t open file: ‘./xxx.frm’ (errno: 24) when using LOCK TABLES
- flAbsPath on /var/lib/dpkg/status failed – realpath
- InnoDB: Unable to lock ibdata1, error: 35
- Forced shutdown of VMware wrokstation error (failed to get exclusive lock on the configuration file —)
- Linux Mint installs Hadoop environment