Your message dated Sat, 3 Sep 2022 11:33:15 +0200
with message-id <3f00c6c1-435f-b0bb-0bef-b3083b60a...@debian.org>
and subject line Re: Bug#1019008: Masked systemd-resolved.service causes 
systemd package upgrades to break
has caused the Debian Bug report #1019008,
regarding Masked systemd-resolved.service causes systemd package upgrades to 
break
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1019008: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1019008
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: systemd
Version: 247.3-7+deb11u1 amd64
Tags: systemd, systemd-resolved, masked, apt, upgrade

Hi, I am running Debian 11 (bullseye) with proposed-updates enabled.
The package version reported here is currently from proposed updates.

I have systemd-resolved.service masked in my system and
/etc/resolv.conf symlink is removed and replaced with a empty
/etc/resolv.conf file managed by Network Manager (rc-manager=file
config).

Whenever there is a systemd package upgrade available along with other
packages system upgrade fails. I have to manually reconfigure the
packages using dpkg to complete the upgrade. I think any dependency on
systemd services being enabled or running or restart-able during
package upgrade should be removed. Below is log from unattended-
upgrades dpkg at shutdown.

shubhra@shubhra-pc:~$ cat /var/log/unattended-upgrades/unattended-
upgrades-dpkg.log
Log started: 2022-09-03  03:46:53
Preconfiguring packages ...
Preconfiguring packages ...
(Reading database ... 182296 files and directories currently
installed.)
Preparing to unpack .../libc6_2.31-13+deb11u4_amd64.deb ...
Unpacking libc6:amd64 (2.31-13+deb11u4) over (2.31-13+deb11u3) ...
Setting up libc6:amd64 (2.31-13+deb11u4) ...
(Reading database ... 182296 files and directories currently
installed.)
Preparing to unpack .../libc-bin_2.31-13+deb11u4_amd64.deb ...
Unpacking libc-bin (2.31-13+deb11u4) over (2.31-13+deb11u3) ...
Setting up libc-bin (2.31-13+deb11u4) ...
(Reading database ... 182296 files and directories currently
installed.)
Preparing to unpack .../libsystemd0_247.3-7+deb11u1_amd64.deb ...
Unpacking libsystemd0:amd64 (247.3-7+deb11u1) over (247.3-7) ...
Setting up libsystemd0:amd64 (247.3-7+deb11u1) ...
(Reading database ... 182296 files and directories currently
installed.)
Preparing to unpack .../systemd-timesyncd_247.3-7+deb11u1_amd64.deb ...
Unpacking systemd-timesyncd (247.3-7+deb11u1) over (247.3-7) ...
Preparing to unpack .../libpam-systemd_247.3-7+deb11u1_amd64.deb ...
Unpacking libpam-systemd:amd64 (247.3-7+deb11u1) over (247.3-7) ...
Preparing to unpack .../systemd_247.3-7+deb11u1_amd64.deb ...
Unpacking systemd (247.3-7+deb11u1) over (247.3-7) ...
Preparing to unpack .../udev_247.3-7+deb11u1_amd64.deb ...
Unpacking udev (247.3-7+deb11u1) over (247.3-7) ...
Preparing to unpack .../libudev1_247.3-7+deb11u1_amd64.deb ...
Unpacking libudev1:amd64 (247.3-7+deb11u1) over (247.3-7) ...
Setting up libudev1:amd64 (247.3-7+deb11u1) ...
Setting up systemd (247.3-7+deb11u1) ...
Failed to try-restart systemd-resolved.service: Unit systemd-
resolved.service is masked.
(Reading database ... 182296 files and directories currently
installed.)
Preparing to unpack .../0-systemd-sysv_247.3-7+deb11u1_amd64.deb ...
Unpacking systemd-sysv (247.3-7+deb11u1) over (247.3-7) ...
Preparing to unpack .../1-libavahi-ui-gtk3-0_0.8-5+deb11u1_amd64.deb
...
Unpacking libavahi-ui-gtk3-0:amd64 (0.8-5+deb11u1) over (0.8-5) ...
Preparing to unpack .../2-libavahi-gobject0_0.8-5+deb11u1_amd64.deb ...
Unpacking libavahi-gobject0:amd64 (0.8-5+deb11u1) over (0.8-5) ...
Preparing to unpack .../3-libavahi-glib1_0.8-5+deb11u1_amd64.deb ...
Unpacking libavahi-glib1:amd64 (0.8-5+deb11u1) over (0.8-5) ...
Preparing to unpack .../4-libavahi-client3_0.8-5+deb11u1_amd64.deb ...
Unpacking libavahi-client3:amd64 (0.8-5+deb11u1) over (0.8-5) ...
Preparing to unpack .../5-avahi-daemon_0.8-5+deb11u1_amd64.deb ...
Unpacking avahi-daemon (0.8-5+deb11u1) over (0.8-5) ...
Preparing to unpack .../6-libavahi-core7_0.8-5+deb11u1_amd64.deb ...
Unpacking libavahi-core7:amd64 (0.8-5+deb11u1) over (0.8-5) ...
Preparing to unpack .../7-libavahi-common3_0.8-5+deb11u1_amd64.deb ...
Unpacking libavahi-common3:amd64 (0.8-5+deb11u1) over (0.8-5) ...
Preparing to unpack .../8-libavahi-common-data_0.8-5+deb11u1_amd64.deb
...
Unpacking libavahi-common-data:amd64 (0.8-5+deb11u1) over (0.8-5) ...
Preparing to unpack .../9-libk5crypto3_1.18.3-6+deb11u2_amd64.deb ...
Unpacking libk5crypto3:amd64 (1.18.3-6+deb11u2) over (1.18.3-6+deb11u1)
...
Setting up libk5crypto3:amd64 (1.18.3-6+deb11u2) ...
(Reading database ... 182296 files and directories currently
installed.)
Preparing to unpack .../libkrb5support0_1.18.3-6+deb11u2_amd64.deb ...
Unpacking libkrb5support0:amd64 (1.18.3-6+deb11u2) over (1.18.3-
6+deb11u1) ...
Setting up libkrb5support0:amd64 (1.18.3-6+deb11u2) ...
(Reading database ... 182296 files and directories currently
installed.)
Preparing to unpack .../libkrb5-3_1.18.3-6+deb11u2_amd64.deb ...
Unpacking libkrb5-3:amd64 (1.18.3-6+deb11u2) over (1.18.3-6+deb11u1)
...
Setting up libkrb5-3:amd64 (1.18.3-6+deb11u2) ...
(Reading database ... 182296 files and directories currently
installed.)
Preparing to unpack .../libgssapi-krb5-2_1.18.3-6+deb11u2_amd64.deb ...
Unpacking libgssapi-krb5-2:amd64 (1.18.3-6+deb11u2) over (1.18.3-
6+deb11u1) ...
Setting up libgssapi-krb5-2:amd64 (1.18.3-6+deb11u2) ...
(Reading database ... 182296 files and directories currently
installed.)
Preparing to unpack .../libpcre2-8-0_10.36-2+deb11u1_amd64.deb ...
Unpacking libpcre2-8-0:amd64 (10.36-2+deb11u1) over (10.36-2) ...
Setting up libpcre2-8-0:amd64 (10.36-2+deb11u1) ...
(Reading database ... 182296 files and directories currently
installed.)
Preparing to unpack .../zlib1g_1%3a1.2.11.dfsg-2+deb11u2_amd64.deb ...
Unpacking zlib1g:amd64 (1:1.2.11.dfsg-2+deb11u2) over (1:1.2.11.dfsg-
2+deb11u1) ...
Setting up zlib1g:amd64 (1:1.2.11.dfsg-2+deb11u2) ...
(Reading database ... 182296 files and directories currently
installed.)
Preparing to unpack .../00-libc-l10n_2.31-13+deb11u4_all.deb ...
Unpacking libc-l10n (2.31-13+deb11u4) over (2.31-13+deb11u3) ...
Preparing to unpack .../01-locales_2.31-13+deb11u4_all.deb ...
Unpacking locales (2.31-13+deb11u4) over (2.31-13+deb11u3) ...
Preparing to unpack .../02-chromium-l10n_105.0.5195.52-
1~deb11u1_all.deb ...
Unpacking chromium-l10n (105.0.5195.52-1~deb11u1) over (104.0.5112.101-
1~deb11u1) ...
Preparing to unpack .../03-chromium_105.0.5195.52-1~deb11u1_amd64.deb
...
Unpacking chromium (105.0.5195.52-1~deb11u1) over (104.0.5112.101-
1~deb11u1) ...
dpkg: warning: unable to delete old directory
'/etc/chromium/policies/recommended': Directory not empty
dpkg: warning: unable to delete old directory '/etc/chromium/policies':
Directory not empty
Preparing to unpack .../04-chromium-common_105.0.5195.52-
1~deb11u1_amd64.deb ...
Unpacking chromium-common (105.0.5195.52-1~deb11u1) over
(104.0.5112.101-1~deb11u1) ...
Preparing to unpack .../05-chromium-sandbox_105.0.5195.52-
1~deb11u1_amd64.deb ...
Unpacking chromium-sandbox (105.0.5195.52-1~deb11u1) over
(104.0.5112.101-1~deb11u1) ...
Selecting previously unselected package libxnvctrl0:amd64.
Preparing to unpack .../06-libxnvctrl0_470.103.01-1~deb11u1_amd64.deb
...
Unpacking libxnvctrl0:amd64 (470.103.01-1~deb11u1) ...
Preparing to unpack .../07-libxslt1.1_1.1.34-4+deb11u1_amd64.deb ...
Unpacking libxslt1.1:amd64 (1.1.34-4+deb11u1) over (1.1.34-4) ...
Preparing to unpack .../08-firefox-esr-l10n-en-gb_91.13.0esr-
1~deb11u1_all.deb ...
Unpacking firefox-esr-l10n-en-gb (91.13.0esr-1~deb11u1) over
(91.12.0esr-1~deb11u1) ...
Preparing to unpack .../09-firefox-esr_91.13.0esr-1~deb11u1_amd64.deb
...
Leaving 'diversion of /usr/bin/firefox to /usr/bin/firefox.real by
firefox-esr'
Unpacking firefox-esr (91.13.0esr-1~deb11u1) over (91.12.0esr-
1~deb11u1) ...
Preparing to unpack .../10-gir1.2-webkit2-4.0_2.36.7-
1~deb11u1_amd64.deb ...
Unpacking gir1.2-webkit2-4.0:amd64 (2.36.7-1~deb11u1) over (2.36.6-
1~deb11u1) ...
Preparing to unpack .../11-gir1.2-javascriptcoregtk-4.0_2.36.7-
1~deb11u1_amd64.deb ...
Unpacking gir1.2-javascriptcoregtk-4.0:amd64 (2.36.7-1~deb11u1) over
(2.36.6-1~deb11u1) ...
Preparing to unpack .../12-libwebkit2gtk-4.0-37_2.36.7-
1~deb11u1_amd64.deb ...
Unpacking libwebkit2gtk-4.0-37:amd64 (2.36.7-1~deb11u1) over (2.36.6-
1~deb11u1) ...
Preparing to unpack .../13-libjavascriptcoregtk-4.0-18_2.36.7-
1~deb11u1_amd64.deb ...
Unpacking libjavascriptcoregtk-4.0-18:amd64 (2.36.7-1~deb11u1) over
(2.36.6-1~deb11u1) ...
Preparing to unpack .../14-libhttp-parser2.9_2.9.4-4+deb11u1_amd64.deb
...
Unpacking libhttp-parser2.9:amd64 (2.9.4-4+deb11u1) over (2.9.4-4) ...
Preparing to unpack .../15-libnss-myhostname_247.3-7+deb11u1_amd64.deb
...
Unpacking libnss-myhostname:amd64 (247.3-7+deb11u1) over (247.3-7) ...
Preparing to unpack .../16-libpcre2-16-0_10.36-2+deb11u1_amd64.deb ...
Unpacking libpcre2-16-0:amd64 (10.36-2+deb11u1) over (10.36-2) ...
Preparing to unpack .../17-publicsuffix_20220811.1734-0+deb11u1_all.deb
...
Unpacking publicsuffix (20220811.1734-0+deb11u1) over (20211207.1025-
0+deb11u1) ...
Setting up systemd-sysv (247.3-7+deb11u1) ...
Setting up libc-l10n (2.31-13+deb11u4) ...
Setting up libjavascriptcoregtk-4.0-18:amd64 (2.36.7-1~deb11u1) ...
Setting up gir1.2-javascriptcoregtk-4.0:amd64 (2.36.7-1~deb11u1) ...
Setting up locales (2.31-13+deb11u4) ...
Generating locales (this might take a while)...
  en_IN.UTF-8... done
Generation complete.
Setting up chromium-sandbox (105.0.5195.52-1~deb11u1) ...
Setting up libpcre2-16-0:amd64 (10.36-2+deb11u1) ...
Setting up libxnvctrl0:amd64 (470.103.01-1~deb11u1) ...
Setting up libavahi-common-data:amd64 (0.8-5+deb11u1) ...
Setting up systemd-timesyncd (247.3-7+deb11u1) ...
Failed to restart systemd-timesyncd.service: Transaction for systemd-
timesyncd.service/restart is destructive (system-systemd\x2dfsck.slice
has 'stop' job queued, but 'start' is included in transaction).
See system logs and 'systemctl status systemd-timesyncd.service' for
details.
Setting up udev (247.3-7+deb11u1) ...
Failed to reload daemon: Connection reset by peer
Setting up libnss-myhostname:amd64 (247.3-7+deb11u1) ...
Setting up libxslt1.1:amd64 (1.1.34-4+deb11u1) ...
Setting up libpam-systemd:amd64 (247.3-7+deb11u1) ...
E:Sub-process /usr/bin/dpkg exited unexpectedly
Log ended: 2022-09-03  04:11:39


-- 

Regards,

Shubhra Prakash Nandi

Founder and CEO,
ISUB SOFTWARES (OPC) PRIVATE LIMITED

Phone: +91-9871482815

--- End Message ---
--- Begin Message ---

Am 03.09.22 um 09:11 schrieb Shubhra Prakash Nandi:
Setting up systemd (247.3-7+deb11u1) ...
Failed to try-restart systemd-resolved.service: Unit systemd-
resolved.service is masked.

This is harmless and can be ignored.
It's not what's causing the upgrade failure.

Setting up systemd-timesyncd (247.3-7+deb11u1) ...
Failed to restart systemd-timesyncd.service: Transaction for systemd-
timesyncd.service/restart is destructive (system-systemd\x2dfsck.slice
has 'stop' job queued, but 'start' is included in transaction).
See system logs and 'systemctl status systemd-timesyncd.service' for
details.


You were scheduling the upgrade during shutdown and now you have an ongoing systemd transactions with conflicting requirements: postinst wants to restart systemd-timesyncd, shutdown.target scheduled a stop of the service.

This is not a bug that is specific to the systemd (or systemd-timesyncd) package. It could be argued that it's rather an unattended-upgrades issue. That said, I'm going to close this bug report.

Regards,
Michael

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


--- End Message ---

Reply via email to