linux 5.x系列的系统yum源出现如下错误
file:///mnt/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/mnt/repodata/repomd.xml'
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: dvd. Please verify its path and try again
一般都是baseurl后面的路径错误了
解决方法是在挂载的路径后面加上Server 比如挂载在 /mnt目录下(挂载命令是:mount /dev/cdrom /mnt),那baseurl 就写成:baseurl=file:///mnt/Server