PDA

View Full Version : Removing one application removes more applications.



thecowmilk
March 11th, 2020, 01:42 AM
HI all, the problem has occurred even before but it wasn't any special case like this one. All started when I tried to install `wine` in my Ubuntu 18.04.1 LTS. I did a simple `sudo install wine` and I hit enter.
I saw it was being downloaded from the repositories and while I was doing other thing on google and something happened. Firefox just was removed from my `favorites` and google icon disappeared.

I went staring at terminal and I was seeing that Ubuntu was removing a lot of packages like following: openjdk, firefox, google, files, settings, kerneloops and many more. The wors part is that I can't download them again because I will get a dependency error which I'm unable to fix. The fun thing is that when I was trying to remove one application by using command: `sudo apt remove --purge <package name>` it said me that more applications would get removed.

Please Help Me. I don't know what to do and why this happens..................... If you leave a message would be great........

TheFu
March 11th, 2020, 04:53 AM
a) do you always run sudo apt update first? Having current package lists and dependencies is very important.

b) do you properly patch the system at least weekly? sudo apt upgrade or sudo apt full-upgrade

c) aptitude is smarter about dependencies. If the dependency results aren't to your liking, just say 'N', and the next dependency solution may be better. Answer 'N' until an alternative you can live with gets provided.

d) If a .deb file was installed directly, that package may be holding back some core package causing dependency issues which cannot be resolved until the .deb package manually installed directly is removed. Perhaps someone else knows how to determine which .deb files where manually installed, breaking the dependencies. There are ways, asking APT, to provide a list of dependent packages.

guiverc
March 11th, 2020, 05:01 AM
This looks a lot like https://askubuntu.com/questions/1216245/removing-one-applications-removes-even-more

Where user535733 concludes


"This looks like a Debian Jessie system, not Ubuntu at all. You have Debian sources, not Ubuntu sources. That's why you cannot find ubuntu-desktop -- it's not in Debian. I don't know how you installed ubuntu-desktop, but mixing Debian and Ubuntu packages is Not Wise. It creates a FrankenDebian (https://wiki.debian.org/DontBreakDebian) with version conflicts and ends in tears"

thecowmilk
March 11th, 2020, 12:12 PM
So guys I solved it. The solution is in the `askubuntu` link... :D Thanks