[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: debian-user-digest Digest V2022 #584





Get TypeApp for Android
On 11 Jul 2022, at 01:31, debian-user-digest-request@lists.debian.org wrote:
Subject:(No subject)
debian-user-digest Digest    Volume 2022 : Issue 584

Today's Topics:
Re: Debian 11: MTA Exim4 not listeni [ "Gareth Evans" <donotspam@fastmail. ]
Re: Debian 11: MTA Exim4 not listeni [ Greg Wooledge <greg@wooledge.org> ]
Re: apt won't remove/ purge installe [ Tom Browder <tom.browder@gmail.com> ]
How can I find out why apt-get is ke [ L L <rotgo54321@gmail.com> ]
Re: apt won't remove/ purge installe [ Morgan Read <mstuff@read.org.nz> ]
What package I can find aclocal in? [ Igor Korot <ikorot01@gmail.com> ]
Re: apt won't remove/ purge installe [ Morgan Read <mstuff@read.org.nz> ]
Re: Debian 11: How to disable IPv6 [ Andy Smith <andy@strugglers.net> ]
Re: Debian 11: How to disable IPv6 [ Andy Smith <andy@strugglers.net> ]
Re: What package I can find aclocal [ Greg Wooledge <greg@wooledge.org> ]
Re: What package I can find aclocal [ Andy Smith <andy@strugglers.net> ]
Re: What package I can find aclocal [ Igor Korot <ikorot01@gmail.com> ]
Re: What package I can find aclocal [ Igor Korot <ikorot01@gmail.com> ]
Re: What package I can find aclocal [ Andy Smith <andy@strugglers.net> ]
Re: What package I can find aclocal [ Igor Korot <ikorot01@gmail.com> ]
libpq-dev package [ Igor Korot <ikorot01@gmail.com> ]
Re: libpq-dev package [ Andy Smith <andy@strugglers.net> ]
From:Gareth Evans
To:debian-user@lists.debian.org
Sent:Sun Jul 10 22:57:40 GMT+01:00 2022
Subject:Re: Debian 11: MTA Exim4 not listening to fetchmail
On Sun 10 Jul 2022, at 18:28, Greg Wooledge <greg@wooledge.org> wrote:

Mine contains these lines:

unicorn:~$ grep ::1 /etc/hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes

They were put there by Debian. I didn't touch them.

[I got the ::1 and localhost the wrong way around in my earlier reply.]


$ sudo fuser 25/tcp
25/tcp: 3778

$ ps -p 3778 -o comm=
exim4

$ cat /etc/hosts
127.0.0.1 localhost
127.0.0.1 hostname
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

$ telnet localhost 25
Trying ::1...
Connected to localhost.

$ sudo ss -lnt | grep :25
LISTEN 0 20 127.0.0.1:25 0.0.0.0:*
LISTEN 0 20 [::1]:25 [::]:*


$ sudo reboot
- set boot arg ipv6.disable=1
- NB ipv6 addresses still in /etc/hosts

$ telnet localhost 25
Trying 127.0.0.1...
Trying ::1...
telnet: Unable to connect to remote host: Address family not supported by protocol
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
$ sudo ss -lnt | grep :25
$


Just out of interest:

Now, comment out ipv6 in /etc/hosts

$ cat /etc/hosts
127.0.0.1 localhost
127.0.0.1 hostname
#::1 localhost ip6-localhost ip6-loopback
#ff02::1 ip6-allnodes
#ff02::2 ip6-allrouters


$ sudo reboot
- set boot arg ipv6.disable=1

$ telnet localhost 25
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
^^^^^^^^^^^^^^^^^^ ???
$ sudo nft list ruleset
$

$ ss -lnt | grep :25
$

$ ps -aux | grep exim
gives only "grep exim" - exim4 is not running

Does exim4 require ipv6?

I can't find any obvious such config with

sudo grep -Ri ipv6 /etc/exim4
sudo grep -Ri ip6 /etc/exim4
etc. etc.


In Roger's case, telnet seems to be outputting the same error as exim4 is panic logging, which occurs when ipv6 is disabled and "::1 ..." exists in /etc/hosts. Coincidence?

"When certain serious errors occur, Exim writes entries to its panic log. If the error is sufficiently disastrous, Exim bombs out afterwards"
https://www.exim.org/exim-html-current/doc/html/spec_html/ch-log_files.html

This suggests exim4 may not be listening having written to the panic log even if my ipv6 requirement is the result of some oddity.

Again:

On Sun 10 Jul 2022, at 15:38, Roger Price <debian@rogerprice.org> wrote:
I removed the ipv6.disable=1 and rebooted, but this made no difference.

IIUC, without a

$ sudo update-grub

before reboot, ipv6 is still disabled, assuming Roger described exactly what he did there.

Does this seem a reasonable assessment?

Best wishes,
Gareth
From:Greg Wooledge
To:debian-user@lists.debian.org
Sent:Sun Jul 10 23:05:45 GMT+01:00 2022
Subject:Re: Debian 11: MTA Exim4 not listening to fetchmail
On Sun, Jul 10, 2022 at 10:57:40PM +0100, Gareth Evans wrote:
$ sudo reboot
- set boot arg ipv6.disable=1
- NB ipv6 addresses still in /etc/hosts

$ telnet localhost 25
Trying 127.0.0.1...
Trying ::1...
telnet: Unable to connect to remote host: Address family not supported by protocol
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
$ sudo ss -lnt | grep :25
$

Does exim4 require ipv6?

Check its log file to be sure. The snippet you posted earlier seems
to say that it really does want to bind to loopback on both IPv4 and
IPv6.

Letting it do so seems like the path of least resistance.
From:Tom Browder
To:Morgan Read
Cc:debian-user@lists.debian.org
Sent:Sun Jul 10 23:16:40 GMT+01:00 2022
Subject:Re: apt won't remove/ purge installed package...
On Sun, Jul 10, 2022 at 15:48 Morgan Read <mstuff@read.org.nz> wrote:
I attempted to install firewalld and firewall-config with ufw installed
- perhaps not the wisest of moves - but, `apt install firewalld
firewall-config` ran anyway, and then hung, together with the whole
system and nil ssh access.

I had a similar situation, but I was able to a normal reboot and then do some cleanup because, fortunately, I had desktop access to that server. Do you?

-Tom
From:L L
To:debian-user@lists.debian.org
Sent:Sun Jul 10 23:24:11 GMT+01:00 2022
Subject:How can I find out why apt-get is keeping a package back?
How can I find out why apt-get is keeping a package back?
From:Morgan Read
To:debian-user@lists.debian.org
Sent:Sun Jul 10 23:07:57 GMT+01:00 2022
Subject:Re: apt won't remove/ purge installed package...
On 10/07/2022 9:50 pm, Morgan Read wrote:
I attempted to install firewalld and firewall-config with ufw installed
- perhaps not the wisest of moves - but, `apt install firewalld
firewall-config` ran anyway, and then hung, together with the whole
system and nil ssh access.

I'm now thrashing about in a rescue image with the system mounted on /mnt :
```
[RESCUE] root@vps-2493e43e:~ $ apt -o Dir=/mnt list firewalld
firewall-config
Listing... Done
firewall-config/stable,now 0.9.3-2 all [installed]
firewalld/stable,now 0.9.3-2 all [installed]
[RESCUE] root@vps-2493e43e:~ $ apt -o Dir=/mnt purge firewalld
firewall-config
...

dpkg: warning: ignoring request to remove firewall-config which isn't
installed
dpkg: warning: ignoring request to remove firewalld which isn't installed
...
Attempts at correction have included:
rm /mnt/var/cache/apt/*pkgcache.bin
apt-cache -o Dir=/mnt gencaches
dpkg --root=/mnt --update-avail
dpkg --root=/mnt --configure -a


After a number of iterations of these instructions:
https://www.maketecheasier.com/fix-broken-packages-ubuntu/
firewalld and its dependencies seem to be where they should be:
```
[RESCUE] root@vps-2493e43e:~ $ apt -o Dir=/mnt list firewalld
firewall-config gir1.2-atk-1.0 gir1.2-gdkpixbuf-2.0 gir1.2-gtk-3.0
gir1.2-harfbuzz-0.0 gir1.2-nm-1.0 gir1.2-pango-1.0 ipset libipset13
libnftables1 libpangoxft-1.0-0 libxft2 python3-decorator
python3-firewall python3-nftables python3-selinux python3-slip
python3-slip-dbus
Listing... Done
firewall-config/stable 0.9.3-2 all
firewalld/stable 0.9.3-2 all
gir1.2-atk-1.0/stable 2.36.0-2 amd64
gir1.2-gdkpixbuf-2.0/stable 2.42.2+dfsg-1 amd64
gir1.2-gtk-3.0/stable 3.24.24-4+deb11u2 amd64
gir1.2-harfbuzz-0.0/stable 2.7.4-1 amd64
gir1.2-nm-1.0/stable 1.30.6-1+deb11u1 amd64
gir1.2-pango-1.0/stable 1.46.2-3 amd64
ipset/stable 7.10-1 amd64
libipset13/stable 7.10-1 amd64
libnftables1/stable 0.9.8-3.1 amd64
libpangoxft-1.0-0/stable 1.46.2-3 amd64
libxft2/stable 2.3.2-2 amd64
python3-decorator/stable 4.4.2-2 all
python3-firewall/stable 0.9.3-2 all
python3-nftables/stable 0.9.8-3.1 amd64
python3-selinux/stable 3.1-3 amd64
python3-slip-dbus/stable 0.6.5-2 all
python3-slip/stable 0.6.5-2 all
[RESCUE] root@vps-2493e43e:~ $
```
Thx

Reply to: