pve创建centos8-stream的CT模板
开启SSH 22端口
https://blog.csdn.net/m0_67391121/article/details/123970482
linux修改系统语言为中文
https://blog.csdn.net/weixin_46335835/article/details/118758776
linux调时区北京
报错
Errors during downloading metadata for repository ‘appstream’
在centos7中可以正常且直接进行yum install操作,但是centos8不行,所以第一步要修改yum,不然的话会报错:
Errors during downloading metadata for repository 'appstream'
- 进入仓库源文件夹下
cd /etc/yum.repos.d/
- 修改镜像配置内容-阿里云
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
- 清空原有缓存,并重新生成
yum clean all && yum makecache
- 更新软件包
yum update -y
ps 如果以上4个步骤不行的话,就按照一下进行
- 进入配置目录
cd /etc/yum.repos.d/
- 下载使用阿里云源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo
然后随便用yum install试一试应该就可以了(我这里可以了)从下图可以看出使用的是阿里云的源了

1930

被折叠的 条评论
为什么被折叠?



