error: cannot open Packages database in /var/lib/rpm
2014-12-04 16:05
483 查看
在使用rpm -ivh gcc-4.4.7-4.el6.x86_64.rpm命令安装GCC时,提示以下错误:
执行以下命令即可搞定:
rm -rf /var/lib/rpm/__db*
rpmdb: Thread/process 3343/139858349385472 failed: Thread died in Berkeley DB library error: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages index using db3 - (-30974) error: cannot open Packages database in /var/lib/rpm warning: gcc-4.4.7-4.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY rpmdb: Thread/process 3343/139858349385472 failed: Thread died in Berkeley DB library error: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages database in /var/lib/rpm解决方法:
执行以下命令即可搞定:
rm -rf /var/lib/rpm/__db*
相关文章推荐
- error: cannot open Packages database in /var/lib/rpm
- yum error: cannot open Packages database in /var/lib/rpm
- Solution for link error:Cannot Open File 'python27_d.lib'
- error: can't create transaction lock on /var/lib/rpm/__db.000解决办法
- configure: error: Cannot find ldap libraries in /usr/lib 解决办法
- Error while loading shared libraries: libimsl.so: cannot open shared object file
- BAM部署视图失败 - OLE DB or ODBC error: Cannot open database "BAMStarSchema". login failed 42000.
- error while loading shared libraries: libperl.so: cannot open shared object file: No such file or di
- 运行so文件时,出现error while loading shared libraries: libjvm.so: cannot open shared object file...
- Arch更新错误error: failed to commit transaction (conflicting files) glibc: /lib exists in filesystem Errors occurred, no packages were upgraded.
- error while loading shared libraries: libxxx.so.y: cannot open shared object
- error while loading shared libraries:libresolv.so.2: cannot open shared object file:Permission denied
- ./snmpGet: error while loading shared libraries: libsnmp++.so: cannot open shared object file: No su
- error: 'Failed to open logfile '/var/lib/mysql_ndbd/data/ndb_2_out.log' for write
- error while loading shared libraries: libmysqlclient.so.16/18: cannot open shared object file
- Error loading MySQLdb module: libmysqlclient_r.so.16: cannot open shared object file: No such file or directory
- bdb_db_open: warning – no DB_CONFIG file found in directory /var/lib/ldap:
- MySQLDB install Error:libmysqlclient_r.so.16: cannot open shared object
- 解决error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No su
- error while loading shared libraries: libXXX.so.x: cannot open shared object file: No such file