[Bug 1011998] Re: package openntpd 3.9p1+debian-9 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
@dralbert that plus “sudo /etc/init.d/apparmor reload” did the trick for me. Thanks! I’ll put that into openntpd.preinst in my own OpenNTPD packages. ** Summary changed: - package openntpd 3.9p1+debian-9 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1 + package openntpd 3.9p1+debian-9 failed to install/upgrade due to apparmor: /etc/openntpd/ntpd.conf: Permission denied -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1011998 Title: package openntpd 3.9p1+debian-9 failed to install/upgrade due to apparmor: /etc/openntpd/ntpd.conf: Permission denied To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openntpd/+bug/1011998/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1011998] Re: package openntpd 3.9p1+debian-9 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
I needed to remove /etc/apparmor.d/cache/usr.sbin.ntpd -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1011998 Title: package openntpd 3.9p1+debian-9 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openntpd/+bug/1011998/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1011998] Re: package openntpd 3.9p1+debian-9 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
I hit this bug and got in a nasty loop with a package that requires openntpd or ntp (resulting in broken install when attempting to switch between them). This is the mythtv-backend-master package. And I can't get this workaround to work, removing both packages then rebooting and trying to install openntpd again gave the permission denied error. I needed to delete /etc/apparmour.d/usr.sbin.ntpd manually. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1011998 Title: package openntpd 3.9p1+debian-9 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openntpd/+bug/1011998/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1011998] Re: package openntpd 3.9p1+debian-9 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: openntpd (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/1011998 Title: package openntpd 3.9p1+debian-9 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openntpd/+bug/1011998/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1011998] Re: package openntpd 3.9p1+debian-9 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
Status confirmed. Problem is related to previusly installed ntp package. Commandline: apt-get install openntpd Install: openntpd:amd64 (3.9p1+debian-9) Upgrade: aiccu:amd64 (20070115-14.1ubuntu3, 20070115-14.1ubuntu3) Remove: ntp:amd64 (4.2.6.p3+dfsg-1ubuntu3.1) ^ Error: Sub-process /usr/bin/dpkg returned an error code (2) Syslog: type=1400 audit(1339489779.835:36): apparmor=DENIED operation=open parent=4844 profile=/usr/sbin/ntpd name=/etc/openntpd/ntpd.conf pid=4846 comm=ntpd requested_mask=r denied_mask=r fsuid=0 ouid=0 During instalation of ntp package in apparmor is instaled profile for ntpd from ntp package daemon. During openntp package instalation files related to ntp package are removed (including profile file in apparmor) but this profile is not removed from apparmor daemon. As workaround for installation openntp if ntp has been previusly installed 1 - remove ntp package with installation 2 - reload system 3 - install openntp -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1011998 Title: package openntpd 3.9p1+debian-9 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openntpd/+bug/1011998/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1011998] Re: package openntpd 3.9p1+debian-9 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1011998 Title: package openntpd 3.9p1+debian-9 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openntpd/+bug/1011998/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1011998] Re: package openntpd 3.9p1+debian-9 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
** Tags removed: need-duplicate-check -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1011998 Title: package openntpd 3.9p1+debian-9 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openntpd/+bug/1011998/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs