Articles in this section

Can't upgrade Plesk on Debian or Ubuntu: Failed to fetch autoinstall.plesk.com ... 404 Not Found

Plesk for Linux kb: technical

Applicable to:

  • Plesk for Linux

Symptoms

  • Plesk is running on a Debian or Ubuntu based operating system

  • Errors like these appear during updates:

    E: Failed to fetch http://autoinstall.plesk.com/[...]example_package.deb 404 Not Found
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

    The repository 'http://my.archive.ubuntu.com/ubuntu focal Release' no longer has a Release file., W:Updating from such a repository can't be done securely, and is therefore disabled by default

    # plesk installer --select-release-current --upgrade-installed-components
    ...
    E: Version '17.8.11-ubuntu16.04.build1708180329.14' for 'pp17.8.11-bootstrapper' was not found
    E: Version '17.8.11-ubuntu16.04.build1708180322.11' for 'plesk-completion' was not found

Cause

The system repositories are misconfigured, so the system can't find the requested packages.

Resolution

Restore the default system repositories.

   
Debian & Ubuntu 22.04 and earlier
   
  1. Connect to the server over SSH.

  2. Back up the original sources list:

    # mv /etc/apt/sources.list{,.orig}

  3. Edit the sources list and replace its contents with the defaults below:

    # vi /etc/apt/sources.list

    Ubuntu 22.04

    deb http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse
    deb http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse
    deb http://archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
    deb http://archive.canonical.com/ubuntu/ jammy partner

    Ubuntu 20.04

    deb http://archive.ubuntu.com/ubuntu focal main restricted universe
    deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe
    deb http://security.ubuntu.com/ubuntu focal-security main restricted universe multiverse
    deb http://archive.canonical.com/ubuntu focal partner

    Ubuntu 18.04

    deb http://archive.ubuntu.com/ubuntu bionic main restricted universe
    deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe
    deb http://security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
    deb http://archive.canonical.com/ubuntu bionic partner

    Debian 12

    deb https://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
    deb https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
    deb https://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware

    Debian 11

    deb https://deb.debian.org/debian bullseye main
    deb https://deb.debian.org/debian-security/ bullseye-security main
    deb https://deb.debian.org/debian bullseye-updates main

    Debian 10

    deb http://archive.debian.org/debian buster main contrib non-free
    deb http://archive.debian.org/debian buster-updates main contrib non-free
    deb http://archive.debian.org/debian-security buster/updates main contrib non-free

   
   
Ubuntu 24.04
   
  1. Connect to the server over SSH.

  2. Back up the original sources list:

    # mv /etc/apt/sources.list.d/ubuntu.sources{,.orig}

  3. Edit the sources list and replace its contents with the defaults below:

    # vi /etc/apt/sources.list.d/ubuntu.sources

    Types: deb deb-src
    URIs: http://us.archive.ubuntu.com/ubuntu/
    Suites: noble noble-updates noble-backports noble-proposed
    Components: main restricted universe multiverse
    Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
    Types: deb deb-src
    URIs: http://security.ubuntu.com/ubuntu/
    Suites: noble-security
    Components: main restricted universe multiverse
    Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

   
Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.