Package: sendmail-base Version: 8.15.2-10 Severity: serious Due to a bug in the maintainer script, sendmail-base cannot be uninstalled:
rak@zeta:~$ sudo apt-get remove sendmail-base [sudo] password for rak: Reading package lists... Done Building dependency tree Reading state information... Done The following package was automatically installed and is no longer required: lockfile-progs Use 'sudo apt autoremove' to remove it. The following packages will be REMOVED: sendmail-base 0 upgraded, 0 newly installed, 1 to remove and 52 not upgraded. After this operation, 867 kB disk space will be freed. Do you want to continue? [Y/n] (Reading database ... 388617 files and directories currently installed.) Removing sendmail-base (8.15.2-10) ... rm: cannot remove '/etc/mail/m4': Is a directory dpkg: error processing package sendmail-base (--remove): installed sendmail-base package pre-removal script subprocess returned error exit status 123 Errors were encountered while processing: sendmail-base E: Sub-process /usr/bin/dpkg returned an error code (1) rak@zeta:~$ sudo apt-get purge sendmail-base Reading package lists... Done Building dependency tree Reading state information... Done The following package was automatically installed and is no longer required: lockfile-progs Use 'sudo apt autoremove' to remove it. The following packages will be REMOVED: sendmail-base* 0 upgraded, 0 newly installed, 1 to remove and 52 not upgraded. After this operation, 867 kB disk space will be freed. Do you want to continue? [Y/n] (Reading database ... 388617 files and directories currently installed.) Removing sendmail-base (8.15.2-10) ... rm: cannot remove '/etc/mail/m4': Is a directory dpkg: error processing package sendmail-base (--remove): installed sendmail-base package pre-removal script subprocess returned error exit status 123 Errors were encountered while processing: sendmail-base E: Sub-process /usr/bin/dpkg returned an error code (1) -- Package-specific info: Output of /usr/share/bug/sendmail-base/script: ls -alR /etc/mail: /etc/mail: total 24 drwxr-xr-x 1 root root 138 Mar 18 14:32 . drwxr-xr-x 1 root root 5364 Mar 18 13:50 .. -rw-r--r-- 1 root root 281 Jan 13 17:43 address.resolve drwxr-xr-x 1 root root 0 Jan 13 17:43 m4 drwxr-xr-x 1 root root 16 Mar 18 13:30 peers -rw-r--r-- 1 root root 12235 Mar 18 13:33 sendmail.conf -rw-r--r-- 1 root root 148 Jan 13 17:43 service.switch -rw-r--r-- 1 root root 179 Jan 13 17:43 service.switch-nodns /etc/mail/m4: total 0 drwxr-xr-x 1 root root 0 Jan 13 17:43 . drwxr-xr-x 1 root root 138 Mar 18 14:32 .. /etc/mail/peers: total 4 drwxr-xr-x 1 root root 16 Mar 18 13:30 . drwxr-xr-x 1 root root 138 Mar 18 14:32 .. -rw-r--r-- 1 root root 328 Jan 13 17:43 provider sendmail.conf: DAEMON_NETMODE="Static"; DAEMON_NETIF="eth0"; DAEMON_MODE="Daemon"; DAEMON_PARMS=""; DAEMON_HOSTSTATS="No"; DAEMON_MAILSTATS="No"; QUEUE_MODE="${DAEMON_MODE}"; QUEUE_INTERVAL="10m"; QUEUE_PARMS=""; MSP_MODE="Cron"; MSP_INTERVAL="20m"; MSP_PARMS=""; MSP_MAILSTATS="${DAEMON_MAILSTATS}"; MISC_PARMS=""; CRON_MAILTO="root"; CRON_PARMS=""; LOG_CMDS="No"; HANDS_OFF="No"; AGE_DATA=""; DAEMON_RUNASUSER="No"; DAEMON_STATS="${DAEMON_MAILSTATS}"; MSP_STATS="${MSP_MAILSTATS}"; -- System Information: Debian Release: buster/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.15.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_CA.UTF-8), LANGUAGE=en_CA.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_CA.UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages sendmail-base depends on: ii adduser 3.117 ii lockfile-progs 0.1.17+b1 ii m4 1.4.18-1 ii make 4.2.1-1 ii netbase 5.4 ii perl 5.26.1-5 sendmail-base recommends no packages. Versions of packages sendmail-base suggests: ii ca-certificates 20170717 pn logcheck <none> ii logrotate 3.11.0-0.1 pn resolvconf <none> pn sendmail-doc <none> -- no debconf information -- |)|/ Ryan Kavanagh | GPG: 4E46 9519 ED67 7734 268F |\|\ https://rak.ac | BD95 8F7B F8FC 4A11 C97A