Openntpd не может быть удален
Я установил openntpd, когда пытался установить Cloudstack на мою Ubuntu 14.10. Мне больше не нужен openntpd, но теперь я не могу удалить его. Я старался sudo apt-get
autoremove
а также purge
но я всегда получаю следующую ошибку:
deepal@Deepal-ASUS:~$ sudo apt-get autoremove openntpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
openntpd
0 upgraded, 0 newly installed, 1 to remove and 55 not upgraded.
1 not fully installed or removed.
After this operation, 198 kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 332328 files and directories currently installed.)
Removing openntpd (20080406p-8) ...
/usr/bin/deb-systemd-helper: error: unable to link /etc/systemd/system/openntpd.service to /dev/null: File exists
dpkg: error processing package openntpd (--remove):
subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
openntpd
E: Sub-process /usr/bin/dpkg returned an error code (1)
Теперь я также не могу удалить пару других пакетов, потому что openntpd кажется зависимостью, но не может быть удален. Кто-нибудь может мне помочь решить эту досадную проблему.
Спасибо.
1 ответ
Решение
Попробуйте переместить этот файл, чтобы сценарий после удаления был счастлив.
mv /etc/systemd/system/openntpd.service /tmp/