Articles in this section

Plesk / system update fails due to custom repository

Plesk for Linux kb: technical

Applicable to:

  • Plesk for Linux

Symptoms

Plesk or system update fails with one of the errors below:

CONFIG_TEXT: Download sw-nginx-1.30.4.1-2.redhat.9+p18.0.80.6+t260901.1328.x86_64.rpm MIRROR FAILED - try next one: Status code: 403 for https:// repo.example.com/redhat/9/plesk/x86_64/RPMS/sw-nginx-1.30.4.1-2....rpm
...
dnf.exceptions.DownloadError: sw-nginx-1.30.4.1-2.redhat.9+p18.0.80.6+t260901.1328.x86_64: Cannot download, all mirrors were already tried without success

CONFIG_TEXT: E: Failed to fetch http://repo.example.com/php/ubuntu/dists/disco/main/binary-i386/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

CONFIG_TEXT: W: Failed to fetch https://repo.example.com/dists/ubuntu-trusty/main/binary-i386/Packages HttpError404

CONFIG_TEXT: E: The repository 'https://repo.example.com/node_18.x focal Release' no longer has a Release file.
E: The repository 'https://repo.example.com/dists/ubuntu focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.

Cause

The custom repository, mentioned in the error message, is unreachable / broken / or not configured.

Resolution

AlmaLinux / CloudLinux / RHEL
  1. Connect to your Plesk server via SSH.
  2. Locate the repository file using the repository URL from the error message (repo.example.com in this example):

    # grep -irl repo.example.com /etc/yum.repos.d/

    /etc/yum.repos.d/example-extras.repo

  3. Open this file in a text editor. In this example, vi editor is used:

    # vi /etc/yum.repos.d/example-extras.repo

  4. Find all enabled lines and change the value from 1 to 0:

    CONFIG_TEXT: enabled=0

  5. Save the changes and close the file.
  6. Update system packages:

    # yum update

  7. Update Plesk:

    # plesk installer update

Debian / Ubuntu
  1. Connect to your Plesk server via SSH.
  2. Locate the repository file using the repository URL from the error message (repo.example.com in this example):

    # grep -irl repo.example.com /etc/apt/sources.list /etc/apt/sources.list.d

  3. Disable the affected repository:
    • if a 3rd-party repository is configured in the main conf file /etc/apt/sources.list, open this file in a text editor (for example, vi editor) and put a hash # symbol at the beginning of the line with a 3rd-party repository:

      #deb http://repo.example.com/php/ubuntu/dists/disco/main/binary-i386/Packages

    • if a 3rd-party repository is configured in a separate repo file, rename the repo file from *.repo to *.repo.bak:

      # mv /etc/apt/sources.list.d/customrepo.list /etc/apt/sources.list.d/customrepo.list.bak

  4. Update system packages:

    # apt-get update

  5. Update Plesk:

    # plesk installer update

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.