【功能模块】
华为云CentOS镜像源站,是我哪里设置不对?
【操作步骤&问题现象】
1、启动最新版本centos的容器
docker run -d centos sleep 100000000000
2、设置镜像源:
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.huaweicloud.com/repository/conf/CentOS-8-anon.repo
sed -i "s/#baseurl/baseurl/g" /etc/yum.repos.d/CentOS-AppStream.repo
sed -i "s/mirrorlist=http/#mirrorlist=http/g" /etc/yum.repos.d/CentOS-AppStream.repo
sed -i "s@http://mirror.centos.org@https://mirrors.huaweicloud.com@g" /etc/yum.repos.d/CentOS-AppStream.repo
yum clean all
yum makecache
3、安装包:
yum install -y openssh-server openssh-clients nfs-utils epel-release \perl-XML-Simple sudo rpm-build openssl-devel \ncurses-devel pam-devel libXmu-devel java-devel \javacc ant-junit ant-nodeps swing-layout /usr/include/db.h \/usr/include/Xm/Xm.h gcc /bin/csh tar
4、报错:
No match for argument: jemalloc-devel
All matches were filtered out by modular filtering for argument: javacc
All matches were filtered out by modular filtering for argument: ant-junit
No match for argument: ant-nodeps
No match for argument: swing-layout
Error: Unable to find a match: jemalloc-devel javacc ant-junit ant-nodeps swing-layout
【截图信息】
【日志信息】(可选,上传日志内容或者附件)