Errors during downloading metadata for repository 'cu-ceph-nautilus-production':

- Status code: 404 for http://12.24.9.2:888/production/CULinux/aarch64/cu-ceph-nautilus/repodata/repomd.xml (IP: 12.24.9.2)

Error: Failed to download metadata for repo 'cu-ceph-nautilus-production': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

创建本地软件仓库

在软软件包的目录下或者指定包路径createrepo 它会扫描当前目录下的所有 RPM 包,并生成一个名为 repodata 的目录,其中包含了软件包的元数据信息。这样,其他计算机就可以通过访问这个本地仓库来安装这些软件包

[root@0001 cu-utilus]# createrepo .
Directory walk started
Directory walk done - 149 packages
Temporary output repo path: ./.repodata/
Preparing sqlite DBs
Pool started (with 5 workers)
Pool finished
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.


清理yum缓存并重新生成缓存

yum clean all && rm -rf /var/cache/yum && yum makecache