If you use LightSail, AWS provides an easy way for you to connect to LightSail instances via Web SSH. I normally use a terminal (ssh client) to connect to LightSail instances, but using Web SSH is very convenient. If you try to do an OS upgrade, for example from Ubuntu 18.04 LTS to Ubuntu 20.04 LTS, you will break Web SSH. AWS has added a special Web SSH configuration on LightSail base images. The error you’ll get is “Upstream Error 515.” The only way to fix this is to get AWS Support to help you apply the fix. It’s not a make or break it deal, but it can be a nuisance if you prefer to use AWS Web SSH instead of a terminal. If you need a more secure SSH connection, consider uploading your ssh-key to the server, and disable password login.
I upgraded my desktop to Linux Mint 20 Ulyana over the weekend.
Edit your package repository. Replace tricia with ulyana, and bionic with focal.
Run update first.
apt update -y apt upgrade -y
Perform upgrade to Linux Mint 20. When prompted, choose default.
ulysses@penguin:~/Code$ cat /etc/os-release NAME="Linux Mint" VERSION="20 (Ulyana)" ID=linuxmint ID_LIKE=ubuntu PRETTY_NAME="Linux Mint 20" VERSION_ID="20" HOME_URL="https://www.linuxmint.com/" SUPPORT_URL="https://forums.ubuntu.com/" BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/" PRIVACY_POLICY_URL="https://www.linuxmint.com/" VERSION_CODENAME=ulyana UBUNTU_CODENAME=focal
Here are steps I took to upgrade from PHP 7.0 to 7.4 on Ubuntu 18.04 LTS.
Login as root, otherwise use sudo for all commands.
# use 3rd party ppa repo add-apt-repository ppa:ondrej/php apt -y update apt -y upgrade # install php-core apt install php7.4 php7.4-common php7.4-cli # add all the php extenstions your app needs apt install php7.4-curl php7.4-json php7.4-gd php7.4-mbstring apt install php7.4-intl php7.4-bcmath php7.4-bz2 php7.4-xml apt install php7.4-readline php7.4-zip php7.4-mysql # I'm using apache prefork MPM, so install it apt install libapache2-mod-php7.4 a2enmod php7.4 # check version. Success! php -v # for good measure, reboot apache systemctl restart apache2.service # Finally, purge the old PHP versions apt purge php7.0 libapache2-mod-php7.0
Finally, run update on more time to get all the latest updates.
apt -y update apt -y upgrade apt -y autoremove apt-get --with-new-pkgs upgrade
If you see packages are being kept back in Ubuntu, you can run the following to force an update.
sudo apt-get --with-new-pkgs upgrade
Now that Ubuntu 20.04 LTS (Long Term Support) is out, here’s a quick guide to upgrade to Ubuntu 20.04 LTS. You can ONLY upgrade from either Ubuntu 18.04 LTS or 19.10. If you have older versions of Ubuntu, it may not work. I suggest you back up your VM before running the upgrade, so you can quicky recover if something goes awry. This upgrade process will require sudo access.
# login as root sudo -i # check your current version lsb_release -a # update packages apt update -y apt upgrade -y # reboot server reboot # remove old kernels apt --purge autoremove # install update manager core apt install update-manager-core # finally, perform the upgrade do-release-upgrade -d # reboot the server reboot # after reboot confirm lsb_release -a
How to upgrade Google SDK on Redhat, Fedora and Centos Linux.
gcloud components update
If you are having trouble running that command because the GCloud component manager is disabled, you can try the following commands which will achieve the same result as above.
sudo yum makecache && sudo yum update \ kubectl \ google-cloud-sdk \ google-cloud-sdk-app-engine-grpc \ google-cloud-sdk-pubsub-emulator \ google-cloud-sdk-app-engine-go \ google-cloud-sdk-cloud-build-local \ google-cloud-sdk-datastore-emulator \ google-cloud-sdk-app-engine-python \ google-cloud-sdk-cbt \ google-cloud-sdk-bigtable-emulator \ google-cloud-sdk-datalab \ google-cloud-sdk-app-engine-java