DEV Community

conjurer
conjurer

Posted on

2 1

Don't stop a process once started!

Some mistakes that can cost you your system...
Learned it the hard way!

Got a notification of upgrading 22 to 24 LTS. Why not?!

  1. Started without thinking anything.
    Talked to a friend who was shook the data hadn't been backed up.
    Panic! Panic! Panic!

  2. Aborted the process.
    Yes, that's the worst thing to do with a PC. Stop a process in between, especially something this big and important.
    Panic! Panic! Panic!

Called him. He tried helping and here are some of my cloudy memories of the process:
Went into the GRUB menu (yesss it was working! Relief!);
Chose advanced options for ubuntu;
Saw some recovery modes, selected 1;
After searching around for a while...
Checking out the recovery menu, trying to connect to network, working in the root shell (no experience!), seeing process aborts due to errors of corrupted files or files not found; this took a lot of time though
... and testing different libraries, got the files;

sudo apt-get install --reinstall python3-apt
Enter fullscreen mode Exit fullscreen mode

Installed some libs. Fixed broken install.

Ran the commands in sequence:

sudo dpkg --configure -a
sudo do-release-upgrade

sudo apt-get update
sudo apt-get upgrade

sudo apt-get dist-upgrade
sudo reboot

sudo do-release-upgrade
Enter fullscreen mode Exit fullscreen mode

The 4th one took so long! I was worried if it was running an infinte loop. But files were being restored, added, removed...
System was helping solve the issue! It's so great!

Use timeshift to safeguard against issues like these.

Guessed it right, these are like checkpoints. To go back to the previous state of data.

Anyways, the commands ran for almost 2 hours and finally the system started! Yess it started!

Still facing some issues- hardware compatibility ones (NVIDIA 550 drivers are not tested in the 24 LTS version, BIOS error on startup...).
Either install Ubuntu again or keep working.
Choosing second option for now! Too much for the day!

Yess it's working!

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay