This question already has an answer here:

I removed nautilus from my laptop and I had lost everything. When iam trying to install nautilus it requires some dependencies.
How can I get it now??
I used sudo apt-get remove --purge nautilus to remove nautilus

marked as duplicate by WinEunuuchs2Unix, user68186, N0rbert, Kulfy, Fabby Dec 21 '18 at 12:00

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 5
    Please edit the post and add the error message that showed while trying to install it. – Henry WH Hack v2.1.2 Dec 21 '18 at 0:15
  • 2
    Also include the command(s) you used to remove nautilus in the first place. Perhaps you removed more than you intended. – WinEunuuchs2Unix Dec 21 '18 at 0:18
  • On recent ubuntu, sudo apt remove nautilus will remove ubuntu-desktop as well. – Alvin Liang Dec 21 '18 at 3:07
  • It might seem counter-intuitive to follow this duplicate, but you've not only lost nautilus, but your entire desktop system. following the instructions on how to install a GUI will solve your problem. cc @karel – Fabby Dec 21 '18 at 12:01
  • @karel I have just purged nautilus on clean Ubuntu 18.04 LTS and 18.10 VMs - it removed nautilus, nautilus-share and ubuntu-desktop, but system is still usable. Running apt autoremove removes only old kernels, either. So the main problem of this question is lack or details. – N0rbert Dec 21 '18 at 12:12

The Ubuntu desktop system package (ubuntu-desktop) depends on all of the packages in the Ubuntu desktop system. In all currently supported versions of Ubuntu open the terminal and type:

sudo apt install ubuntu-desktop  
sudo reboot  

In order to preview what sudo apt install ubuntu-desktop installs without installing anything run apt show ubuntu-desktop

In order to simulate what sudo apt install ubuntu-desktop installs without installing anything run apt install ubuntu-desktop --simulate


If a package has dependencies that cannot be satisfied you can use aptitude to resolve them:

sudo aptitude install nautilus

This will give you choices on which packages to keep or remove such that nautilus can be installed. There can be many different ways to resolve dependencies and you don't have to accept the first choices given. Keep answering the prompts about which packages you want to keep or remove until the dependencies are resolved.

  • That's likely because that package is no longer needed and would be removed by apt autoremove anyhow. – Kristopher Ives Dec 21 '18 at 9:12
  • That's because I updated the kernel today, but I haven't run sudo apt autoremove after updating the kernel yet. – karel Dec 21 '18 at 9:14

Not the answer you're looking for? Browse other questions tagged or ask your own question.