[Bug 458061] Re: openntpd no longer installs -/etc/openntpd/ntpd.conf: Permission denied

Jean-Baptiste Lallement jeanbaptiste.lallement at gmail.com
Tue Dec 8 22:31:34 UTC 2009


** Description changed:

- OpenNTPd does not install from the package repository.  ntp and ntpdate install / uninstall just fine.  
+ OpenNTPd does not install from the package repository.  ntp and ntpdate install / uninstall just fine.
  The error message for openntpd:
  
-    Setting up openntpd (3.9p1+debian-2) ... 
-    Starting openntpd: /etc/openntpd/ntpd.conf: Permission denied
-    invoke-rc.d: initscript openntpd, action "start" failed.
-    dpkg: error processing openntpd (--install):
-     subprocess installed post-installation script returned error exit status 1
+    Setting up openntpd (3.9p1+debian-2) ...
+    Starting openntpd: /etc/openntpd/ntpd.conf: Permission denied
+    invoke-rc.d: initscript openntpd, action "start" failed.
+    dpkg: error processing openntpd (--install):
+     subprocess installed post-installation script returned error exit status 1
  
  This happens even after purging:
  $ apt-get purge openntpd
  
  I would expect the package manager to be able to install openntpd
  without errors or else suggest a way to clear the problem out of the
  way.
  
  $  sudo apt-get install openntpd
  Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  openntpd is already the newest version.
  0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  1 not fully installed or removed.
  After this operation, 0B of additional disk space will be used.
  Setting up openntpd (3.9p1+debian-2) ...
  Starting openntpd: /etc/openntpd/ntpd.conf: Permission denied
  invoke-rc.d: initscript openntpd, action "start" failed.
  dpkg: error processing openntpd (--configure):
-  subprocess installed post-installation script returned error exit status 1
+  subprocess installed post-installation script returned error exit status 1
  Errors were encountered while processing:
-  openntpd
+  openntpd
  E: Sub-process /usr/bin/dpkg returned an error code (1)
  
  $ dpkg -i  /var/cache/apt/archives/openntpd_3.9p1+debian-2_i386.deb
  (Reading database ... 136520 files and directories currently installed.)
  Preparing to replace openntpd 3.9p1+debian-2 (using .../openntpd_3.9p1+debian-2_i386.deb) ...
  Stopping openntpd: ntpd.
  Unpacking replacement openntpd ...
  Setting up openntpd (3.9p1+debian-2) ...
  Starting openntpd: /etc/openntpd/ntpd.conf: Permission denied
  invoke-rc.d: initscript openntpd, action "start" failed.
  dpkg: error processing openntpd (--install):
-  subprocess installed post-installation script returned error exit status 1
+  subprocess installed post-installation script returned error exit status 1
  Processing triggers for man-db ...
  Processing triggers for sreadahead ...
  Errors were encountered while processing:
-  openntpd
+  openntpd
  
  $ apt-cache policy openntpd
  openntpd:
-   Installed: 3.9p1+debian-2
-   Candidate: 3.9p1+debian-2
-   Version table:
-  *** 3.9p1+debian-2 0
-         500 http://fi.archive.ubuntu.com karmic/universe Packages
-         100 /var/lib/dpkg/status
+   Installed: 3.9p1+debian-2
+   Candidate: 3.9p1+debian-2
+   Version table:
+  *** 3.9p1+debian-2 0
+         500 http://fi.archive.ubuntu.com karmic/universe Packages
+         100 /var/lib/dpkg/status
  
  $  lsb_release -rd
  Description:    Ubuntu 9.10
  Release:        9.10
+ 
+ 
+ :: DESCRIPTION ::
+ openntpd doesn't install due to remaining ntp apparmor profile after ntp removal (not purged)
+ 
+ :: HOW TO REPRODUCE ::
+ $ apt-get install ntp
+ $ invoke-rc.d apparmor restart
+ $ apt-get install openntpd
+ 
+ install fails with the error above
+ 
+ :: WORKAROUND ::
+ $ dpkg --purge ntp
+ $ invoke-rc.d apparmor restart
+ $ apt-get install openntpd

-- 
openntpd no longer installs -/etc/openntpd/ntpd.conf: Permission denied
https://bugs.launchpad.net/bugs/458061
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


More information about the universe-bugs mailing list