Hyper-V下安装22.03LTS,刚装完系统,更新报错

安装完系统,输入 dnf -y update
报错
[root@localhost ~]# dnf -y update
Repository SP2_OS is listed more than once in the configuration
Repository SP2_everything is listed more than once in the configuration
Repository SP2_EPOL is listed more than once in the configuration
Repository SP2_debuginfo is listed more than once in the configuration
Repository SP2_source is listed more than once in the configuration
Repository SP2_update is listed more than once in the configuration
Repository SP2_update-source is listed more than once in the configuration
SP2_update 335 B/s | 3.5 kB 00:10
Errors during downloading metadata for repository ‘SP2_update’:

  • Downloading successful, but checksum doesn’t match. Calculated: d6cb69bd25374bee657bea0fff902844d2b3e2f0270a8ea47723a0d29fb4c409afa12214154da7acfc2dbd5c1c5825d2f00ee9ca962ae7eacd122e780da55cf4(sha512) d6cb69bd25374bee657bea0fff902844d2b3e2f0270a8ea47723a0d29fb4c409afa12214154da7acfc2dbd5c1c5825d2f00ee9ca962ae7eacd122e780da55cf4(sha512) Expected: 7bc226157c29578fef0c188b3ab55f59ced3e722690942f2c5128cd8d1b947eca179642543964ef16caf8c463956d8625ef82ad4506b19ea29f00d0844957844(sha512) 52e705eae455440eaf8071dbde6624aaa39e2e80c4550894ece3aeb1818df4dfeaf29218579fe9d9ee4351f60f4ec921c69aa7171beba842e4570f430b157279(sha512)
    Error: 为仓库 ‘SP2_update’ 下载元数据失败 : Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

贴一下/etc/yum.repos.d/下的文件内容

[root@localhost yum.repos.d]# ll
总用量 8
-rw-r–r–. 1 root root 2267 12月 10 17:26 openEuler-22.03-LTS-SP2.repo
-rw-r–r–. 1 root root 2735 12月 10 17:32 openEuler.repo
[root@localhost yum.repos.d]#

贴一下这俩文件的内容

找到问题原因了,将update源,由OpenEuler更换为huaweicloud源就可以了,可能是openEuler的update源现在有点儿问题。

官方的源网络不太好

和我一样的问题,可能官方网络或者update有问题