【Redhat7.0】yummakecache报错的解决⽅法(巨坑)mv /pos.po /pos.po.backup
1
然后下载对应版本repo⽂件, 放⼊/pos.d/
我下载的是CentOS7
运⾏以下命令⽣成缓存
曹颖近况yum clean all
yum makecache曾小贤的笑声
但是执⾏yum makecache时出现上述错误。
然后在⽹上搜了⼀通。试了n个解决⽅法,都没有⼀个对应的。
好⼏个⼩时,终于改好了。
就是把下载的CentOS7对应的repo⽂件中的$releasever全部改成对应版本7,并且把不存在的⽹址的⼦路径删去即可。
一剪梅歌曲修改后如下:
# po
#
猎毒人剧情# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-7 - Base - 163
#mirrorlist=/?release=$releasever&arch=$basearch&repo=os
baseurl=mirrors.163/centos/7/os/$basearch/
gpgcheck=1
gpgkey=mirrors.163/centos/RPM-GPG-KEY-CentOS-7
#released updates
[updates]
name=CentOS-7 - Updates - 163
#mirrorlist=/?release=$releasever&arch=$basearch&repo=updates
baseurl=mirrors.163/centos/7/updates/$basearch/
gpgcheck=1
gpgkey=mirrors.163/centos/RPM-GPG-KEY-CentOS-7
#additional packages that may be useful
[extras]
name=CentOS-7 - Extras - 163
#mirrorlist=/?release=$releasever&arch=$basearch&repo=extras
baseurl=mirrors.163/centos/7/extras/$basearch/
gpgcheck=1
gpgkey=mirrors.163/centos/RPM-GPG-KEY-CentOS-7韩国女星nana
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-7 - Plus - 163
baseurl=mirrors.163/centos/7/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=mirrors.163/centos/RPM-GPG-KEY-CentOS-7
暴风影音姜涛然后yum makecache⽣成缓存成功
真的是。。