Thursday, January 25, 2024

Upgrading Ubuntu : A Journey from 14.04 to 18.04


  ﷽

Upgrading your Ubuntu system is not just about adopting the latest features; it's also a crucial step in maintaining the overall health, security, and performance of your operating system. However, for many users, the fear of losing carefully crafted configurations and customizations can be a significant deterrent. In this section, we'll delve into the reasons behind the upgrade and how to ensure that your unique system settings remain intact throughout the process.

The fear of losing painstakingly crafted configurations and customizations is understandable. However, Ubuntu's upgrade process is designed to be as seamless as possible, minimizing the impact on your personalized settings. By following the step-by-step commands outlined earlier, you increase the likelihood of a smooth transition while retaining your unique system configurations.

  1. Backup Your Data: Before initiating the upgrade process, it's always a good practice to back up your important data. While the upgrade is designed to preserve user data and configurations, having a backup ensures you can quickly recover in case of any unforeseen issues.

  2. Configuration Files: Ubuntu's upgrade process is intelligent enough to retain most configuration files in the /etc directory. These files contain system-wide configurations for various applications and services, and their preservation ensures that your system behaves as expected after the upgrade.

  3. User Data: Personal files and documents stored in your home directory are typically left untouched during the upgrade. This includes your desktop background, browser bookmarks, and application settings specific to your user account.

Most of the time during the upgrade we will be utilizing the following commands :

    sudo apt update && sudo apt upgrade
    sudo apt dist-upgrade
    sudo shutdown -r now
    sudo apt update && sudo apt upgrade
    sudo apt install update-manager-core
    sudo do-release-upgrade

The process will surely takes time and some services might experiencing distruption, and also it's mandatory to perform system reboot on certain step, therefor it's important to Backup Your Data, and also the upgrade process will be performed sequentially, in sequence of :

14.04 => 16.04

16.04 => 18.04

It's also possible : 18.04 => 20.04.


 

Commands break down :

Step 1: Update and Upgrade Packages
To begin the upgrade process, open your terminal and run the following commands:

sudo apt update && sudo apt upgrade

This will update the package list and upgrade the installed packages to their latest versions. Ensuring that your system is up-to-date is a crucial first step to avoid any potential issues during the upgrade.

Step 2: Perform a Distribution Upgrade
Now, initiate the distribution upgrade with the following command:

sudo apt dist-upgrade

This command goes beyond a regular upgrade, handling dependencies and resolving any conflicts that might arise during the process.

Step 3: Reboot Your System
After the distribution upgrade, it's important to reboot your system to apply the changes. Execute the following command:

sudo shutdown -r now

This will restart your computer, and upon booting back up, you'll be running the updated packages.

Step 4: Update and Upgrade Again
Once your system has rebooted, run the update and upgrade commands again to ensure that any additional updates or changes are applied:

sudo apt update && sudo apt upgrade

Step 5: Install Update Manager Core
To enable the release upgrade, install the Update Manager Core with the following command:

sudo apt install update-manager-core

This package provides the necessary tools for managing releases and upgrades.

Step 6: Initiate the Release Upgrade
Now, you're ready to start the release upgrade process. Execute the following command:

sudo do-release-upgrade

Follow the on-screen instructions to proceed with the upgrade. The process may take some time, depending on your system's specifications and the amount of data to be updated.

Once the process completed InsyaAllah your system setting will remain the same, while there might be some adjustment in the setting or package library.

*** Note : The following steps is only if you experiencing No Update issue, which causing command  sudo do-release-upgrade  not performing any update, run the following command after Step 2 :

sudo apt remove update-manager-core
sudo apt-get autoremove
dpkg --get-selections | awk '$2 == "deinstall" {print $1}' | xargs sudo apt-get purge -y

Then continue to Step 3 

 

Barakallahu fiikum.

40 Hadist Seputar Keluarga Samawa (Bagian 3)

 ﷽ Ustadz Yusuf Abu Ubaidah As-Sidawi hafizahullohuta'ala Masjid Al-Aziz  Jl. Soekarno Hatta No. 662 Bandung Hadist 11 : Doa Orangtua Bu...