Last active
September 12, 2021 15:28
-
-
Save xwiz/f36fc2cbd108a39fa88e7f735b1d056c to your computer and use it in GitHub Desktop.
Upgrading Ubuntu 16 (Xenial)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Make enough swap space if you have less than 2Gb memory | |
sudo swapoff -a | |
sudo fallocate -l 6G /swapfile | |
sudo chmod 0600 /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
sudo apt-get update && sudo apt-get upgrade | |
#if you run into any issues with out of date pkeys run the command below to update | |
#run sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv KEY_TO_REFRESH | |
#it is very important you ensure there are no pgp key errors before upgrading, remove any apt source list that is unsupported/deprecated | |
#before upgrading | |
sudo apt-get dist-upgrade | |
#you should likely be ready to upgrade at this stage | |
#update ciphers if needed to ensure you're able to login after upgrade.. | |
sudo sed -i 's/^Ciphers .*/Ciphers +aes256-cbc,aes192-cbc,aes128-cbc/' /etc/ssh/sshd_config | |
sudo do-release-upgrade | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment