Public bug reported: In a fresh 20.04 lxc/chroot install, then remove chrony:
# apt install chrony ... # apt install systemd-timesyncd Reading package lists... Done uilding dependency tree Reading state information... Done The following package was automatically installed and is no longer required: libfreetype6 Use 'apt autoremove' to remove it. The following packages will be REMOVED: chrony The following NEW packages will be installed: systemd-timesyncd 0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded. Need to get 27.9 kB of archives. After this operation, 290 kB disk space will be freed. Do you want to continue? [Y/n] Get:1 http://archive.ubuntu.com/ubuntu focal/main amd64 systemd-timesyncd amd64 245.4-4ubuntu1 [27.9 kB] Fetched 27.9 kB in 0s (951 kB/s) dpkg: chrony: dependency problems, but removing anyway as you requested: systemd depends on systemd-timesyncd | time-daemon; however: Package systemd-timesyncd is not installed. Package time-daemon is not installed. Package systemd-timesyncd which provides time-daemon is not installed. Package chrony which provides time-daemon is to be removed. (Reading database ... 31279 files and directories currently installed.) Removing chrony (3.5-6ubuntu5) ... postrm called with unknown argument `remove' dpkg: error processing package chrony (--remove): installed chrony package post-removal script subprocess returned error exit status 1 dpkg: too many errors, stopping Errors were encountered while processing: chrony Processing was halted because there were too many errors. E: Sub-process /usr/bin/dpkg returned an error code (1) root@ff-chrony:~# history 1 apt install chrony 2 apt install systemd-timesyncd 3 history root@ff-chrony:~# dpkg -l chrony Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==============-============-============-===================================================== rH chrony 3.5-6ubuntu5 amd64 Versatile implementation of the Network Time Protocol ** Affects: chrony (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1873810 Title: chrony package removal fails To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chrony/+bug/1873810/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
