@paulraper run this over ssh and provide me the output:
Code:grep -rHE '^\s*(deb|deb-src|URIs:)' /etc/apt/sources.list /etc/apt/sources.list.d/ | grep -i mariadb
/etc/apt/sources.list point to MariaDB repositories that do not exist any more (mirror.mva-n.net 10.4 returns 404, and sfo1.mirrors.digitalocean.com 10.6 does not resolve). These lines stop apt-get update, and this is why the upgrade tool stops. Your database is not the cause, so please do not delete it.cp /etc/apt/sources.list /root/sources.list.backup && sed -i -E '/mirror\.mva-n\.net\/mariadb|sfo1\.mirrors\.digitalocean\.com\/mariadb/ s/^/# /' /etc/apt/sources.list
apt-get update
curl -sI https://archive.mariadb.org/mariadb-10.11/repo/ubuntu/dists/focal/Release | head -n 1
archive.mariadb.org lines in /etc/apt/sources.list.d/mariadb.list may also be a problem. Please do not change them yet. I will tell you what to do after I see the output of step 2 and step 3.The Image file contains the result of step 2. and the result of step 3 is: HTTP/2 301Thank you, this output shows the problem. Two lines in/etc/apt/sources.listpoint to MariaDB repositories that do not exist any more (mirror.mva-n.net10.4 returns 404, andsfo1.mirrors.digitalocean.com10.6 does not resolve). These lines stopapt-get update, and this is why the upgrade tool stops. Your database is not the cause, so please do not delete it.
Step 1. Run this one command as root. It makes a backup of the file and puts a # at the start of the two bad lines:
Code:cp /etc/apt/sources.list /root/sources.list.backup && sed -i -E '/mirror\.mva-n\.net\/mariadb|sfo1\.mirrors\.digitalocean\.com\/mariadb/ s/^/# /' /etc/apt/sources.list
Step 2. Run this command and send me the full output:
Code:apt-get update
Step 3. Run this command and send me the output (it only reads, it changes nothing):
Code:curl -sI https://archive.mariadb.org/mariadb-10.11/repo/ubuntu/dists/focal/Release | head -n 1
The twoarchive.mariadb.orglines in/etc/apt/sources.list.d/mariadb.listmay also be a problem. Please do not change them yet. I will tell you what to do after I see the output of step 2 and step 3.
/etc/apt/sources.list are fixed, and their errors are gone from your apt-get update output. One error is left. The repository archive.mariadb.org/mariadb-10.11 has no files for Ubuntu 20.04 (focal) any more. The HTTP/2 301 from step 3 is a redirect to a page that does not exist. The repository for the exact release 10.11.5 still has focal, so we change the two lines to this release.mariadb --version
10.11.5, go to step 5. If it says a different version, do not continue. Send me the answer and I will give you the matching command.archive.mariadb.org lines, and runs apt-get update:cp /etc/apt/sources.list.d/mariadb.list /root/mariadb.list.backup && sed -i 's#archive.mariadb.org/mariadb-10.11/#archive.mariadb.org/mariadb-10.11.5/#' /etc/apt/sources.list.d/mariadb.list && apt-get update
E:. If there is none, you can start the upgrade tool again, and send me the new log if it stops again.Looks extremely positive.Step 1 worked: the two bad lines in/etc/apt/sources.listare fixed, and their errors are gone from yourapt-get updateoutput. One error is left. The repositoryarchive.mariadb.org/mariadb-10.11has no files for Ubuntu 20.04 (focal) any more. TheHTTP/2 301from step 3 is a redirect to a page that does not exist. The repository for the exact release 10.11.5 still has focal, so we change the two lines to this release.
Step 4. Check the installed MariaDB version:
Code:mariadb --version
If the answer says10.11.5, go to step 5. If it says a different version, do not continue. Send me the answer and I will give you the matching command.
Step 5. This command makes a backup of the file, changes only thearchive.mariadb.orglines, and runsapt-get update:
Code:cp /etc/apt/sources.list.d/mariadb.list /root/mariadb.list.backup && sed -i 's#archive.mariadb.org/mariadb-10.11/#archive.mariadb.org/mariadb-10.11.5/#' /etc/apt/sources.list.d/mariadb.list && apt-get update
Step 6. Send me the full output of step 5. There must be no line that starts withE:. If there is none, you can start the upgrade tool again, and send me the new log if it stops again.
apt-get update now finishes with no E: line, and the packages of the 10.11.5 repository for focal are found. The repository problem is fixed.lxd-client : Depends: lxd (>= 1:0.10) but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages
lxd-client is installed, but the package it needs, lxd, is not. Apt does not continue while a package is in this state. Before we change anything, please run these two commands. They only read and simulate, they change nothing. Send me the full output of both.dpkg -l | grep -i lxd
apt-get -s -f install
Outputs attached.the new upgrade (20 to 22) found a different problem. It stops at the step "upgrade packages" with this message:
Code:lxd-client : Depends: lxd (>= 1:0.10) but it is not installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages
The packagelxd-clientis installed, but the package it needs,lxd, is not. Apt does not continue while a package is in this state. Before we change anything, please run these two commands. They only read and simulate, they change nothing. Send me the full output of both.
Step 1.
Code:dpkg -l | grep -i lxd
Step 2.
Code:apt-get -s -f install
The second command only shows what apt would do. I will tell you the next step after I see the output.
The first two tries of the tool in your log stopped because the Plesk installer was busy ("Update operation was locked by another update process"). This is normal after a reboot. When you start the tool again, wait a few minutes first so that no Plesk update is running.
ic). A small transition package, lxd-client, was left half installed (status iU) and it needs the package lxd. The fix that apt shows in step 2 installs a new lxd package. On Ubuntu 20.04 this package moves LXD to a snap, and a Plesk server does not need that. The simpler way is to remove the transition package lxd-client.apt-get -s remove lxd-client
lxd-client under "The following packages will be REMOVED". If it shows more packages, do not continue, and send me the output.lxd-client, run this command:apt-get remove -y lxd-client
E::apt-get -s upgrade
ubuntu20to22 again.I use my server for three packages:The old LXD program from Ubuntu 18.04 was removed in the past (statusic). A small transition package,lxd-client, was left half installed (statusiU) and it needs the packagelxd. The fix that apt shows in step 2 installs a newlxdpackage. On Ubuntu 20.04 this package moves LXD to a snap, and a Plesk server does not need that. The simpler way is to remove the transition packagelxd-client.
First, one question: do you use LXD containers on this server? If you do, do not continue, and tell me. If you do not know, the answer is probably no, because LXD was already removed.
Step 1. Simulate the removal. It changes nothing. Send me the full output:
Code:apt-get -s remove lxd-client
The output must show onlylxd-clientunder "The following packages will be REMOVED". If it shows more packages, do not continue, and send me the output.
Step 2. Only when step 1 shows onlylxd-client, run this command:
Code:apt-get remove -y lxd-client
Step 3. Check that apt is healthy again. The output must show no line that starts withE::
Code:apt-get -s upgrade
Send me the output of step 2 and step 3. After that you can start the upgrade toolubuntu20to22again.
Okay, So I could find nothing that suggests that any of those packages are dependent on LXD being installed.I use my server for three packages:
Moodle
Mahara
Next Cloud
To a much smaller extent, LimeSurvey
Steps (2) & (3) attached.The old LXD program from Ubuntu 18.04 was removed in the past (statusic). A small transition package,lxd-client, was left half installed (statusiU) and it needs the packagelxd. The fix that apt shows in step 2 installs a newlxdpackage. On Ubuntu 20.04 this package moves LXD to a snap, and a Plesk server does not need that. The simpler way is to remove the transition packagelxd-client.
First, one question: do you use LXD containers on this server? If you do, do not continue, and tell me. If you do not know, the answer is probably no, because LXD was already removed.
Step 1. Simulate the removal. It changes nothing. Send me the full output:
Code:apt-get -s remove lxd-client
The output must show onlylxd-clientunder "The following packages will be REMOVED". If it shows more packages, do not continue, and send me the output.
Step 2. Only when step 1 shows onlylxd-client, run this command:
Code:apt-get remove -y lxd-client
Step 3. Check that apt is healthy again. The output must show no line that starts withE::
Code:apt-get -s upgrade
Send me the output of step 2 and step 3. After that you can start the upgrade toolubuntu20to22again.
lxd-client.apt-get -s upgrade shows no E: line any more and no half installed package. Apt is healthy again.plesk.list.ai_back is only a note. Apt ignores that file, and you can ignore the note.ubuntu20to22 again.Are we able to upgarde to Ubuntu 24.04.xYour three outputs are correct:
Moodle, Mahara, Nextcloud and LimeSurvey do not need LXD, so the removal is safe. The line about
- The simulation removed only
lxd-client.- The real removal worked.
apt-get -s upgradeshows noE:line any more and no half installed package. Apt is healthy again.plesk.list.ai_backis only a note. Apt ignores that file, and you can ignore the note.
You can now start the upgrade toolubuntu20to22again.
Okay, seems to be stable.Verify that all still works with Ubuntu 22, if it does you can proceed with next upgrade.
With Plesk installer stopped, the message still appears as follows:Okay, seems to be stable.
In the course of going from 22 to 24, I received the following message.