openeuler-无法dnf安装包问题
有个openEuler release 22.09系统机器,需要dnf安装些包等
[root@lydb ~]# more /etc/openEuler-release
openEuler release 22.09
[root@lydb ~]# dnf -y install lrzsz
OS 101 B/s | 146 B 00:01
Errors during downloading metadata for repository 'OS':
- Status code: 404 for http://repo.openeuler.org/openEuler-22.09/OS/x86_64/repodata/repomd.xml (IP: 49.0.230.196)
Error: Failed to download metadata for repo 'OS': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
测试网络是通的,在web浏览器中直接http://repo.openeuler.org/openEuler-22.09查看,发现确实不一样
单击openEuler-22.09.html 进入跳转到如下截图,看说明发现openEuler release 22.09已归档,停止更新了
处理办法:
sed -i 's/repo.openeuler.org/archives.openeuler.openatom.cn/' /etc/yum.repos.d/openEuler.repo