In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article is to share with you about how to solve the problem of yum clean all Error rpmdb open failed, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
Provide a solution according to rpmdb open failed error report.
Error
# the process is terminated when installing software with yum, and rpmdb open failed error is reported when performing yum clean all operation [root@localhost ~] # yum clean allError: rpmdb open failed
Solution method
[root@localhost] # cd / var/lib/rpm [root@localhost rpm] # lltotal 97412 Murray RW Murray. 1 root root 1839104 Jul 11 06:45 Basenames-rw-r--r--. 1 root root 8192 Jul 11 06:41 Conflictname-rw-r--r--. 1 root root 270336 Jul 11 06:48 _ _ db.001-rw-r--r--. 1 root root 81920 Jul 11 06:48 _ _ db.002-rw-r--r--. 1 root root 1318912 Jul 11 06:48 _ _ db.003-rw-r--r--. 1 root root 606208 Jul 11 06:45 Dirnames-rw-r--r--. 1 root root 16384 Jul 11 06:45 Group-rw-r--r--. 1 root root 12288 Jul 11 06:45 Installtid-rw-r--r--. 1 root root 28672 Jul 11 06:45 Name-rw-r--r--. 1 root root 16384 Jul 11 06:41 Obsoletename-rw-r--r--. 1 root root 93446144 Jul 11 06:45 Packages-rw-r--r--. 1 root root 1957888 Jul 11 06:45 Providename-rw-r--r--. 1 root root 180224 Jul 11 06:45 Requirename-rw-r--r--. 1 root root 49152 Jul 11 06:45 Sha1header-rw-r--r--. 1 root root 32768 Jul 11 06:45 Sigmd5-rw-r--r--. 1 root root 8192 Jul 11 06:41 Triggername [root@localhost rpm] # rm-rf _ _ db.* # erase the original rpmdb file [root@localhost rpm] # rpm-rebuilddb # rebuild rpm database [root@localhost rpm] # yum clean all # clear all yum caches
If the above methods do not solve the problem, follow the following methods to continue:
# check the yum source configuration file [root@localhost rpm] # cd / etc/yum.repos.d/ [root@localhost yum.repos.d] # lltotal 40 Murray RW Murray. 1 root root 1664 Nov 23 2018 CentOS-Base.repo-rw-r--r--. 1 root root 1309 Nov 23 2018 CentOS-CR.repo-rw-r--r--. 1 root root 649 Nov 23 2018 CentOS-Debuginfo.repo-rw-r--r--. 1 root root 314 Nov 23 2018 CentOS-fasttrack.repo-rw-r--r--. 1 root root 630 Nov 23 2018 CentOS-Media.repo-rw-r--r--. 1 root root 1331 Nov 23 2018 CentOS-Sources.repo-rw-r--r--. 1 root root 5701 Nov 23 2018 CentOS-Vault.repo-rw-r--r--. 1 root root 951 Oct 2 2017 epel.repo-rw-r--r--. 1 root root 1050 Oct 2 2017 epel-testing.repo# Update yum Source [root@localhost yum.repos.d] # yum update-y-- skip-broken# clears all yum caches [root@localhost yum.repos.d] # yum clean allLoaded plugins: fastestmirrorCleaning repos: base epel extras updatesCleaning up list of fastest mirrors# rebuild yum cache [root@localhost yum.repos.d] # yum makecacheLoaded plugins: fastestmirrorDetermining fastest mirrorsepel/x86_64/metalink | | 7.1 kB 00:00:00 * base: mirrors.cn99.com * epel: mirror01.idc.hinet.net * extras: mirrors.cn99.com * updates: mirrors.cn99.combase | 3.6 kB 00:00:00 epel | | | 5.3 kB 00:00:00 extras | 3.4 kB 00:00:00 updates | | | 3.4 kB 00:00:00 (1amp 19): base/7/x86_64/group_gz | 166kB 00:00:00 (2max 19): epel/x86_64/group_gz | 88 kB 00:00:01 | (3 MB 19): base/7/x86_64/other_db | 2.6 MB 00:00:09 (4 pm 19): base/7/x86_64/filelists_db | 7.1 MB 00:00:48 (5 go 19): base/7/x86_64/primary_ Db | 6 MB 00:00:48 (6 MB 19): epel/x86_64/filelists_db | 11 MB 00:01:03 (7 ram 19): epel/x86_64/updateinfo | | 991 kB 00:00:03 (8Compact 19): epel/x86_64/prestodelta | 746B 00:00:00 (9Compact 19): epel/x86_64/primary_db | 6.7 MB 00:00:14 (10Compare 19): epel/x86_64 | / other_db | 3.2 MB 00:00:03 (11 kB 19): extras/7/x86_64/prestodelta | 65 kB 00:00:00 (12 ram 19): extras/7/x86_64/filelists_db | | 246 kB 00:00:01 (13 kB 19): extras/7/x86_64/primary_db | 205 kB 00:00:01 (14 MB 19): epel/x86_64/updateinfo_zck | 1.4 MB 00:00:01 (15 Compact 19): updates | / 7/x86_64/other_db | 659 kB 00:00:04 (16 pep 19): updates/7/x86_64/prestodelta | 829 kB 00:00:06 (17 Unip 19): updates/7/x86_64/filelists_db | | 4.6 MB 00:00:10 extras/7/x86_64/other_db FAILED | 48 MB 00:00:30 ETA http://mirrors.njupt.edu.cn/centos/7.6.1810/extras/x86_64/repodata/1ec00fbe7ea9747f9fe6a967fd09fd6cc270834316dfb69d7a80097b4b9a0cd4-other.sqlite.bz2: [Errno 14] HTTP Error 302-FoundTrying other mirror. (18 to 19): extras/7 | / x86_64/other_db | 00:00:01 (19 kB): updates/7/x86_64/primary_db | 6.5 MB 00:00:38 Metadata Cache Created
test
[root@localhost yum.repos.d] # yum install-y wgetLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfile * base: mirrors.cn99.com * epel: mirror01.idc.hinet.net * extras: mirrors.cn99.com * updates: mirrors.cn99.comResolving Dependencies-- > Running transaction check--- > Package wget.x86_64 0vis1.14-18.el7_6.1 will be installed-- > Finished Dependency ResolutionDependencies Resolved= Package Arch Version Repository Size=Installing: wget x86 kInstalled size 64 1.14-18.el7_6.1 updates 547 kTransaction Summary=Install 1 PackageTotal download size: 547 kInstalled size: 2.0 MDownloading packages:wget-1.14-18.el7_6.1.x86_64.rpm | | 547 kB 00:00:09 Running transaction checkRunning transaction testTransaction test succeededRunning transaction Installing: wget-1.14-18.el7_6.1.x86_64 1 Verifying: wget-1.14-18.el7_6.1.x86_64 1 Verifying 1 | Installed: wget.x86_64 0rpmdb open failed 1.14-18.el7_6.1 complet # has successfully solved the Error: how to solve the yum clean all Error rpmdb open failed problem above rpmdb open failed The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.