Author |
Message |
finotti
|
|
|
Post subject: Problem installing/removing sendmail
Posted: 22.08.2018, 19:26
|
|
Joined: 2010-09-12
Posts: 493
Status: Offline
|
|
I tried to install sendmail today, but the install failed:
Code:
# apt install sendmail
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
procmail sendmail-base sendmail-bin sendmail-cf sensible-mda
Suggested packages:
sendmail-doc rmail logcheck sasl2-bin
The following NEW packages will be installed:
procmail sendmail sendmail-base sendmail-bin sendmail-cf sensible-mda
0 upgraded, 6 newly installed, 0 to remove and 2 not upgraded.
Need to get 1,919 kB of archives.
After this operation, 4,213 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://cdn-fastly.deb.debian.org/debian sid/main amd64 sendmail-base all 8.15.2-11 [343 kB]
Get:2 http://cdn-fastly.deb.debian.org/debian sid/main amd64 sendmail-cf all 8.15.2-11 [291 kB]
Get:3 http://cdn-fastly.deb.debian.org/debian sid/main amd64 sendmail-bin amd64 8.15.2-11 [695 kB]
Get:4 http://cdn-fastly.deb.debian.org/debian sid/main amd64 procmail amd64 3.22-26 [142 kB]
Get:5 http://cdn-fastly.deb.debian.org/debian sid/main amd64 sensible-mda amd64 8.15.2-11 [225 kB]
Get:6 http://cdn-fastly.deb.debian.org/debian sid/main amd64 sendmail all 8.15.2-11 [223 kB]
Fetched 1,919 kB in 3s (641 kB/s)
Selecting previously unselected package sendmail-base.
(Reading database ... 1536936 files and directories currently installed.)
Preparing to unpack .../0-sendmail-base_8.15.2-11_all.deb ...
Unpacking sendmail-base (8.15.2-11) ...
Selecting previously unselected package sendmail-cf.
Preparing to unpack .../1-sendmail-cf_8.15.2-11_all.deb ...
Unpacking sendmail-cf (8.15.2-11) ...
Selecting previously unselected package sendmail-bin.
Preparing to unpack .../2-sendmail-bin_8.15.2-11_amd64.deb ...
Unpacking sendmail-bin (8.15.2-11) ...
Selecting previously unselected package procmail.
Preparing to unpack .../3-procmail_3.22-26_amd64.deb ...
Unpacking procmail (3.22-26) ...
Selecting previously unselected package sensible-mda.
Preparing to unpack .../4-sensible-mda_8.15.2-11_amd64.deb ...
Unpacking sensible-mda (8.15.2-11) ...
Selecting previously unselected package sendmail.
Preparing to unpack .../5-sendmail_8.15.2-11_all.deb ...
Unpacking sendmail (8.15.2-11) ...
Setting up procmail (3.22-26) ...
Setting up sendmail-base (8.15.2-11) ...
adduser: Warning: The home directory `/var/lib/sendmail' does not belong to the user you are currently creating.
update-inetd: warning: cannot add service, /etc/inetd.conf does not exist
update-inetd: warning: cannot add service, /etc/inetd.conf does not exist
update-inetd: warning: cannot add service, /etc/inetd.conf does not exist
update-inetd: error: --group is only relevant with --add
dpkg: error processing package sendmail-base (--configure):
installed sendmail-base package post-installation script subprocess returned error exit status 255
Processing triggers for systemd (239-7) ...
Setting up sendmail-cf (8.15.2-11) ...
Processing triggers for man-db (2.8.4-2) ...
dpkg: dependency problems prevent configuration of sendmail-bin:
sendmail-bin depends on sendmail-base (= 8.15.2-11); however:
Package sendmail-base is not configured yet.
dpkg: error processing package sendmail-bin (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of sensible-mda:
sensible-mda depends on sendmail-bin | mail-transport-agent; however:
Package sendmail-bin is not configured yet.
Package mail-transport-agent is not installed.
Package sendmail-bin which provides mail-transport-agent is not configured yet.
dpkg: error processing package sensible-mda (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of sendmail:
sendmail depends on sendmail-base; however:
Package sendmail-base is not configured yet.
sendmail depends on sendmail-bin; however:
Package sendmail-bin is not configured yet.
sendmail depends on sensible-mda; however:
Package sensible-mda is not configured yet.
dpkg: error processing package sendmail (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
sendmail-base
sendmail-bin
sensible-mda
sendmail
E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried:
Code:
# apt -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up sendmail-base (8.15.2-11) ...
update-inetd: warning: cannot add service, /etc/inetd.conf does not exist
update-inetd: warning: cannot add service, /etc/inetd.conf does not exist
update-inetd: warning: cannot add service, /etc/inetd.conf does not exist
update-inetd: error: --group is only relevant with --add
dpkg: error processing package sendmail-base (--configure):
installed sendmail-base package post-installation script subprocess returned error exit status 255
dpkg: dependency problems prevent configuration of sendmail-bin:
sendmail-bin depends on sendmail-base (= 8.15.2-11); however:
Package sendmail-base is not configured yet.
dpkg: error processing package sendmail-bin (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of sensible-mda:
sensible-mda depends on sendmail-bin | mail-transport-agent; however:
Package sendmail-bin is not configured yet.
Package mail-transport-agent is not installed.
Package sendmail-bin which provides mail-transport-agent is not configured yet.
dpkg: error processing package sensible-mda (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of sendmail:
sendmail depends on sendmail-base; however:
Package sendmail-base is not configured yet.
sendmail depends on sendmail-bin; however:
Package sendmail-bin is not configured yet.
sendmail depends on sensible-mda; however:
Package sensible-mda is not configured yet.
dpkg: error processing package sendmail (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
sendmail-base
sendmail-bin
sensible-mda
sendmail
E: Sub-process /usr/bin/dpkg returned an error code (1)
Also failed. 'dpkg --configure -a' also did not help.
Since it was not essential, I tried to remove the packages, but that also failed:
Code:
# apt remove procmail sendmail sendmail-base sendmail-bin sendmail-cf sensible-mda
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
procmail sendmail sendmail-base sendmail-bin sendmail-cf sensible-mda
0 upgraded, 0 newly installed, 6 to remove and 2 not upgraded.
4 not fully installed or removed.
After this operation, 4,213 kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 1537409 files and directories currently installed.)
Removing sendmail (8.15.2-11) ...
Removing sensible-mda (8.15.2-11) ...
Removing sendmail-bin (8.15.2-11) ...
Removing sendmail-base (8.15.2-11) ...
update-inetd: error: --group is only relevant with --add
dpkg: error processing package sendmail-base (--remove):
installed sendmail-base package pre-removal script subprocess returned error exit status 255
Removing procmail (3.22-26) ...
Removing sendmail-cf (8.15.2-11) ...
Errors were encountered while processing:
sendmail-base
E: Sub-process /usr/bin/dpkg returned an error code (1)
Any ideas of what could be wrong?
Some info about the system (updated today):
Code:
$ inxi -v3
System: Host: finottim83 Kernel: 4.18.0-3.slh.1-aptosid-amd64 x86_64 bits: 64 compiler: gcc v: 8.2.0
Desktop: KDE Plasma 5.13.4 Distro: aptosid 2013-01 - kde-full - (201305050307)
base: Debian GNU/Linux buster/sid
Machine: Type: Desktop System: LENOVO product: 10ANS0BH00 v: ThinkCentre M83 serial: <root required>
Mobo: LENOVO model: SHARKBAY v: SDK0E50510 WIN serial: <root required> UEFI: LENOVO v: FBKTA1AUS
date: 10/22/2014
CPU: Topology: Quad Core model: Intel Core i7-4790 bits: 64 type: MT MCP arch: Haswell rev: 3
L2 cache: 8192 KiB
flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 57469
Speed: 1896 MHz min/max: 800/4000 MHz Core speeds (MHz): 1: 1311 2: 1607 3: 1307 4: 1326 5: 1299
6: 1323 7: 1302 8: 1299
Graphics: Card-1: Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics driver: i915 v: kernel
bus ID: 00:02.0
Display: x11 server: X.Org 1.20.1 driver: intel resolution: 1920x1200~60Hz, 1280x1024~60Hz
OpenGL: renderer: Mesa DRI Intel Haswell Desktop v: 4.5 Mesa 18.1.6 direct render: Yes
Network: Card-1: Intel Ethernet I217-LM driver: e1000e v: 3.2.6-k port: f080 bus ID: 00:19
IF: eth0 state: up speed: 100 Mbps duplex: full mac: 44:39:c4:8f:0a:41
Drives: Local Storage: total: 942.70 GiB used: 643.73 GiB (68.3%)
Info: Processes: 361 Uptime: 1d 1h 01m Memory: 31.22 GiB used: 8.39 GiB (26.9%) Init: systemd runlevel: 5
Compilers: gcc: 8.2.0 Shell: bash v: 4.4.23 inxi: 3.0.20
|
|
|
|
|
|
slh
|
|
Post subject: RE: Problem installing/removing sendmail
Posted: 22.08.2018, 23:40
|
|
Joined: 2010-08-25
Posts: 962
Status: Offline
|
|
aptosid, by default, doesn't have any mail dæmon preinstalled, accordingly /var/lib/sendmail shouldn't exist, but must be part of a previous installation of a mailing dæmon. In general I'd advise against using sendmail, unless you really need this specific mailer, as it it more difficult to configure and keep safe than its alternatives, among them exim4 or postfix, just as well as a number of much smaller packages providing support for relayed mails (ssmtp, msmtp, ...).
But back on topic:
/etc/inetd.conf should be provided by openbsd-inetd or xinetd, sendmail may miss a dependency on one of these inetd implementations.
"ls -ld /var/lib/sendmail" should tell you the current owner of that directory. |
|
|
|
|
|
finotti
|
|
|
Post subject: Re: RE: Problem installing/removing sendmail
Posted: 23.08.2018, 04:08
|
|
Joined: 2010-09-12
Posts: 493
Status: Offline
|
|
slh wrote:
aptosid, by default, doesn't have any mail dæmon preinstalled, accordingly /var/lib/sendmail shouldn't exist, but must be part of a previous installation of a mailing dæmon. In general I'd advise against using sendmail, unless you really need this specific mailer, as it it more difficult to configure and keep safe than its alternatives, among them exim4 or postfix, just as well as a number of much smaller packages providing support for relayed mails (ssmtp, msmtp, ...).
Thanks for the pointers!
slh wrote:
But back on topic:
/etc/inetd.conf should be provided by openbsd-inetd or xinetd, sendmail may miss a dependency on one of these inetd implementations.
"ls -ld /var/lib/sendmail" should tell you the current owner of that directory.
It shows smmta.
Code:
# ls -ld /var/lib/sendmail
drwx------ 2 smmta smmta 4096 Aug 22 15:06 /var/lib/sendmail/
Changing owner and group to root did not help. I still cannot uninstall sendmail-base with apt... |
|
|
|
|
|
finotti
|
|
|
Post subject: RE: Re: RE: Problem installing/removing sendmail
Posted: 28.08.2018, 13:36
|
|
Joined: 2010-09-12
Posts: 493
Status: Offline
|
|
I am not sure it helps at all, but I've also tried install openbsd-inetd. It still does not help, but I get a different error message.
Code:
apt install sendmail
Reading package lists... Done
Building dependency tree
Reading state information... Done
sendmail is already the newest version (8.15.2-11).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up sendmail-base (8.15.2-11) ...
Usage: update-inetd [<option>...] <command> <argument>
Commands:
--add <entry> add <entry>
--remove <entry> remove <entry>
--enable <service>[,...] enable <service> (comma-separated list)
--disable <service>[,...] disable <service> (comma-separated list)
Options:
--group <group> add entry to section <group>
--pattern <pattern> use <pattern> to select a service
--comment-chars <characters> use <characters> as comment characters
--multi allow multiple removes/disables
--file <filename> use <filename> instead of /etc/inetd.conf
--verbose explain what is being done
--debug enables debugging mode
--help display this help and exit
--version output version information and exit
In order to prevent the shell from changing your <entry> definition you
have to quote the <entry> using single or double quotes. You can use tabs
(tab character or \t) and spaces to separate the fields of the <entry>.
Note: users must use --comment-chars '#' to disable a service for that setting
to survive upgrades. Package maintainer scripts should use the default
--comment-chars. See update-inetd(8) for details.
Usage: update-inetd [<option>...] <command> <argument>
Commands:
--add <entry> add <entry>
--remove <entry> remove <entry>
--enable <service>[,...] enable <service> (comma-separated list)
--disable <service>[,...] disable <service> (comma-separated list)
Options:
--group <group> add entry to section <group>
--pattern <pattern> use <pattern> to select a service
--comment-chars <characters> use <characters> as comment characters
--multi allow multiple removes/disables
--file <filename> use <filename> instead of /etc/inetd.conf
--verbose explain what is being done
--debug enables debugging mode
--help display this help and exit
--version output version information and exit
In order to prevent the shell from changing your <entry> definition you
have to quote the <entry> using single or double quotes. You can use tabs
(tab character or \t) and spaces to separate the fields of the <entry>.
Note: users must use --comment-chars '#' to disable a service for that setting
to survive upgrades. Package maintainer scripts should use the default
--comment-chars. See update-inetd(8) for details.
Usage: update-inetd [<option>...] <command> <argument>
Commands:
--add <entry> add <entry>
--remove <entry> remove <entry>
--enable <service>[,...] enable <service> (comma-separated list)
--disable <service>[,...] disable <service> (comma-separated list)
Options:
--group <group> add entry to section <group>
--pattern <pattern> use <pattern> to select a service
--comment-chars <characters> use <characters> as comment characters
--multi allow multiple removes/disables
--file <filename> use <filename> instead of /etc/inetd.conf
--verbose explain what is being done
--debug enables debugging mode
--help display this help and exit
--version output version information and exit
In order to prevent the shell from changing your <entry> definition you
have to quote the <entry> using single or double quotes. You can use tabs
(tab character or \t) and spaces to separate the fields of the <entry>.
Note: users must use --comment-chars '#' to disable a service for that setting
to survive upgrades. Package maintainer scripts should use the default
--comment-chars. See update-inetd(8) for details.
update-inetd: error: --group is only relevant with --add
dpkg: error processing package sendmail-base (--configure):
installed sendmail-base package post-installation script subprocess returned error exit status 255
dpkg: dependency problems prevent configuration of sendmail-bin:
sendmail-bin depends on sendmail-base (= 8.15.2-11); however:
Package sendmail-base is not configured yet.
dpkg: error processing package sendmail-bin (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of sensible-mda:
sensible-mda depends on sendmail-bin | mail-transport-agent; however:
Package sendmail-bin is not configured yet.
Package mail-transport-agent is not installed.
Package sendmail-bin which provides mail-transport-agent is not configured yet.
dpkg: error processing package sensible-mda (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of sendmail:
sendmail depends on sendmail-base; however:
Package sendmail-base is not configured yet.
sendmail depends on sendmail-bin; however:
Package sendmail-bin is not configured yet.
sendmail depends on sensible-mda; however:
Package sensible-mda is not configured yet.
dpkg: error processing package sendmail (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
sendmail-base
sendmail-bin
sensible-mda
sendmail
E: Sub-process /usr/bin/dpkg returned an error code (1)
Code:
# apt -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up sendmail-base (8.15.2-11) ...
Usage: update-inetd [<option>...] <command> <argument>
Commands:
--add <entry> add <entry>
--remove <entry> remove <entry>
--enable <service>[,...] enable <service> (comma-separated list)
--disable <service>[,...] disable <service> (comma-separated list)
Options:
--group <group> add entry to section <group>
--pattern <pattern> use <pattern> to select a service
--comment-chars <characters> use <characters> as comment characters
--multi allow multiple removes/disables
--file <filename> use <filename> instead of /etc/inetd.conf
--verbose explain what is being done
--debug enables debugging mode
--help display this help and exit
--version output version information and exit
In order to prevent the shell from changing your <entry> definition you
have to quote the <entry> using single or double quotes. You can use tabs
(tab character or \t) and spaces to separate the fields of the <entry>.
Note: users must use --comment-chars '#' to disable a service for that setting
to survive upgrades. Package maintainer scripts should use the default
--comment-chars. See update-inetd(8) for details.
Usage: update-inetd [<option>...] <command> <argument>
Commands:
--add <entry> add <entry>
--remove <entry> remove <entry>
--enable <service>[,...] enable <service> (comma-separated list)
--disable <service>[,...] disable <service> (comma-separated list)
Options:
--group <group> add entry to section <group>
--pattern <pattern> use <pattern> to select a service
--comment-chars <characters> use <characters> as comment characters
--multi allow multiple removes/disables
--file <filename> use <filename> instead of /etc/inetd.conf
--verbose explain what is being done
--debug enables debugging mode
--help display this help and exit
--version output version information and exit
In order to prevent the shell from changing your <entry> definition you
have to quote the <entry> using single or double quotes. You can use tabs
(tab character or \t) and spaces to separate the fields of the <entry>.
Note: users must use --comment-chars '#' to disable a service for that setting
to survive upgrades. Package maintainer scripts should use the default
--comment-chars. See update-inetd(8) for details.
Usage: update-inetd [<option>...] <command> <argument>
Commands:
--add <entry> add <entry>
--remove <entry> remove <entry>
--enable <service>[,...] enable <service> (comma-separated list)
--disable <service>[,...] disable <service> (comma-separated list)
Options:
--group <group> add entry to section <group>
--pattern <pattern> use <pattern> to select a service
--comment-chars <characters> use <characters> as comment characters
--multi allow multiple removes/disables
--file <filename> use <filename> instead of /etc/inetd.conf
--verbose explain what is being done
--debug enables debugging mode
--help display this help and exit
--version output version information and exit
In order to prevent the shell from changing your <entry> definition you
have to quote the <entry> using single or double quotes. You can use tabs
(tab character or \t) and spaces to separate the fields of the <entry>.
Note: users must use --comment-chars '#' to disable a service for that setting
to survive upgrades. Package maintainer scripts should use the default
--comment-chars. See update-inetd(8) for details.
update-inetd: error: --group is only relevant with --add
dpkg: error processing package sendmail-base (--configure):
installed sendmail-base package post-installation script subprocess returned error exit status 255
dpkg: dependency problems prevent configuration of sendmail-bin:
sendmail-bin depends on sendmail-base (= 8.15.2-11); however:
Package sendmail-base is not configured yet.
dpkg: error processing package sendmail-bin (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of sensible-mda:
sensible-mda depends on sendmail-bin | mail-transport-agent; however:
Package sendmail-bin is not configured yet.
Package mail-transport-agent is not installed.
Package sendmail-bin which provides mail-transport-agent is not configured yet.
dpkg: error processing package sensible-mda (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of sendmail:
sendmail depends on sendmail-base; however:
Package sendmail-base is not configured yet.
sendmail depends on sendmail-bin; however:
Package sendmail-bin is not configured yet.
sendmail depends on sensible-mda; however:
Package sensible-mda is not configured yet.
dpkg: error processing package sendmail (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
sendmail-base
sendmail-bin
sensible-mda
sendmail
E: Sub-process /usr/bin/dpkg returned an error code (1)
Code:
# apt remove procmail sendmail sendmail-base sendmail-bin sendmail-cf sensible-mda
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
procmail sendmail sendmail-base sendmail-bin sendmail-cf sensible-mda
0 upgraded, 0 newly installed, 6 to remove and 2 not upgraded.
4 not fully installed or removed.
After this operation, 4,213 kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 1562870 files and directories currently installed.)
Removing sendmail (8.15.2-11) ...
Removing sensible-mda (8.15.2-11) ...
Removing sendmail-bin (8.15.2-11) ...
Removing sendmail-base (8.15.2-11) ...
update-inetd: error: --group is only relevant with --add
dpkg: error processing package sendmail-base (--remove):
installed sendmail-base package pre-removal script subprocess returned error exit status 255
Removing procmail (3.22-26) ...
Removing sendmail-cf (8.15.2-11) ...
Errors were encountered while processing:
sendmail-base
E: Sub-process /usr/bin/dpkg returned an error code (1)
(I'm also asking for help in the debian-user mailing list...) |
|
|
|
|
|
finotti
|
|
|
Post subject: RE: Re: RE: Problem installing/removing sendmail
Posted: 28.08.2018, 14:45
|
|
Joined: 2010-09-12
Posts: 493
Status: Offline
|
|
OK, problem solved! Following the suggestion of given to me at the debian-user mailing list, I looked at the file sendmail-base.prerm. It had line
Code:
update-inetd --group MAIL --disable smtp,smtps,submission;
while I was getting
Code:
update-inetd: error: --group is only relevant with --add
Changing the line to
Code:
update-inetd --disable smtp,smtps,submission;
allowed me to uninstall it with dpkg.
Thanks slh for the help! |
|
|
|
|
|
slh
|
|
Post subject: RE: Re: RE: Problem installing/removing sendmail
Posted: 29.08.2018, 03:03
|
|
Joined: 2010-08-25
Posts: 962
Status: Offline
|
|
Great that you could get it solved, sorry that I've been distracted since the weekend. This looks like a quite nasty bug in sendmail (actually a couple different ones). |
|
|
|
|
|
finotti
|
|
Post subject: RE: Re: RE: Problem installing/removing sendmail
Posted: 29.08.2018, 15:49
|
|
Joined: 2010-09-12
Posts: 493
Status: Offline
|
|
No need to apologize. I greatly appreciate all the support! |
|
|
|
|
|
|
|