修改本地iso镜像为yum源后,安装rpm包报错:
TypeError:rpmdb open failed
解决方案:
mkdir /var/lib/rpm/db_bak
mv /var/lib/rpm/__db* /var/lib/rpm/db_bak
rpm --rebuilddb
yum clean all
重新安装rpm包,问题解决
2023-10-19 17:57:58
修改本地iso镜像为yum源后,安装rpm包报错:
TypeError:rpmdb open failed
解决方案:
mkdir /var/lib/rpm/db_bak
mv /var/lib/rpm/__db* /var/lib/rpm/db_bak
rpm --rebuilddb
yum clean all
重新安装rpm包,问题解决