centos8已经无法安装软件升级过程如下:
- cd /etc/yum.repos.d
- vi CentOS-Linux-BaseOS.repo
- vi CentOS-Linux-AppStream.repo
- [baseos]
- name=CentOS Linux $releasever - BaseOS
- #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=BaseOS&infra=$infra
- #baseurl=http://mirror.centos.org/$contentdir/$releasever/BaseOS/$basearch/os/
- baseurl=https://vault.centos.org/centos/$releasever/BaseOS/$basearch/os/
- gpgcheck=1
- enabled=1
- gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
- [appstream]
- name=CentOS Linux $releasever - AppStream
- #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=AppStream&infra=$infra
- #baseurl=http://mirror.centos.org/$contentdir/$releasever/AppStream/$basearch/os/
- baseurl=https://vault.centos.org/centos/$releasever/AppStream/$basearch/os/
- gpgcheck=1
- enabled=1
- gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
- dnf update
- dnf --disablerepo '*' --enablerepo extras swap centos-linux-repos centos-stream-repos
- dnf distro-sync
- #注意事项目:
- #以上会反复出现RPM: error: db5 error(-30969)
- #可以任意安装软件进行测试
- cd /var/lib/rpm
- rm __db*
- rpm --rebuilddb
- dnf update
- #rootfs系统需要强制删除filesystem
- #先查询
- rpm -qa|grep filesystem
- #在删除
- rpm -e --nodeps filesystem-具体版本号
评论
发表评论