Symptoms
Updating system packages via Plesk UI with the Tools & Settings > System Updates tool fails with the following error:
Error: Unable to get packages list: 2022-08-11 17:14:10 INFO: pum is called with arguments: ['--list', '--repo-info', '--json'] 2022-08-11 17:14:13 ERROR: E:The repository 'http://autoinstall.plesk.com/RUBY_0.0.2 jammy Release' does not have a Release file.
Cause
The repository has not been updated to support the current Ubuntu/Debian distribution.
Resolution
Update the repository format to include the release name or version of the OS distribution:
- Log in to Plesk via SSH.
- Find the current OS release:
# lsb_release -sc
focal - Find the file with the affected repository:
# grep -r RUBY /etc/apt/sources.list.d/* /etc/apt/sources.list
/etc/apt/sources.list.d/example.list http://autoinstall.plesk.com/RUBY_0.0.2 ... - Correct the repository using one of the Linux editors, for example, vi, in accordance with the following external resource: https://help.ubuntu.com/community/Repositories/CommandLine. (Adding Repositories section).
As a workaround
If the repository from the error message is no longer required, remove it from the repository configuration by deleting the following line from the /etc/apt/sources.list
file or /etc/apt/sources.list.d/*
files found earlier on step 3:
http://autoinstall.plesk.com/RUBY_0.0.2