linux中本地yum报错:file:///mnt/cdrom/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/cdrom/repodata/repomd.xml
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: local. Please verify its path and try again
- 先find /mnt/ -name repomd.xml看看是file:///mnt/cdrom/repodata/repomd.xml的路径一致,基本都是不一致的。
[root@ISMP-10 etc]# yum list
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
file:///mnt/cdrom/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/cdrom/repodata/repomd.xml
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: local. Please verify its path and try again
[root@ISMP-10 etc]<