AppArmor systemd startup error
I've got this error while booting. aa-status says modules are loaded. Some in enforce mode.
Oct 07 22:44:29 pc apparmor[787]: * Starting AppArmor profiles
Oct 07 22:44:26 pc systemd[1]: Starting LSB: AppArmor initialization...
Oct 07 22:44:29 pc apparmor[787]: Multiple definitions for hat chromium in profile (null) exist,bailing out.
Oct 07 22:44:30 pc apparmor[787]: Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
Oct 07 22:44:30 pc apparmor[787]: Multiple definitions for hat chromium in profile (null) exist,bailing out.
Oct 07 22:44:30 pc apparmor[787]: Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
Oct 07 22:44:30 pc apparmor[787]: ...fail!
Oct 07 22:44:30 pc systemd[1]: apparmor.service: Control process exited, code=exited status=123
Oct 07 22:44:30 pc systemd[1]: Failed to start LSB: AppArmor initialization.
Oct 07 22:44:30 pc systemd[1]: apparmor.service: Unit entered failed state.
Oct 07 22:44:30 pc systemd[1]: apparmor.service: Failed with result 'exit-code'.
There is a similar question, Apparmor Init Failed, Exit Code 123's answer is installing apparmor-easyprof-ubuntu, but it didn't fix it in my laptop.
I've tried to setup a chromium profile and I think I did, as it prevent chromium to read the battery level ond dbus. But I am not sure what this startup error is. I get the same error with systemctl start apparmor-service too.
I've deleted usr.bin.chromium-browser in /etc/apparmor.d/, purged and reinstalled apparmor-profiles and apparmor-profiles-extra
What could this error be? How can I fix it?
Edit: Same or similar question, unanswered Ubuntu 16.04. Failed to start LSB: AppArmor initialization
Edit2: I think this might be related to this: https://bugs.launchpad.net/apparmor/+bug/1503762
Edit3: debsums -ac gave me this about systemd and apparmor
/etc/apparmor.d/usr.sbin.dnsmasq
/etc/apparmor.d/usr.bin.chromium-browser
/etc/apparmor.d/usr.bin.totem-previewers
/etc/apparmor.d/usr.bin.firefox
/etc/apparmor.d/lightdm-guest-session
/etc/systemd/logind.conf
16.04 systemd apparmor
add a comment |
I've got this error while booting. aa-status says modules are loaded. Some in enforce mode.
Oct 07 22:44:29 pc apparmor[787]: * Starting AppArmor profiles
Oct 07 22:44:26 pc systemd[1]: Starting LSB: AppArmor initialization...
Oct 07 22:44:29 pc apparmor[787]: Multiple definitions for hat chromium in profile (null) exist,bailing out.
Oct 07 22:44:30 pc apparmor[787]: Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
Oct 07 22:44:30 pc apparmor[787]: Multiple definitions for hat chromium in profile (null) exist,bailing out.
Oct 07 22:44:30 pc apparmor[787]: Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
Oct 07 22:44:30 pc apparmor[787]: ...fail!
Oct 07 22:44:30 pc systemd[1]: apparmor.service: Control process exited, code=exited status=123
Oct 07 22:44:30 pc systemd[1]: Failed to start LSB: AppArmor initialization.
Oct 07 22:44:30 pc systemd[1]: apparmor.service: Unit entered failed state.
Oct 07 22:44:30 pc systemd[1]: apparmor.service: Failed with result 'exit-code'.
There is a similar question, Apparmor Init Failed, Exit Code 123's answer is installing apparmor-easyprof-ubuntu, but it didn't fix it in my laptop.
I've tried to setup a chromium profile and I think I did, as it prevent chromium to read the battery level ond dbus. But I am not sure what this startup error is. I get the same error with systemctl start apparmor-service too.
I've deleted usr.bin.chromium-browser in /etc/apparmor.d/, purged and reinstalled apparmor-profiles and apparmor-profiles-extra
What could this error be? How can I fix it?
Edit: Same or similar question, unanswered Ubuntu 16.04. Failed to start LSB: AppArmor initialization
Edit2: I think this might be related to this: https://bugs.launchpad.net/apparmor/+bug/1503762
Edit3: debsums -ac gave me this about systemd and apparmor
/etc/apparmor.d/usr.sbin.dnsmasq
/etc/apparmor.d/usr.bin.chromium-browser
/etc/apparmor.d/usr.bin.totem-previewers
/etc/apparmor.d/usr.bin.firefox
/etc/apparmor.d/lightdm-guest-session
/etc/systemd/logind.conf
16.04 systemd apparmor
add a comment |
I've got this error while booting. aa-status says modules are loaded. Some in enforce mode.
Oct 07 22:44:29 pc apparmor[787]: * Starting AppArmor profiles
Oct 07 22:44:26 pc systemd[1]: Starting LSB: AppArmor initialization...
Oct 07 22:44:29 pc apparmor[787]: Multiple definitions for hat chromium in profile (null) exist,bailing out.
Oct 07 22:44:30 pc apparmor[787]: Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
Oct 07 22:44:30 pc apparmor[787]: Multiple definitions for hat chromium in profile (null) exist,bailing out.
Oct 07 22:44:30 pc apparmor[787]: Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
Oct 07 22:44:30 pc apparmor[787]: ...fail!
Oct 07 22:44:30 pc systemd[1]: apparmor.service: Control process exited, code=exited status=123
Oct 07 22:44:30 pc systemd[1]: Failed to start LSB: AppArmor initialization.
Oct 07 22:44:30 pc systemd[1]: apparmor.service: Unit entered failed state.
Oct 07 22:44:30 pc systemd[1]: apparmor.service: Failed with result 'exit-code'.
There is a similar question, Apparmor Init Failed, Exit Code 123's answer is installing apparmor-easyprof-ubuntu, but it didn't fix it in my laptop.
I've tried to setup a chromium profile and I think I did, as it prevent chromium to read the battery level ond dbus. But I am not sure what this startup error is. I get the same error with systemctl start apparmor-service too.
I've deleted usr.bin.chromium-browser in /etc/apparmor.d/, purged and reinstalled apparmor-profiles and apparmor-profiles-extra
What could this error be? How can I fix it?
Edit: Same or similar question, unanswered Ubuntu 16.04. Failed to start LSB: AppArmor initialization
Edit2: I think this might be related to this: https://bugs.launchpad.net/apparmor/+bug/1503762
Edit3: debsums -ac gave me this about systemd and apparmor
/etc/apparmor.d/usr.sbin.dnsmasq
/etc/apparmor.d/usr.bin.chromium-browser
/etc/apparmor.d/usr.bin.totem-previewers
/etc/apparmor.d/usr.bin.firefox
/etc/apparmor.d/lightdm-guest-session
/etc/systemd/logind.conf
16.04 systemd apparmor
I've got this error while booting. aa-status says modules are loaded. Some in enforce mode.
Oct 07 22:44:29 pc apparmor[787]: * Starting AppArmor profiles
Oct 07 22:44:26 pc systemd[1]: Starting LSB: AppArmor initialization...
Oct 07 22:44:29 pc apparmor[787]: Multiple definitions for hat chromium in profile (null) exist,bailing out.
Oct 07 22:44:30 pc apparmor[787]: Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
Oct 07 22:44:30 pc apparmor[787]: Multiple definitions for hat chromium in profile (null) exist,bailing out.
Oct 07 22:44:30 pc apparmor[787]: Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
Oct 07 22:44:30 pc apparmor[787]: ...fail!
Oct 07 22:44:30 pc systemd[1]: apparmor.service: Control process exited, code=exited status=123
Oct 07 22:44:30 pc systemd[1]: Failed to start LSB: AppArmor initialization.
Oct 07 22:44:30 pc systemd[1]: apparmor.service: Unit entered failed state.
Oct 07 22:44:30 pc systemd[1]: apparmor.service: Failed with result 'exit-code'.
There is a similar question, Apparmor Init Failed, Exit Code 123's answer is installing apparmor-easyprof-ubuntu, but it didn't fix it in my laptop.
I've tried to setup a chromium profile and I think I did, as it prevent chromium to read the battery level ond dbus. But I am not sure what this startup error is. I get the same error with systemctl start apparmor-service too.
I've deleted usr.bin.chromium-browser in /etc/apparmor.d/, purged and reinstalled apparmor-profiles and apparmor-profiles-extra
What could this error be? How can I fix it?
Edit: Same or similar question, unanswered Ubuntu 16.04. Failed to start LSB: AppArmor initialization
Edit2: I think this might be related to this: https://bugs.launchpad.net/apparmor/+bug/1503762
Edit3: debsums -ac gave me this about systemd and apparmor
/etc/apparmor.d/usr.sbin.dnsmasq
/etc/apparmor.d/usr.bin.chromium-browser
/etc/apparmor.d/usr.bin.totem-previewers
/etc/apparmor.d/usr.bin.firefox
/etc/apparmor.d/lightdm-guest-session
/etc/systemd/logind.conf
16.04 systemd apparmor
16.04 systemd apparmor
edited Oct 8 '16 at 21:04
Artyom
asked Oct 7 '16 at 20:01
ArtyomArtyom
1,0381724
1,0381724
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
You probably copied /etc/apparmod.d to ~backup, otherwise the rsync step would not work (or would not make any sense).
add a comment |
It was painful. But I've solved it. Though I still don't know what caused it.
I've got another box that is running Ubuntu 16.04. It is not as customized as my laptop. I've checked its logs and found out that apparmor.service starts as it should on it.
- Tar'ed
/etc/apparmor.d/
of my desktop as root. - Moved
/etc/apparmor.d/
to/etc/apparmor.d.backup/
on my laptop. - Untar'ed
/etc/apparmor.d/
in/tmp
on my laptop. - ran
rsync -avx /tmp/apparmor.d/ /etc/apparmor.d/
as root. systemctl start apparmor
systemctl status apparmor
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f834355%2fapparmor-systemd-startup-error%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You probably copied /etc/apparmod.d to ~backup, otherwise the rsync step would not work (or would not make any sense).
add a comment |
You probably copied /etc/apparmod.d to ~backup, otherwise the rsync step would not work (or would not make any sense).
add a comment |
You probably copied /etc/apparmod.d to ~backup, otherwise the rsync step would not work (or would not make any sense).
You probably copied /etc/apparmod.d to ~backup, otherwise the rsync step would not work (or would not make any sense).
answered Jun 16 '17 at 15:38
MarcMarc
266
266
add a comment |
add a comment |
It was painful. But I've solved it. Though I still don't know what caused it.
I've got another box that is running Ubuntu 16.04. It is not as customized as my laptop. I've checked its logs and found out that apparmor.service starts as it should on it.
- Tar'ed
/etc/apparmor.d/
of my desktop as root. - Moved
/etc/apparmor.d/
to/etc/apparmor.d.backup/
on my laptop. - Untar'ed
/etc/apparmor.d/
in/tmp
on my laptop. - ran
rsync -avx /tmp/apparmor.d/ /etc/apparmor.d/
as root. systemctl start apparmor
systemctl status apparmor
add a comment |
It was painful. But I've solved it. Though I still don't know what caused it.
I've got another box that is running Ubuntu 16.04. It is not as customized as my laptop. I've checked its logs and found out that apparmor.service starts as it should on it.
- Tar'ed
/etc/apparmor.d/
of my desktop as root. - Moved
/etc/apparmor.d/
to/etc/apparmor.d.backup/
on my laptop. - Untar'ed
/etc/apparmor.d/
in/tmp
on my laptop. - ran
rsync -avx /tmp/apparmor.d/ /etc/apparmor.d/
as root. systemctl start apparmor
systemctl status apparmor
add a comment |
It was painful. But I've solved it. Though I still don't know what caused it.
I've got another box that is running Ubuntu 16.04. It is not as customized as my laptop. I've checked its logs and found out that apparmor.service starts as it should on it.
- Tar'ed
/etc/apparmor.d/
of my desktop as root. - Moved
/etc/apparmor.d/
to/etc/apparmor.d.backup/
on my laptop. - Untar'ed
/etc/apparmor.d/
in/tmp
on my laptop. - ran
rsync -avx /tmp/apparmor.d/ /etc/apparmor.d/
as root. systemctl start apparmor
systemctl status apparmor
It was painful. But I've solved it. Though I still don't know what caused it.
I've got another box that is running Ubuntu 16.04. It is not as customized as my laptop. I've checked its logs and found out that apparmor.service starts as it should on it.
- Tar'ed
/etc/apparmor.d/
of my desktop as root. - Moved
/etc/apparmor.d/
to/etc/apparmor.d.backup/
on my laptop. - Untar'ed
/etc/apparmor.d/
in/tmp
on my laptop. - ran
rsync -avx /tmp/apparmor.d/ /etc/apparmor.d/
as root. systemctl start apparmor
systemctl status apparmor
edited Jan 8 at 23:15
V. Dalechin
679
679
answered Oct 9 '16 at 10:33
ArtyomArtyom
1,0381724
1,0381724
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f834355%2fapparmor-systemd-startup-error%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown