LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-04-2018, 06:55 AM   #1
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 10 (Buster) x64
Posts: 4,160

Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
Question Red text at bootup: failed to start app armor initialization


Hi.

I get this message in red text at bootup: failed to start app armor initialization.

How do I remedy this? Is it dangerous?

Thanks.
 
Old 02-04-2018, 07:09 AM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904
Does sudo service apparmor status produce any useful output?
 
Old 02-04-2018, 07:13 AM   #3
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 10 (Buster) x64
Posts: 4,160

Original Poster
Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
Post

Quote:
Originally Posted by hydrurga View Post
Does sudo service apparmor status produce any useful output?
Hi hydrurga. Here's the output [in image].
Attached Thumbnails
Click image for larger version

Name:	aa.png
Views:	115
Size:	55.9 KB
ID:	26898  
 
Old 02-04-2018, 11:21 AM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904
Thanks, but it's not very useful as an image (cutting and pasting for web search; right-hand text cut off).

Could you possibly post the output in code tags, redacting as necessary?
 
Old 02-04-2018, 11:30 AM   #5
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 10 (Buster) x64
Posts: 4,160

Original Poster
Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
Quote:
Originally Posted by hydrurga View Post
Thanks, but it's not very useful as an image (cutting and pasting for web search; right-hand text cut off).

Could you possibly post the output in code tags, redacting as necessary?
Sure thing:

Code:
● apparmor.service - AppArmor initialization
   Loaded: loaded (/lib/systemd/system/apparmor.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2018-02-04 12:18:14 GMT; 5h 11min ago
     Docs: man:apparmor(7)
           http://wiki.apparmor.net/
  Process: 601 ExecStart=/etc/init.d/apparmor start (code=exited, status=123)
 Main PID: 601 (code=exited, status=123)

Feb 04 12:18:11 XXXXXX systemd[1]: Starting AppArmor initialization...
Feb 04 12:18:13 XXXXXX apparmor[601]: Starting AppArmor profiles:AppArmor parser error for /etc/ap
Feb 04 12:18:14 XXXXXX apparmor[601]: AppArmor parser error for /etc/apparmor.d/snap.core.3748.usr
Feb 04 12:18:14 XXXXXX apparmor[601]:  failed!
Feb 04 12:18:14 XXXXXX systemd[1]: apparmor.service: Main process exited, code=exited, status=123/
Feb 04 12:18:14 XXXXXX systemd[1]: Failed to start AppArmor initialization.
Feb 04 12:18:14 XXXXXX systemd[1]: apparmor.service: Unit entered failed state.
Feb 04 12:18:14 XXXXXX systemd[1]: apparmor.service: Failed with result 'exit-code'.
 
Old 02-04-2018, 11:35 AM   #6
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904
Thanks. Sorry for being awkward but the text on the right is still being cut off in several lines. It will tell us which file can't be found.
 
Old 02-04-2018, 11:38 AM   #7
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 10 (Buster) x64
Posts: 4,160

Original Poster
Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
Quote:
Originally Posted by hydrurga View Post
Thanks. Sorry for being awkward but the text on the right is still being cut off in several lines. It will tell us which file can't be found.
Sorry, I printed the terminal output to a text file and copied again:

Code:
● apparmor.service - AppArmor initialization
   Loaded: loaded (/lib/systemd/system/apparmor.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2018-02-04 12:18:14 GMT; 5h 20min ago
     Docs: man:apparmor(7)
           http://wiki.apparmor.net/
  Process: 601 ExecStart=/etc/init.d/apparmor start (code=exited, status=123)
 Main PID: 601 (code=exited, status=123)

Feb 04 12:18:11 XXXXX systemd[1]: Starting AppArmor initialization...
Feb 04 12:18:13 XXXXX apparmor[601]: Starting AppArmor profiles:AppArmor parser error for /etc/apparmor.d/snap.core.3748.usr.lib.snapd.snap-confine in /etc/apparmor.d/snap.core.3748.usr.lib.snapd.snap-confine at line 11: Could not open '/var/lib/snapd/apparmor/snap-confine'
Feb 04 12:18:14 XXXXX apparmor[601]: AppArmor parser error for /etc/apparmor.d/snap.core.3748.usr.lib.snapd.snap-confine in /etc/apparmor.d/snap.core.3748.usr.lib.snapd.snap-confine at line 11: Could not open '/var/lib/snapd/apparmor/snap-confine'
Feb 04 12:18:14 XXXXX apparmor[601]:  failed!
Feb 04 12:18:14 XXXXX systemd[1]: apparmor.service: Main process exited, code=exited, status=123/n/a
Feb 04 12:18:14 XXXXX systemd[1]: Failed to start AppArmor initialization.
Feb 04 12:18:14 XXXXX systemd[1]: apparmor.service: Unit entered failed state.
Feb 04 12:18:14 XXXXX systemd[1]: apparmor.service: Failed with result 'exit-code'.

Last edited by linustalman; 02-04-2018 at 11:40 AM.
 
Old 02-04-2018, 11:49 AM   #8
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 10 (Buster) x64
Posts: 4,160

Original Poster
Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
Post

BTW, I used to have snapd installed but uninstalled it a few weeks ago. Maybe that's relevant to this.
 
Old 02-04-2018, 11:49 AM   #9
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904
Thanks.

This bug report might be relevant ("snapd fails to run when apparmor is enabled"):

https://bugs.debian.org/cgi-bin/bugr...cgi?bug=851473
 
Old 02-04-2018, 11:54 AM   #10
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904
Quote:
Originally Posted by linustalman View Post
BTW, I used to have snapd installed but uninstalled it a few weeks ago. Maybe that's relevant to this.
Your output appears to indicate that at least part of snap is still installed. Did you purge all the packages that you had installed with snap as well as the package itself?

https://wiki.archlinux.org/index.php/Snapd#Removal

Last edited by hydrurga; 02-04-2018 at 11:55 AM.
 
Old 02-05-2018, 11:54 AM   #11
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 10 (Buster) x64
Posts: 4,160

Original Poster
Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
Post

I installed snapd again with the vlc snap. The red text is now not showing at bootup.

The output now:

Code:
● apparmor.service - AppArmor initialization
   Loaded: loaded (/lib/systemd/system/apparmor.service; enabled; vendor preset: enabled)
   Active: active (exited) since Mon 2018-02-05 17:18:46 GMT; 36min ago
     Docs: man:apparmor(7)
           http://wiki.apparmor.net/
  Process: 827 ExecStart=/etc/init.d/apparmor start (code=exited, status=0/SUCCESS)
 Main PID: 827 (code=exited, status=0/SUCCESS)
    Tasks: 0 (limit: 4915)
   CGroup: /system.slice/apparmor.service

Feb 05 17:18:42 XXXXXX systemd[1]: Starting AppArmor initialization...
Feb 05 17:18:45 XXXXXX apparmor[827]: Starting AppArmor profiles:Warning from /etc/apparmor.d/usr.lib.snapd.snap-confine (/etc/apparmor.d/usr.lib.snapd.snap-confine line 362): Unconfined exec qualifier (ux) allows some dangerous environment variables to be passed to the unconfined process; 'man 5 apparmor.d' for details.
Feb 05 17:18:46 XXXXXX apparmor[827]: .
Feb 05 17:18:46 XXXXXX systemd[1]: Started AppArmor initialization.

Last edited by linustalman; 02-05-2018 at 11:56 AM.
 
Old 02-05-2018, 12:21 PM   #12
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904
From a quick web search, it looks as if the latest is a warning that can be ignored (but don't take my word as definitive).

Last edited by hydrurga; 02-05-2018 at 12:23 PM.
 
Old 02-05-2018, 01:50 PM   #13
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 10 (Buster) x64
Posts: 4,160

Original Poster
Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
Quote:
Originally Posted by hydrurga View Post
From a quick web search, it looks as if the latest is a warning that can be ignored (but don't take my word as definitive).
You mean the original red text warning is benign?
 
Old 02-05-2018, 02:10 PM   #14
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904
The original one was an error, resulting in a failure to run the AppArmor service properly ("Active: failed").

The most recent one was a warning and the AppArmor Service successfully ran ("Active: active").
 
Old 02-05-2018, 02:11 PM   #15
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 10 (Buster) x64
Posts: 4,160

Original Poster
Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
Thumbs up

Quote:
Originally Posted by hydrurga View Post
The original one was an error, resulting in a failure to run the AppArmor service properly ("Active: failed").

The most recent one was a warning and the AppArmor Service successfully ran ("Active: active").
Ok, I see.
 
  


Reply

Tags
apparmor, bootup, message, warning


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Bootup red text: "failed to start set console font and keymap." in Debian 9 Stretch Xfce linustalman Debian 8 04-16-2020 08:36 AM
App Armor no longer likes Chromium browser HansDelbruck Linux - Software 3 01-21-2018 02:35 PM
python app service failed to start okram_ Programming 1 05-21-2015 03:39 AM
Does Fedora come with App Armor? Novatian Fedora 1 10-20-2014 03:36 PM
Failed to emerge app-text/recode-3.6_p17-r2 sosoy77 Gentoo 2 06-12-2012 01:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration