Re-enable dovecot.socket after a Dovecot package upgrade?

Hi,

Today, Dovecot package has been upgraded to 1:2.2.21-1. During the upgrade, the following message was displayed. Could someone from the yuno staff tell us if we need to re-enable dovecot.socket, as suggested?

Thanks!

dovecot (1:2.2.21-1) unstable; urgency=medium

This release disables the dovecot.socket systemd unit by default. The unit is
disabled only if the dovecot.service unit is already enabled, making sure
that dovecot will start on system boot. If you are upgrading dovecot and
previously relied on dovecot.socket and dovecot.service being both enabled,
please re-enable dovecot.socket manually using

systemctl enable dovecot.socket

Future package updates will not disable the socket unit again. For details
regarding this decision, please see Debian bugs #803915 and #814999.

-- Apollon Oikonomopoulos <[apoikos@debian.org](mailto:apoikos@debian.org)> Fri, 19 Feb 2016 16:54:27 +0200

Uh but how comes that you’re using an unstable version of this package ?

I don’t now :roll_eyes:
How could I switch back to the stable one?

Meh that doesn’t make sense to me … you message is talking about version 2.2.21, but stretch ships 2.2.27 so there’s something pretty weird with your apt source config …

Can you run and show the output of grep -nr 'deb' /etc/apt/sources.list*

Thank you for the support.

# grep -nr 'deb' /etc/apt/sources.list*
/etc/apt/sources.list:1:deb http://ftp.de.debian.org/debian stretch main contrib non-free
/etc/apt/sources.list:2:deb-src http://ftp.de.debian.org/debian stretch main contrib non-free
/etc/apt/sources.list:4:deb http://ftp.debian.org/debian/ stretch-updates main contrib non-free
/etc/apt/sources.list:5:deb-src http://ftp.debian.org/debian/ stretch-updates main contrib non-free
/etc/apt/sources.list:7:deb http://security.debian.org/ stretch/updates main contrib non-free
/etc/apt/sources.list:8:deb-src http://security.debian.org/ stretch/updates main contrib non-free
/etc/apt/sources.list.bak:1:deb http://ftp.de.debian.org/debian wheezy main contrib non-free
/etc/apt/sources.list.bak:2:deb-src http://ftp.de.debian.org/debian wheezy main contrib non-free
/etc/apt/sources.list.bak:4:deb http://ftp.debian.org/debian/ wheezy-updates main contrib non-free
/etc/apt/sources.list.bak:5:deb-src http://ftp.debian.org/debian/ wheezy-updates main contrib non-free
/etc/apt/sources.list.bak:7:deb http://security.debian.org/ wheezy/updates main contrib non-free
/etc/apt/sources.list.bak:8:deb-src http://security.debian.org/ wheezy/updates main contrib non-free
/etc/apt/sources.list.bak:10:deb http://repo.yunohost.org/ megusta main
/etc/apt/sources.list.d/yunohost.list:1:deb http://forge.yunohost.org/debian/ stretch stable
/etc/apt/sources.list.d/backports.list:1:#deb http://httpredir.debian.org/debian jessie-backports main
/etc/apt/sources.list.d/armbian.list:1:deb http://apt.armbian.com stretch main

Hmokay, so that looks like it’s a pretty old server. Which is nice in fact :wink: But you might want to clean some of those files. So I think you should run :

rm /etc/apt/sources.list.bak
rm /etc/apt/sources.list.d/backports.list

Then running this shouldn’t hurt :

apt update && apt dist-upgrade

Then, I dunno, maybe try this to install a proper “recent” version of dovecot (though that still smells mysterious) :

apt install dovecot-core=2.2.27-3+deb9u3

You are right, this server is running since 2014 :wink:

I cleaned up the sources, update / upgrade but when running the last command…

# apt install dovecot-core=2.2.27-3+deb9u3
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '2.2.27-3+deb9u3' for 'dovecot-core' was not found

What about this :

apt install dovecot-core=1:2.2.27-3+deb9u3

(notice the additional ‘1:’ though i have no idea what / why / how this stuff works in detail o.O)

definitely deeply mysterious:

# apt install dovecot-core=1:2.2.27-3+deb9u3
Reading package lists... Done
Building dependency tree        
Reading state information... Done
dovecot-core is already the newest version (1:2.2.27-3+deb9u3).
dovecot-core set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

# /usr/sbin/dovecot --version
2.2.27 (c0f36b0)

:crazy_face:

Uh well then it should be okay I guess ? x_X

Not sure when / why you had this thing about 2.2.21 :confused:

Ok, thank you for the support anyway.
It was an opportunity to do some cleaning!

1 Like