1

What action need to be taken if accidentally your ubuntu desktop got corrupted after installing any packages. for example:

I am using Ubuntu Desktop 23.10, I ran "sudo apt-get install fuse" and it uninstalled my GUI and it is not booting up.

Rasool
  • 351
  • 1
    I couldn't believe the installation of fuse would have caused this, but it's true: fuse is now provided by the fuse3 package (so there is no need to apt install fuse), but since fuse breaks fuse3, apt install fuse will remove fuse3 and through its dependencies everything upto ubuntu-desktop and ubuntu-minimal. Oops! Good catch and well done on the fix. – zwets Jan 20 '24 at 23:16
  • 5
    Future proofing: when running apt install don't blindly say yes. READ what it is going to remove first and say no occasionally!! – user10489 Jan 20 '24 at 23:33

1 Answers1

1

I found the solution, I have rebooted by pressing Ctrl+Alt+Del and then selected "ubuntu recovery" mode and in root shell, I ran below commands.

  1. sudo apt autoremove fuse
  2. sudo apt-get install ubuntu-gnome-desktop

Note: instead of installing fuse, libfuse2 is greater for 22.04 and later version.

Rasool
  • 351
  • 1
    Good rescue! Instead of ubuntu-gnome-desktop, which is a transitional package since Ubuntu 17.10, the preferred package to install now would be ubuntu-desktop. – zwets Jan 20 '24 at 23:30
  • @zwets That's Great, Thank you so much for replying and brightening the answer :) – Rasool Jan 22 '24 at 03:18