openntpd no longer installs -/etc/openntpd/ntpd.conf: Permission denied
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openntpd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
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/
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/
invoke-rc.d: initscript openntpd, action "start" failed.
dpkg: error processing openntpd (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
openntpd
E: Sub-process /usr/bin/dpkg returned an error code (1)
$ dpkg -i /var/cache/
(Reading database ... 136520 files and directories currently installed.)
Preparing to replace openntpd 3.9p1+debian-2 (using .../openntpd_
Stopping openntpd: ntpd.
Unpacking replacement openntpd ...
Setting up openntpd (3.9p1+debian-2) ...
Starting openntpd: /etc/openntpd/
invoke-rc.d: initscript openntpd, action "start" failed.
dpkg: error processing openntpd (--install):
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
$ apt-cache policy openntpd
openntpd:
Installed: 3.9p1+debian-2
Candidate: 3.9p1+debian-2
Version table:
*** 3.9p1+debian-2 0
500 http://
100 /var/lib/
$ 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
description: | updated |
I try to reproduce this issue in Karmic up to date and works fine for me. Could you update your sources (or select another mirror) and try to reinstall openntpd package?
Regards