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
- Connect to your Plesk server via SSH.
-
Locate the repository file using the repository URL from the error message (
repo.example.comin this example):# grep -irl repo.example.com /etc/yum.repos.d/
/etc/yum.repos.d/example-extras.repo -
Open this file in a text editor. In this example, vi editor is used:
# vi /etc/yum.repos.d/example-extras.repo
-
Find all
enabledlines and change the value from 1 to 0:CONFIG_TEXT: enabled=0
- Save the changes and close the file.
-
Update system packages:
# yum update
-
Update Plesk:
# plesk installer update
- Connect to your Plesk server via SSH.
-
Locate the repository file using the repository URL from the error message (
repo.example.comin this example):# grep -irl repo.example.com /etc/apt/sources.list /etc/apt/sources.list.d
- 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
*.repoto*.repo.bak:# mv /etc/apt/sources.list.d/customrepo.list /etc/apt/sources.list.d/customrepo.list.bak
-
-
Update system packages:
# apt-get update
-
Update Plesk:
# plesk installer update
Comments
Please sign in to leave a comment.