I get this Error when I run yum update on centos 8.
by luplanet from LinuxQuestions.org on (#6PPNK)
Any ideas on what could be the problem with this issue i encountered?
[root@MainServer yum.repos.d]# yum update -y
CentOS Stream 8 - AppStream 3.5 MB/s | 8.4 MB 00:02
CentOS Stream 8 - BaseOS 3.5 MB/s | 4.6 MB 00:01
CentOS Stream 8 - Extras 53 kB/s | 18 kB 00:00
CentOS Stream 8 - Extras common packages 25 kB/s | 8.0 kB 00:00
CentOS Stream 8 - Media - BaseOS 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository 'media-baseos':
- Curl error (37): Couldn't read a file:// file for file:///media/CentOS/BaseOS/repodata/repomd.xml [Couldn't open file /media/CentOS/BaseOS/repodata/repomd.xml]
- Curl error (37): Couldn't read a file:// file for file:///media/cdrom/BaseOS/repodata/repomd.xml [Couldn't open file /media/cdrom/BaseOS/repodata/repomd.xml]
- Curl error (37): Couldn't read a file:// file for file:///media/CentOS/BaseOS/repodata/repomd.xml/repodata/repomd.xml [Couldn't open file /media/CentOS/BaseOS/repodata/repomd.xml/repodata/repomd.xml]
- Curl error (37): Couldn't read a file:// file for file:///media/cdrecorder/BaseOS/repodata/repomd.xml [Couldn't open file /media/cdrecorder/BaseOS/repodata/repomd.xml]
Error: Failed to download metadata for repo 'media-baseos': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
[root@MainServer yum.repos.d]# yum update -y
CentOS Stream 8 - AppStream 3.5 MB/s | 8.4 MB 00:02
CentOS Stream 8 - BaseOS 3.5 MB/s | 4.6 MB 00:01
CentOS Stream 8 - Extras 53 kB/s | 18 kB 00:00
CentOS Stream 8 - Extras common packages 25 kB/s | 8.0 kB 00:00
CentOS Stream 8 - Media - BaseOS 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository 'media-baseos':
- Curl error (37): Couldn't read a file:// file for file:///media/CentOS/BaseOS/repodata/repomd.xml [Couldn't open file /media/CentOS/BaseOS/repodata/repomd.xml]
- Curl error (37): Couldn't read a file:// file for file:///media/cdrom/BaseOS/repodata/repomd.xml [Couldn't open file /media/cdrom/BaseOS/repodata/repomd.xml]
- Curl error (37): Couldn't read a file:// file for file:///media/CentOS/BaseOS/repodata/repomd.xml/repodata/repomd.xml [Couldn't open file /media/CentOS/BaseOS/repodata/repomd.xml/repodata/repomd.xml]
- Curl error (37): Couldn't read a file:// file for file:///media/cdrecorder/BaseOS/repodata/repomd.xml [Couldn't open file /media/cdrecorder/BaseOS/repodata/repomd.xml]
Error: Failed to download metadata for repo 'media-baseos': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried