1、配置IPV6
在虚拟机里,依次选择:
- 编辑
- 虚拟网络编辑器
- 更改设置
- 选中列表第三项
- NAT设置
- 启用IPV6
- 选中,保存。
2、更新源
支持ipv6的比如清华源:
(1)、备份 CentOS-Base.repo
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
(2)、源写入/etc/yum.repos.d/CentOS-Base.repo
vim /etc/yum.repos.d/CentOS-Base.repo
将 CentOS-Base.repo 中的内容 更新为 下面的内容:
# CentOS-Base.repo
#
# 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