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!

Postmark Image

Speedy emails, satisfied customers

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)

Eliminate Context Switching and Maximize Productivity

Pieces.app

Pieces Copilot is your personalized workflow assistant, working alongside your favorite apps. Ask questions about entire repositories, generate contextualized code, save and reuse useful snippets, and streamline your development process.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay