• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

upgrade

Linux Mint Upgrade

December 20, 2022

Here’s how to upgrade your Linux Mint Desktop.

sudo apt update
sudo apt install mintupgrade

sudo apt update sudo apt install mintupgrade

Then run the upgrade.

sudo mintupgrade

sudo mintupgrade

Filed Under: Linux Tagged With: mint, mintupgrade, upgrade

OpenSSL Upgrade

October 19, 2020

Here’s how to upgrade to OpenSSL 1.1 on Redhat/Centos.

# check
openssl version
yum info openssl
# download and install
cd /usr/local/src
wget https://www.openssl.org/source/openssl-1.0.2-latest.tar.gz
tar -zxf openssl-1.0.2-latest.tar.gz
# compile
cd openssl-1.0.2a
./config
make
make test
make install
# update softlink
mv /usr/bin/openssl /root/
ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
# verify new version
openssl version

# check openssl version yum info openssl # download and install cd /usr/local/src wget https://www.openssl.org/source/openssl-1.0.2-latest.tar.gz tar -zxf openssl-1.0.2-latest.tar.gz # compile cd openssl-1.0.2a ./config make make test make install # update softlink mv /usr/bin/openssl /root/ ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl # verify new version openssl version

Filed Under: Linux Tagged With: centos, openssl, redhat, upgrade

LightSail Upstream Error 515

July 6, 2020

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.

Filed Under: Cloud, Linux Tagged With: aws, error 515, lightsail, os, upgrade, web ssh

Linux Mint 20 Ulyana

July 6, 2020

I upgraded my desktop to Linux Mint 20 Ulyana over the weekend.

Edit your package repository. Replace tricia with ulyana, and bionic with focal.

vim /etc/apt/sources.list.d/official-package-repositories.list

vim /etc/apt/sources.list.d/official-package-repositories.list

Run update first.

apt update -y
apt upgrade -y

apt update -y apt upgrade -y

Perform upgrade to Linux Mint 20. When prompted, choose default.

apt dist-upgrade

apt dist-upgrade

Reboot.

reboot

reboot

cat /etc/os-release.

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

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

Filed Under: Linux Tagged With: command line, linux mint, linux mint 20, ulyana, upgrade

PHP 7.0 to 7.4 Upgrade

June 28, 2020

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

# 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

apt -y update apt -y upgrade apt -y autoremove apt-get --with-new-pkgs upgrade

Filed Under: Linux Tagged With: 7.0, 7.4, php, ubuntu, upgrade

Ubuntu Packages Kept Back

June 4, 2020

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

sudo apt-get --with-new-pkgs upgrade

Filed Under: Linux Tagged With: back, kept, packages, ubuntu, upgrade

Upgrade to Ubuntu 20.04 LTS

April 26, 2020

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

# 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

Filed Under: Linux Tagged With: 20.04 LTS, release, ubuntu, update, upgrade

Google SDK Update

June 28, 2019

How to upgrade Google SDK on Redhat, Fedora and Centos Linux.

gcloud components update

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

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

Filed Under: Cloud Tagged With: google, sdk, update, upgrade

  • Go to page 1
  • Go to page 2
  • Go to Next Page »
  • Home
  • About
  • Archives

Copyright © 2023