zoukankan      html  css  js  c++  java
  • rpmdb损坏故障

    问题:#yum install -y zip
    error: db3 error(22) from dbenv->open: Invalid argument
    error: cannot open Packages index using db3 - Invalid argument (22)
    error: cannot open Packages database in /var/lib/rpm
    CRITICAL:yum.main:

    Error: rpmdb open failed

    解决办法:

    [root@cjj yum]# cd /var/lib/rpm/
    [root@cjj rpm]# ls
    Basenames     Dirnames     Installtid    Packages        Pubkeys         Sha1header
    Conflictname  Filedigests  Name          Providename     Requirename     Sigmd5
    __db.001      Group        Obsoletename  Provideversion  Requireversion  Triggername
    [root@cjj rpm]# rm -f __db.001 
    [root@cjj rpm]# rpm --rebuilddb
    [root@cjj rpm]# yum clean all
    Loaded plugins: fastestmirror
    Cleaning repos: base extras updates zabbix zabbix-non-supported
    Cleaning up Everything
    Cleaning up list of fastest mirrors
    [root@cjj rpm]# yum update
    

    修复完毕~~~

  • 相关阅读:
    http
    jquery
    wsgi
    urls控制器
    模板template
    ORM
    C++中获取汉字拼音首字缩写/全拼及生僻字的处理
    C语言函数strstr
    CString 成员函数用法
    判断字符串中是否存在中文
  • 原文地址:https://www.cnblogs.com/xfbc/p/5407747.html
Copyright © 2011-2022 走看看