question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

snap-confine has elevated permissions and is not confined but should be. Refusing to continue to avoid permission escalation attacks

See original GitHub issue

Hello,

Trying to quick-start microk8s, yet running into following error:

toor@suey:~$ sudo snap install microk8s --classic
[sudo] password for toor: 
microk8s v1.13.0 from Canonical✓ installed
toor@suey:~$ sudo microk8s.start
sudo: microk8s.start: command not found
toor@suey:~$ microk8s.kubectl get all --all-namespaces
snap-confine has elevated permissions and is not confined but should be. Refusing to continue to avoid permission escalation attacks
toor@suey:~$ sudo snap refresh --channel=latest/beta microk8s
microk8s (beta) v1.13.1 from Canonical✓ refreshed
Channel latest/beta for microk8s is closed; temporarily forwarding to beta.
toor@suey:~$ microk8s.kubectl get all --all-namespaces
snap-confine has elevated permissions and is not confined but should be. Refusing to continue to avoid permission escalation attacks
toor@suey:~$ microk8s.inspect
snap-confine has elevated permissions and is not confined but should be. Refusing to continue to avoid permission escalation attacks
toor@suey:~$ sudo microk8s.kubectl get all --all-namespaces
sudo: microk8s.kubectl: command not found
toor@suey:~$ 

Please advise.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:4
  • Comments:34 (3 by maintainers)

github_iconTop GitHub Comments

112reactions
dramirez-qbcommented, Aug 22, 2019

@a1exus you can also fix it with

sudo apparmor_parser -r /etc/apparmor.d/*snap-confine*
sudo apparmor_parser -r /var/lib/snapd/apparmor/profiles/snap-confine*
66reactions
AzimAhmadzadehcommented, Aug 27, 2019

According to the conversation in [Ubuntu Forum], this particular answer, fixed my problem.

So, just install apparmor if don’t have it already, and then enable it by: systemctl enable --now apparmor.service

Note: For some reasons, it asks for password multiple times. In my case, 5 times!! Don’t give up! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

linux - Snap-confine has elevated permissions and is not ...
Snap -confine has elevated permissions and is not confined but should be. Refusing to continue to avoid permission escalation attacks · Ask ...
Read more >
[solved] snap-confine has elevated permissions and is not ...
snap -confine has elevated permissions and is not confined but should be. Refusing to continue to avoid permission escalation attacks.
Read more >
Kali 2021 snap-confine has elevated permissions and is not ...
Kali 2021 snap-confine has elevated permissions and is not confined but should be. Refusing to continue to avoid permission escalation attacks.
Read more >
snap-confine has elevated permissions and is not ... - GitHub
snap-confine has elevated permissions and is not confined but should be. Refusing to continue to avoid permission escalation attacks #249.
Read more >
snap-confine has elevated permissions and is not confined ...
snap -confine has elevated permissions and is not confined but should be. Refusing to continue to avoid permission escalation attacks.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found