1.如出現如下錯誤
修改yum文件
vim /usr/bin/yum
python修改為2版本
2.arm64重裝yum
卸載後安裝
rpm -qa|grep yum|xargs rpm -e --nodeps
下載軟件包
http://mirror.centos.org/altarch/7/os/aarch64/Packages/
wget http://mirror.centos.org/altarch/7/os/aarch64/Packages/yum-3.4.3-168.el7.centos.noarch.rpm
wget http://mirror.centos.org/altarch/7/os/aarch64/Packages/yum-langpacks-0.4.2-7.el7.noarch.rpm
wget http://mirror.centos.org/altarch/7/os/aarch64/Packages/yum-metadata-parser-1.1.4-10.el7.aarch64.rpm
wegt http://mirror.centos.org/altarch/7/os/aarch64/Packages/yum-plugin-fastestmirror-1.1.31-54.el7_8.noarch.rpm
安裝
rpm -ivh --force --nodeps *.rpm
查詢
rpm -qa|grep yum