Ask Your Question

systemctl start dock[tab] and error of Unit apparmor.service

asked 2017-01-31 13:11:24 -0600

joseluismantilla gravatar image

updated 2017-02-01 18:45:30 -0600

Hello everyone

When you press the tab key to complete a name of service appear an error of apparmor.service !

systemctl start dock[tab]

and after appears... Unit apparmor.service could not be found.

systemctl start dockUnit apparmor.service could not be found.

You can replace "dock" with whatever service name, I am looking to autocomplete the service name and appear always only with the start systemctl option.

How can I fix it? --I have the same issue from Fedora 23.

edit retag flag offensive close merge delete

4 Answers

Sort by » oldest newest most voted

answered 2017-02-06 05:50:49 -0600

AquaL1te gravatar image

I can reproduce this error for any unit file with the command systemctl start ip[tab] or systemctl start fail2[tab]. I guess you can report it as a bug, I can also report it in a clean Fedora 25 VM.

edit flag offensive delete link more


Please, help me reporting this like bug. I would like to know the fix, I was searching a recursive grep to /system but I haven't answer. I don't know whos this "apparmor".

joseluismantilla gravatar imagejoseluismantilla ( 2017-02-08 12:48:05 -0600 )edit

answered 2017-02-03 11:38:29 -0600

joseluismantilla gravatar image

Hello #masteroman

Yes, I have found it here:

$ sudo systemctl --state=not-found --all |grep -i apparmor ● apparmor.service not-found inactive dead apparmor.service

I think this is an old bug since Fedora 23.

edit flag offensive delete link more


Check for symlinks in /etc/systemd directory, it could be that It's left somewhere in there...

masteroman gravatar imagemasteroman ( 2017-02-03 15:56:28 -0600 )edit

Have you managed to find it? Try with:

sudo find /etc/systemd -type l -iname "apparmor.service"

masteroman gravatar imagemasteroman ( 2017-02-04 12:57:11 -0600 )edit

answered 2017-02-01 17:05:35 -0600

masteroman gravatar image

I'm not really sure why would you have apparmor service in the first place but try the following:

sudo systemctl daemon-reload

Then check if service is still displayed in:

sudo systemctl list-unit-files | grep -i apparmor
edit flag offensive delete link more


Hello #masteroman

First, after a reboot, isn't necessary to do a "daemon-reload" to systemctl. Second, if the message says " could not be found" so for what should I search it using the list-unit-files -- it won't be found due to the previous message, "couldn't be found" so the services won't appear.

joseluismantilla gravatar imagejoseluismantilla ( 2017-02-01 18:20:00 -0600 )edit

Try looking into:

systemctl--state=not-found --all

to see if it is displayed there.

Also, look into /etc/systemd for potential broken links or mention of apparmor.service.

masteroman gravatar imagemasteroman ( 2017-02-01 19:10:22 -0600 )edit

answered 2017-02-18 08:09:16 -0600


There is a bug report in the Fedora Bugzilla:

It should be fixed with the next systemd version.

Best regards, Speedy

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-01-31 13:11:24 -0600

Seen: 1,570 times

Last updated: Feb 03 '17