Select “Yes” so it won’t be asking permission every time it needs to do the restart. This tells that the upprade will update some running services and requires restarting the service. During the upgrade, you will also get a notice like the one shown below.This is usually true when you’re upgrading on your local computer, but upgrading on the server usually goes faster. Next, it’ll confirm the number of packages, the size to download for the upgrade, and that the upgrade will possibly take hours. So type “y” as we want all the list updated and then proceed. Secondly, it will ask to update the package repository list to Ubuntu 20.04 (“Focal” Fossa).The process will first ask you to do the upgrade operation over a new SSH daemon.To upprade it, type the following command: do-release-upgrade.Now that we have cleared things up and updated and resolved the packages in Ubuntu, we can now do the actual Ubuntu upgrade. Wait for a while then login to the SSH again. So when you’re prompted to reboot type: reboot This command will log you out automatically from the current SSH session. At this step, you might have to reboot the server after performing these package upgrades.The command, dist-upgrade, also corrects some conflicts on the packages and the package dependencies installed so it may also remove some packages that are no longer used. Then type the command apt update & apt dist-upgrade -y to update the packages and repositories index list and upgrade some of the packages.Type the command: apt clean & apt autoclean & apt autoremove -y.Clean-up and Update Packagesįirst, we clear out the local repository files that can no longer be downloaded and remove obsolete packages that were automatically installed as these files are now mostly useless. Compared to the non-LTS version which only gets around 1 year of support.Īt the time of the writing, the current LTS version, besides 18.04, is 20.04. LTS (Long-term Support) means that it’ll be given updates, security patches, and support by Canonical, for at least 5 years and another few years for maintenance releases. As we can see in the image below, the current version we are running is Ubuntu 18.04 LTS. Checking Versionįirst, let’s check the current Ubuntu version that we have. Once, all these prerequisites are checked, you can get started. Lastly, you need is to have root or pseudo access to the server as it’ll require high privilege to run the update operation. If you’re running a production site, where users are continuously using the site, you might want to send them a notice that the site will be going under maintenance for a moment. This way you can always revert to the previous state of your server in case the update fails or breaks something on the website. Read more Pre-requisiteīefore we begin, it would be best to have a backup of your website files and database or a snapshot of your server. In this post, I'll show you how to bypass the password prompt and get you connected to your.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |