[Bug 1773515] Re: apparmor fails after removal of snapd

2021-08-31 Thread Ian Johnson
** Changed in: snapd Assignee: Zygmunt Krynicki (zyga) => (unassigned) ** Changed in: snapd Status: Confirmed => Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1773515 Title: app

[Bug 1773515] Re: apparmor fails after removal of snapd

2021-08-31 Thread Chris Carlin
One problem is that if snapd is removed via installation of a metapackage (as in my case) then there isn't really a point where the sysadmin makes the clear choice of purging vs removing. This bug is still biting, so I wonder if @zyga could revisit this issue. -- You received this bug notificati

[Bug 1773515] Re: apparmor fails after removal of snapd

2019-11-25 Thread lorenzp via ubuntu-bugs
I ran into this issue. Workaround fixed it perfectly. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1773515 Title: apparmor fails after removal of snapd To manage notifications about this bug go to

[Bug 1773515] Re: apparmor fails after removal of snapd

2019-10-29 Thread Zygmunt Krynicki
I have an unfinished patch that moves the snap-confine apparmor profile out of /etc entirely. I will try to finish and propose it. ** Changed in: snapd Status: Triaged => Confirmed ** Changed in: snapd Assignee: (unassigned) => Zygmunt Krynicki (zyga) -- You received this bug notifi

[Bug 1773515] Re: apparmor fails after removal of snapd

2019-01-07 Thread Jamie Strandboge
Zygmunt, you shouldn't override the dpkg behavior as there is an expectation on a Debian based system on how things in /etc are treated and what dpkg expects. That said, you could change the packaging in various ways. Eg, stop shipping it in /etc at all or disable the profile via /etc/apparmor.d/di

[Bug 1773515] Re: apparmor fails after removal of snapd

2019-01-06 Thread Zygmunt Krynicki
I have a hunch that this happens because /etc/* is marked as a configuration file and not automatically removed unless the package is purged. I think we could special case that file and remove it on regular package remove using postrm script. ** Also affects: snapd Importance: Undecided

[Bug 1773515] Re: apparmor fails after removal of snapd

2019-01-06 Thread Zygmunt Krynicki
Fink Nottle: AFAIK apparmor should not be breaking. The parser loads all profiles but doesn't stop on a profile that fails to load. The error message is displayed but remaining profiles are loaded anyway. It there some specific profile that you were expecting to see loaded that did not after you re

[Bug 1773515] Re: apparmor fails after removal of snapd

2019-01-06 Thread Fink Nottle
This is still broken. A key security feature of the OS breaks if you uninstall some garbage package. I wouldn't have noticed it if I hadn't seen the logs. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/

[Bug 1773515] Re: apparmor fails after removal of snapd

2018-07-26 Thread Gold Star
This has also bugged me for some number of months but the work around is really easy -- just use apt purge snapd instead of apt remove snapd What happens is that upon removal of the snapd package, dpkg sees that /var/lib/snapd/apparmor/snap-confine is empty and removes it which later breaks ap

[Bug 1773515] Re: apparmor fails after removal of snapd

2018-07-26 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: snapd (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1773515 Title: appa

[Bug 1773515] Re: apparmor fails after removal of snapd

2018-05-30 Thread Dale
@Jamie Thanks, I hadn't thought of purging to try and clean up from issues like this when there's a left over file but on hearing you say it then it seems so obvious! As I said above I manually removed the file to get apparmor loading (actually three of them in the /etc/apparmor folders) and not

[Bug 1773515] Re: apparmor fails after removal of snapd

2018-05-30 Thread Jamie Strandboge
May 26 10:36:35 ThisOne apparmor[2850]: AppArmor parser error for /etc/apparmor.d/usr.lib.snapd.snap-confine.real in /etc/apparmor.d/usr.lib.snapd.snap-confine.real at line 11: Could not open '/var/lib/snapd/apparmor/snap-confine' The above indicates that /etc/apparmor.d/usr.lib.snapd.snap-confine

[Bug 1773515] Re: apparmor fails after removal of snapd

2018-05-30 Thread Dale
"Does anything happen if you run: sudo dpkg --configure -a" Absolutely nothing. As I said I have manually removed the files, if that may affect it. Worth noting I run Ubuntu Studio, not vanilla Ubuntu or even Xubuntu, and sometimes configuration steps may get missed by that team (eg Xubuntu is a

[Bug 1773515] Re: apparmor fails after removal of snapd

2018-05-30 Thread Zygmunt Krynicki
** Changed in: snapd (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1773515 Title: apparmor fails after removal of snapd To manage notifications about this

[Bug 1773515] Re: apparmor fails after removal of snapd

2018-05-30 Thread Zygmunt Krynicki
The half-installed packages are probably the cause. Does anything happen if you run: sudo dpkg --configure -a -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1773515 Title: apparmor fails after remov

[Bug 1773515] Re: apparmor fails after removal of snapd

2018-05-30 Thread Dale
I do 99% of my package management with apt-get so it was removed via the command "sudo apt-get remove snapd" >From dkpg.log from just either side of the last mentions of snapd 2018-05-16 13:29:33 startup packages remove 2018-05-16 13:29:33 status installed snapd:amd64 2.32.8+18.04 2018-05-16 13:29

[Bug 1773515] Re: apparmor fails after removal of snapd

2018-05-30 Thread Dale
BTW as I don't plan to reinstall snapd the next day I did a find find /etc/apparmor.d/ -iname "*snap*" /etc/apparmor.d/usr.lib.snapd.snap-confine.real /etc/apparmor.d/cache/usr.lib.snapd.snap-confine.real /etc/apparmor.d/local/usr.lib.snapd.snap-confine.real and then manually deleted those files

[Bug 1773515] Re: apparmor fails after removal of snapd

2018-05-29 Thread Zygmunt Krynicki
The maintainer scripts definitely remove that file but perhaps something went wrong and the installation was only partial. Do you have any dpkg logs from the removal? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchp

[Bug 1773515] Re: apparmor fails after removal of snapd

2018-05-29 Thread Seth Arnold
** Summary changed: - apparmour fails after removal of snapd + apparmor fails after removal of snapd -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1773515 Title: apparmor fails after removal of sna