Upgrading Ubuntu 18.04 to 22.04

There is an issue when Updating Ubuntu 18:04 to 22:04

You need to uninstall “pure ftp” before updating

Run
apt remove pure-ftp

The prepare scripts will re-install it again. You should run the correct prepare script after the upgrade to install and fix any outstanding software updates.

PureFTP issues

Run the following command before upgrading to 20.04.

apt remove pure-ftpd

Then once you are upgraded to 22.04, the Installation prepare scripts should re-install it.

This upgrade will fail with some pure-ftpd related errors and not ask to reboot.
If this was not removed. Run the above command and then
apt upgrade -f
This will Forcibly re-run all the failed install scripts.

apt-get ESM errors

if you are getting 401 [Unauthorized address x.x.x.x] messages when trying to do the Updates, you will need to move the ESM source files

mv /etc/apt/sources.list.d/ubuntu-esm-infra.list* /root/

DNS not working

DNS issue

Putty

Make sure that you have at least version 0.78 of putty, since the SSH upgrade can break your access and you will not be able to reconnect directly.

After Upgrade Webinterface issues

Run the 1-prepare-X script for the proper type of server int he folder:
/root/MyUpdates/install

If after upgrading to 22:04 and you cannot access Webadmin2 and supervisor

Run the below command to check if the issue is with the certificates

openssl s_client -connect 127.0.0.1:443 -tls1_2

If you get the above error

Upgrade all the Amethyst2 softwares,Start with Amtwebadmin2 then install new certificates here
/opt/amethyt/etc/make_certificates