Can not boot! Failed to start AppArmor initialization... Computer hanging in booting.. can not start

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?

enter image description here

4

2 Answers

When you see that crash screen try to get into the console by issuing

ctrl + alt + F3

if this gives you a text terminal login prompt then login and issue

 sudo apt-get install apparmor-easyprof-ubuntu

Lets try a new strategy ... reboot box and then immediately start to tap shift key repeatedly until you see the following :

purple grub screen

use your arrow keys to scroll down to grub menu option :

Advanced options for Ubuntu

and hit enter ... now you will see this screen

Advanced options

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-ubuntu

Please tell how you get on

1

if 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.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like