Articles in this section

Error while accessing System Updates: Unable to get packages list

kb: technical Plesk

Symptoms

  • An error is shown while accessing Tools & Settings > System Updates:

    Error: Unable to get packages list: INFO: pum is called with arguments: ['--list', '--repo-info', '--json'] ERROR: ERROR: Exited with returncode 1.

  • After clicking Recheck Now button in Tools & Settings > Update Settings an error is received:

    Error: Unable to receive update information for the package(s)

  • Checking packages with the Plesk CLI utility pum a similar error is received:

    # plesk sbin pum --check
    INFO: pum is called with arguments: ['--check']
    ERROR:
    ERROR: Exited with returncode 1.
    exit status 1

  • The following messages can be found in the/var/log/plesk/install/autoinstaller3.logfile:

    Reading package lists...
    W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:61 and /etc/apt/sources.list.d/tortix-common.list:1
    W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:61 and /etc/apt/sources.list.d/tortix-common.list:1
    W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:61 and /etc/apt/sources.list.d/tortix-common.list:1
    W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:61 and /etc/apt/sources.list.d/tortix-common.list:1
    W: Failed to fetch https://repo.cloudradar.io/dists/all/InRelease Could not resolve 'repo.cloudradar.io'

Cause

Misconfiguration of repositories on the server with duplicated or unresolvable sources are set.

If the issue reoccurs, link tickets to PPPM-14049. We need to estimate the demand for better error reporting. ID is not to be reported to the customers.

Resolution

  1. Connect to the server via SSH
  2. Comment the lines with duplicate and/or discontinued repositories based on the error messages by prepending the #.

     

    2.1.  For example the error on this case refers to "cloudradar" so a search for this can be performed:

    # grep -iR "cloudradar" /etc/apt/
    /etc/apt/sources.list.d/cloudradar.list: deb https://repo.cloudradar.io all utils

    2.2.  Edit the repository file from the above search results to add a preceding "#" on the failing line as on this example:

    # cat /etc/apt/sources.list.d/cloudradar.list
    #deb https://repo.cloudradar.io all utils

  3. Update the package sources with the following command:

    # apt update

Was this article helpful?

Comments

3 comments
Date Votes
  • I'm getting this error.  What file are we supposed to edit in Resoluton item #2?! Is a step missing here?

    4
  • It doesn't specify which file to edit in the solution.

    0
  • Please add the file location and name that we need to edit!!

    0

Please sign in to leave a comment.