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

- 99,918

- 19
- 1
- 1
- 3
2 Answers
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

- 114,770
-
1I somehow managed to remove
files
ornautilus
, whatever the default file manager on Ubuntu 23.04 and thankfullysudo apt install ubuntu-desktop
resolved it. Thanks! – StudioLE Aug 11 '23 at 14:02
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.

- 5,509
-
That's likely because that package is no longer needed and would be removed by
apt autoremove
anyhow. – Kristopher Ives Dec 21 '18 at 09: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 09:14
sudo apt remove nautilus
will remove ubuntu-desktop as well. – Alvin Liang Dec 21 '18 at 03:07nautilus
on clean Ubuntu 18.04 LTS and 18.10 VMs - it removednautilus
,nautilus-share
andubuntu-desktop
, but system is still usable. Runningapt autoremove
removes only old kernels, either. So the main problem of this question is lack or details. – N0rbert Dec 21 '18 at 12:12