My HP Elitebook 2570p cannot boot! Failed to start AppArmor initialization... Computer hanging in booting process starting gnome display manager, dispatcher service....system changes .. p link was shut down. I can not start my laptop anymore. I use the up-to-date Ubuntu. I restarted my laptop and since now it has been stuck in booting mode. What can I do now?
2 Answers
When you see that crash screen try to get into the console by issuing
ctrl + alt + F3if this gives you a text terminal login prompt then login and issue
sudo apt-get install apparmor-easyprof-ubuntuLets try a new strategy ... reboot box and then immediately start to tap shift key repeatedly until you see the following :
use your arrow keys to scroll down to grub menu option :
Advanced options for Ubuntu
and hit enter ... now you will see this screen
again arrow key yourself down and hit enter on menu option root
now you should see a terminal prompt logged on as root ... if yes then issue
sudo apt-get install apparmor-easyprof-ubuntuPlease tell how you get on
1if the recovery mode doesn't make it to the options screen as I saw with an 18.04 bionic - append init=/bin/sh to the line beginning with "linux" in the edit-mode for grubs menu item of "recovery" (key for edit: ctrl+e, boot with changed options: ctrl+x).
When you're dropped to a shell, remount the rootfs (mount -o remount,rw /dev/sdaX /) and delete the symlink of the apparmor.service to the sysvinit.target (find /etc/systemd/ -name '*apparmor*') and restart.
After the now successful boot I suggest to create an override for the apparmor.service unit-file and set a TimeoutSec=20 to it. Then you can install missing packages via apt or debug apparmor, in any way a boot can be more forgiving if apparmor is failing.