I have recently seen on my 16.04 when running apt upgrade
that some packages have been kept back. I went to investigate and found the answer here. It basically says that you are supposed to install the packages individually instead of running apt dist-upgrade
. So that's what I did the only two packages I called apt install
for were:
libgl1-mesa-dev
libgl1-mesa-devlibgl1-mesa-dev
The rest came along as dependencies.
But as the title says the machine ended up in emergency mode. Therefore the installation was probably a bad idea anyway. To oppose the problem I started the system in rescue mode (not to be confused withe emergency mode) from GRUB and ran dpkg to fix broken/missing packages. The Interesting thing is the system will boot normally right after that. When I boot it again, it will end up in emergency mode. To get a normal GUI I have to run dpkg every time I boot it and it will work even though, dpkg doesn't do anything.
My questions are:
What are kept back packages? Why are you not supposed to install them? And how to deal with it if you have...
What ACTUALLY causes the ubuntu to go into emergency mode? Since it works fine, if I go through my special boot process.