← Back to team overview

dx-packages team mailing list archive

[Bug 1773859] Re: upgrades to 18.04 fail

 

Verified with systemd 237-3ubuntu10.31:

root@x-lp1773859:~#  apt install ./systemd-shim_10-3_amd64.deb
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'systemd-shim' instead of './systemd-shim_10-3_amd64.deb'
The following package was automatically installed and is no longer required:
  libfreetype6
Use 'apt autoremove' to remove it.
Suggested packages:
  pm-utils
The following packages will be upgraded:
  systemd-shim
1 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Need to get 0 B/20.0 kB of archives.
After this operation, 6144 B of additional disk space will be used.
Get:1 /root/systemd-shim_10-3_amd64.deb systemd-shim amd64 10-3 [20.0 kB]
(Reading database ... 25776 files and directories currently installed.)
Preparing to unpack .../systemd-shim_10-3_amd64.deb ...
Leaving 'diversion of /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service to /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service.systemd by systemd-shim'
Unpacking systemd-shim (10-3) over (9-1bzr4ubuntu1) ...
Processing triggers for dbus (1.10.6-1ubuntu3.4) ...
Setting up systemd-shim (10-3) ...
N: Can't drop privileges for downloading as file '/root/systemd-shim_10-3_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
root@x-lp1773859:~#  sed 's/xenial/bionic/' -i /etc/apt/sources.list
root@x-lp1773859:~#  apt update
Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
...

Get:32 http://security.ubuntu.com/ubuntu bionic-security/multiverse Translation-en [2428 B]   
Fetched 19.7 MB in 3s (5284 kB/s)                      
Reading package lists... Done
Building dependency tree       
Reading state information... Done
396 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@x-lp1773859:~# sed -i s/backports/proposed/ /etc/apt/sources.list
root@x-lp1773859:~# apt update
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://archive.ubuntu.com/ubuntu bionic-updates InRelease         
Get:3 http://archive.ubuntu.com/ubuntu bionic-proposed InRelease [242 kB]
Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease
...
Get:12 http://archive.ubuntu.com/ubuntu bionic-proposed/multiverse Translation-en [572 B]
Fetched 401 kB in 1s (349 kB/s)          
Reading package lists... Done
Building dependency tree       
Reading state information... Done
396 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@x-lp1773859:~# apt install systemd
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  cgmanager libcgmanager0 libfreetype6
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  libargon2-0 libc-bin libc6 libcryptsetup12 libgcrypt20 libgpg-error0 libip4tc0 libjson-c3 libpam-systemd
  libsystemd0 locales networkd-dispatcher
Suggested packages:
  glibc-doc rng-tools iw | wireless-tools systemd-container
The following packages will be REMOVED:
  systemd-shim
The following NEW packages will be installed:
  libargon2-0 libcryptsetup12 libip4tc0 libjson-c3 networkd-dispatcher
The following packages will be upgraded:
  libc-bin libc6 libgcrypt20 libgpg-error0 libpam-systemd libsystemd0 locales systemd
8 upgraded, 5 newly installed, 1 to remove and 388 not upgraded.
Need to get 11.0 MB of archives.
After this operation, 4192 kB disk space will be freed.
Do you want to continue? [Y/n] 
Get:1 http://archive.ubuntu.com/ubuntu bionic/main amd64 locales all 2.27-3ubuntu1 [3612 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic/main amd64 libc6 amd64 2.27-3ubuntu1 [2824 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic/main amd64 libc-bin amd64 2.27-3ubuntu1 [641 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic/main amd64 libgpg-error0 amd64 1.27-6 [38.0 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libgcrypt20 amd64 1.8.1-4ubuntu1.1 [418 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic/main amd64 libargon2-0 amd64 0~20161029-1.1 [19.9 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic/main amd64 libjson-c3 amd64 0.12.1-1.3 [21.4 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libcryptsetup12 amd64 2:2.0.2-1ubuntu1.1 [134 kB]
Get:9 http://archive.ubuntu.com/ubuntu bionic/main amd64 libip4tc0 amd64 1.6.1-2ubuntu2 [19.6 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 libpam-systemd amd64 237-3ubuntu10.31 [108 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 libsystemd0 amd64 237-3ubuntu10.31 [204 kB]
Get:12 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 systemd amd64 237-3ubuntu10.31 [2904 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 networkd-dispatcher all 1.7-0ubuntu3.3 [13.3 kB]
Fetched 11.0 MB in 0s (82.4 MB/s)                
Preconfiguring packages ...
(Reading database ... 25777 files and directories currently installed.)
Preparing to unpack .../locales_2.27-3ubuntu1_all.deb ...
Unpacking locales (2.27-3ubuntu1) over (2.23-0ubuntu11) ...
Preparing to unpack .../libc6_2.27-3ubuntu1_amd64.deb ...
Checking for services that may need to be restarted...
Checking init scripts...
Nothing to restart.
Unpacking libc6:amd64 (2.27-3ubuntu1) over (2.23-0ubuntu11) ...
Setting up libc6:amd64 (2.27-3ubuntu1) ...
Installing new version of config file /etc/ld.so.conf.d/x86_64-linux-gnu.conf ...
Checking for services that may need to be restarted...
Checking init scripts...
Nothing to restart.
Processing triggers for man-db (2.7.5-1) ...
(Reading database ... 25798 files and directories currently installed.)
Preparing to unpack .../libc-bin_2.27-3ubuntu1_amd64.deb ...
Unpacking libc-bin (2.27-3ubuntu1) over (2.23-0ubuntu11) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libc-bin (2.27-3ubuntu1) ...
(Reading database ... 25798 files and directories currently installed.)
Removing systemd-shim (10-3) ...
Removing 'diversion of /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service to /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service.systemd by systemd-shim'
Processing triggers for dbus (1.10.6-1ubuntu3.4) ...
(Reading database ... 25789 files and directories currently installed.)
Preparing to unpack .../libgpg-error0_1.27-6_amd64.deb ...
Unpacking libgpg-error0:amd64 (1.27-6) over (1.21-2ubuntu1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up libgpg-error0:amd64 (1.27-6) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
(Reading database ... 25789 files and directories currently installed.)
Preparing to unpack .../libgcrypt20_1.8.1-4ubuntu1.1_amd64.deb ...
Unpacking libgcrypt20:amd64 (1.8.1-4ubuntu1.1) over (1.6.5-2ubuntu0.5) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up libgcrypt20:amd64 (1.8.1-4ubuntu1.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Selecting previously unselected package libargon2-0:amd64.
(Reading database ... 25789 files and directories currently installed.)
Preparing to unpack .../libargon2-0_0~20161029-1.1_amd64.deb ...
Unpacking libargon2-0:amd64 (0~20161029-1.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up libargon2-0:amd64 (0~20161029-1.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Selecting previously unselected package libjson-c3:amd64.
(Reading database ... 25793 files and directories currently installed.)
Preparing to unpack .../libjson-c3_0.12.1-1.3_amd64.deb ...
Unpacking libjson-c3:amd64 (0.12.1-1.3) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up libjson-c3:amd64 (0.12.1-1.3) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Selecting previously unselected package libcryptsetup12:amd64.
(Reading database ... 25800 files and directories currently installed.)
Preparing to unpack .../libcryptsetup12_2%3a2.0.2-1ubuntu1.1_amd64.deb ...
Unpacking libcryptsetup12:amd64 (2:2.0.2-1ubuntu1.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up libcryptsetup12:amd64 (2:2.0.2-1ubuntu1.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Selecting previously unselected package libip4tc0:amd64.
(Reading database ... 25806 files and directories currently installed.)
Preparing to unpack .../libip4tc0_1.6.1-2ubuntu2_amd64.deb ...
Unpacking libip4tc0:amd64 (1.6.1-2ubuntu2) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up libip4tc0:amd64 (1.6.1-2ubuntu2) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
(Reading database ... 25811 files and directories currently installed.)
Preparing to unpack .../libpam-systemd_237-3ubuntu10.31_amd64.deb ...
Unpacking libpam-systemd:amd64 (237-3ubuntu10.31) over (229-4ubuntu21.22) ...
Preparing to unpack .../libsystemd0_237-3ubuntu10.31_amd64.deb ...
Unpacking libsystemd0:amd64 (237-3ubuntu10.31) over (229-4ubuntu21.22) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up libsystemd0:amd64 (237-3ubuntu10.31) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
(Reading database ... 25811 files and directories currently installed.)
Preparing to unpack .../systemd_237-3ubuntu10.31_amd64.deb ...
Unpacking systemd (237-3ubuntu10.31) over (229-4ubuntu21.22) ...
Processing triggers for ureadahead (0.100.0-19.1) ...
Processing triggers for dbus (1.10.6-1ubuntu3.4) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up systemd (237-3ubuntu10.31) ...
Installing new version of config file /etc/pam.d/systemd-user ...
Installing new version of config file /etc/systemd/journald.conf ...
Installing new version of config file /etc/systemd/logind.conf ...
Installing new version of config file /etc/systemd/resolved.conf ...
Installing new version of config file /etc/systemd/system.conf ...
Installing new version of config file /etc/systemd/timesyncd.conf ...
Installing new version of config file /etc/systemd/user.conf ...
Created symlink /etc/systemd/system/dbus-org.freedesktop.resolve1.service → /lib/systemd/system/systemd-resolved.service.
Created symlink /etc/systemd/system/multi-user.target.wants/systemd-resolved.service → /lib/systemd/system/systemd-resolved.service.
Removing empty /etc/rc.local
Synchronizing state of ondemand.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable ondemand
Removing user `systemd-bus-proxy' ...
Warning: group `systemd-bus-proxy' has no more members.
Done.
[/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log", ignoring.
Removing obsolete conffile /etc/systemd/bootchart.conf ...
Removing obsolete conffile /etc/dbus-1/system.d/org.freedesktop.hostname1.conf ...
Removing obsolete conffile /etc/dbus-1/system.d/org.freedesktop.locale1.conf ...
Removing obsolete conffile /etc/dbus-1/system.d/org.freedesktop.login1.conf ...
Removing obsolete conffile /etc/dbus-1/system.d/org.freedesktop.network1.conf ...
Removing obsolete conffile /etc/dbus-1/system.d/org.freedesktop.resolve1.conf ...
Removing obsolete conffile /etc/dbus-1/system.d/org.freedesktop.systemd1.conf ...
Removing obsolete conffile /etc/dbus-1/system.d/org.freedesktop.timedate1.conf ...
Selecting previously unselected package networkd-dispatcher.
(Reading database ... 25853 files and directories currently installed.)
Preparing to unpack .../networkd-dispatcher_1.7-0ubuntu3.3_all.deb ...
Unpacking networkd-dispatcher (1.7-0ubuntu3.3) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up locales (2.27-3ubuntu1) ...
Installing new version of config file /etc/locale.alias ...
Generating locales (this might take a while)...
  en_US.UTF-8... done
Generation complete.
Setting up libpam-systemd:amd64 (237-3ubuntu10.31) ...
Setting up networkd-dispatcher (1.7-0ubuntu3.3) ...


** Tags removed: verification-needed verification-needed-bionic
** Tags added: verification-done verification-done-bionic

-- 
You received this bug notification because you are a member of DX
Packages, which is subscribed to systemd-shim in Ubuntu.
https://bugs.launchpad.net/bugs/1773859

Title:
  upgrades to 18.04 fail

Status in systemd package in Ubuntu:
  Fix Released
Status in systemd-shim package in Ubuntu:
  Won't Fix
Status in systemd source package in Bionic:
  Fix Committed
Status in systemd-shim source package in Bionic:
  Won't Fix
Status in systemd source package in Cosmic:
  Fix Released
Status in systemd-shim source package in Cosmic:
  Won't Fix

Bug description:
  [Impact]

   * Some systems fail to upgrade due to conflicts between systemd and
  the (now removed from the archive) systemd-shim / upstart.

   * Instead of trying to work out what's the problem in ordering /
  removal of diverts, ensure that systemd is never unpacked whilst
  systemd-shim/upstart are still on disk. Thus declare conflicts against
  systemd-shim/upstart packages in systemd package.

  [Test Case]

   * monitor drop-off of upgrades with below reported problem

   * Check that it is possible to upgrade to bionic's libpam-systemd
  from xenial with systemd-shim installed on xenial, ie.

  lxc launch ubuntu-daily:xenial test-shim-upgrade
  lxc exec test-shim-upgrade
  apt update
  apt install systemd-shim
  wget https://deb.debian.org/debian/pool/main/s/systemd-shim/systemd-shim_10-3_amd64.deb
  apt install ./systemd-shim_10-3_amd64.deb 
  sed 's/xenial/bionic/' -i /etc/apt/sources.list
  apt update
  apt install systemd

  this currently passes, however, systemd-shim remains installed. It
  should be removed instead. Apt install systemd should have lines like
  this:

  The following packages will be REMOVED:
    systemd-shim
  ...
  Removing 'diversion of /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service to /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service.systemd by systemd-shim'
  ...

  
  [Regression Potential]

   * systemd-shim/upstart are both removed and not supported in bionic,
  thus forcing their removal via conflicts should bring the system into
  an expected state.

  [Other Info]

   * original bug report

  $ sudo apt upgrade
  Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  Calculating upgrade... Done
  The following packages will be REMOVED:
    systemd-shim
  0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
  1 not fully installed or removed.
  After this operation, 71.7 kB disk space will be freed.
  Do you want to continue? [Y/n] y
  (Reading database ... 632222 files and directories currently installed.)
  Removing systemd-shim (9-1bzr4ubuntu1) ...
  Removing 'diversion of /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service to /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service.systemd by systemd-shim'
  dpkg-divert: error: rename involves overwriting '/usr/share/dbus-1/system-services/org.freedesktop.systemd1.service' with
    different file '/usr/share/dbus-1/system-services/org.freedesktop.systemd1.service.systemd', not allowed
  dpkg: error processing package systemd-shim (--remove):
   subprocess installed post-removal script returned error exit status 2
  Errors were encountered while processing:
   systemd-shim
  E: Sub-process /usr/bin/dpkg returned an error code (1)

  Commenting out the dpkg-divert in systemd-shim's postrm solved this
  for me and I was about to continue the upgrade.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1773859/+subscriptions


References