我正在尝试从一个RHEL-8安装DVD安装在一个服务器上没有连接到互联网的附加软件包。我在/mnt/cdrom上安装了DVD ISO。我的/etc/yum.repos.d/baseos.repo文件中有以下内容:
[baseos]
name=BaseOs_Repository
baseurl=file:///mnt/cdrom/BaseOs
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release当我试图安装一个软件包时,我会得到以下错误:
Errors during downloading metadata for repository 'baseos':
- Curl error (37): Couldn't read a file:// file for file:///mnt/cdrom/BaseOs/repodata/repomd.xml [Couldn't open file /mnt/cdrom/BaseOs/repodata/repomd.xml]
Error: Failed to download metadata for repo 'baseos': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried该文件存在并具有正确的权限:
[root@ngsv8 repodata]# ls -lh /mnt/cdrom/BaseOS/repodata/
total 3.1M
-r--r--r--. 1 root root 75K Oct 13 2021 059387f37531102607f15430a20c0a02737d3917295288657c3dc2bf3b4d3388-comps-BaseOS.x86_64.xml.gz
-r--r--r--. 1 root root 1.3M Oct 13 2021 605f660b7c02389f9dc05b018bed8a414cc6f354eb0748aa55efc31c9e4c2298-filelists.xml.gz
-r--r--r--. 1 root root 1.1M Oct 13 2021 650308603c7c00e2f2265686d472750875
51b6326e7a1077d93f3f317e0e8cce-primary.xml.gz
-r--r--r--. 1 root root 444K Oct 13 2021 67ea1c69bf2d3ff30e0aa59fd2ccd7890decdf1f4fb6acb305f9e027551fd00f-other.xml.gz
-r--r--r--. 1 root root 301K Oct 13 2021 7a3932d707bf3b84d0cccbe2a5382ad04613ef4e2308a95aef2c16e999702119-comps-BaseOS.x86_64.xml
-r--r--r--. 1 root root 1.6K Oct 13 2021 ee6f2ed466e70c8ee4dd48d8aa3897707349e31e3f546a82e121cc53cc82d8a8-productid.gz
-r--r--r--. 1 root root 2.2K Oct 13 2021 productid
-r--r--r--. 1 root root 2.8K Oct 13 2021 repomd.xml
-r--r--r--. 1 root root 2.2K Oct 13 2021 TRANS.TBL对于安装DVD的AppStream/子目录,我有一个类似的D6文件,而且它似乎可以工作,因为它不吐任何错误消息。我尝试将appstream.repo复制到baseos.repo,并将所有引用从appstream更改为baseos,以防我有一个没有看到的错误。
发布于 2022-04-21 15:56:41
你有一个错误- BaseOs vs BaseOS.修复您的回购文件,以匹配DVD文件系统。
以下是您的错误消息:
Couldn't open file /mnt/cdrom/BaseOs/repodata/repomd.xml下面是ls命令:
ls -lh /mnt/cdrom/BaseOS/repodata/https://unix.stackexchange.com/questions/699883
复制相似问题