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

If you commented out the updatedb on the script and you cannot log in on supervisor and webadmin2, the libraries are the problem.
Use the below command to fix

find /usr/lib | grep libssl
/usr/lib/x86_64-linux-gnu/libssl.so.3
ln -s -f /usr/lib/x86_64-linux-gnu/libssl.so.3 libssl.so
ln -s -f /usr/lib/x86_64-linux-gnu/libcrypto.so.3 libcrypto.so

ldconfig

then restart supervisor and webadmin2

TCPDUMP not working or crashes every minute

Ubuntu upgrades to the tcpdump requires the parameter “-Z root” to allow the file name changes every minute and the location of the command has changed from /usr/sbin/tcpdump to /usr/bin/tcpdump.

So the command should now look like this:
/usr/bin/tcpdump -Z root -i $CAPTUREINT -B 8192 -n -s 0 -G 60 -w $CAPTUREPREFIX-'%Y%m%d_%H%M%S.pcap' '(not port 22) and (not port 21) and (not port 3389) and (not port 443) and (not port 80)'

Upgrade failing because the servers tries to get esm files

When these happens the server is enabled for Ubuntu pro,and its trying to upgrade ubuntu pro files

Go to /etc/apt/sources.list.d/ubuntu-esm-infra.list

and disable/# out all files in the location

If you are having issue where the uploaded recordings are slow because the ftp login and password is slow them use the following post

FTP login slow but upload fast