Updating Plesk or system packages on CentOS 8 server fails: Failed to download metadata for repo: Cannot prepare internal mirrorlist: No URLs in mirrorlist

Follow

Comments

3 comments

  • Avatar
    Ignacio Ortiz de Zúñiga

    The temporary solution  does not work:

    Errors during downloading metadata for repository 'AppStream':
      - Status code: 404 for http://asi-fs-n.contabo.net/centos/8/AppStream/x86_64/os/repodata/repomd.xml (IP: 79.143.183.106)
    Error: Failed to download metadata for repo 'AppStream': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

    1
    Comment actions Permalink
  • Avatar
    Taras Ermoshin

    Hi @Ignacio Ortiz de Zúñiga!

    You still have some mirror "asi-fs-n.contabo.net" in the URL instead of "vault.centos.org".

    So, I recommend you to check that you have the below line in the file /etc/yum.repos.d/CentOS-Linux-AppStream.repo and don't have lines that start with "mirror" or "mirrorlist":

    baseurl=http://vault.centos.org/$contentdir/$releasever/AppStream/$basearch/os/
    0
    Comment actions Permalink
  • Avatar
    Pedro Telmo

    A few days ago, the mirror of Cent OS 8 was deactivated. For this reason, it may happen that you can no longer install packages because the package source is not found. In this case please change the source under /etc/yum.repos.d to another mirror. All available mirrors can be found at https://www.centos.org/download/mirrors/.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request