On Debian, when upgrading from Hammer or Infernalis to Jewel, ceph-base fails to install.
I'm sorry if I post this in the wrong project, this is actually my first report here.
So, here's the actual error, which left "ceph-base" (and thus the other packages depending on it) un-configured.
Unpacking ceph-base (10.1.0-1~bpo80+1) over (10.1.0-1~bpo80+1) ...
Setting up ceph-base (10.1.0-1~bpo80+1) ...
update-rc.d: error: insserv rejected the script header
dpkg: error processing package ceph-base (--install):
subprocess installed post-installation script returned error exit status 1
A bit of info on the machine first (if that helps):
Description: Debian GNU/Linux 8.3 (jessie)
- uname -a
Linux PVE03-LAB 4.2.8-1-pve #1 SMP Fri Feb 26 16:37:36 CET 2016 x86_64 GNU/Linux
Fiddling with the pre-install script (/var/lib/dpkg/info/ceph-base.prerm), and setting #!/bin/sh in debug mode (-x), helped me find the actual issue:
insserv: script ceph-base: service ceph already provided!
insserv: exiting now!
I pinpointed the issue to the init script being already provided by "ceph" on 0.94, while systemd tries to re-create the existing service when installing ceph-base, which is a new package.
- dpkg -S /etc/init.d/ceph
So, my workaround was to simply delete "/etc/init.d/ceph", and now if I apt-get dist-upgrade, everything works as expected.
I know you guys will find a proper way to remove that annoyance.
#4 Updated by Kefu Chai almost 7 years ago
- Status changed from New to Duplicate
yes, ceph-base "Replaces" "ceph" as it installs "/etc/init.d/ceph" which provides the "ceph" service. and the same file which was also provided the old "ceph" packages before the #15329 was fixed.
with the fix of #15329, ceph-base will install "/etc/init.d/ceph" instead of "/etc/init.d/ceph-base", and ceph-base also "Breaks" "ceph". so ceph-base won't unpack unless ceph is unconfigured. so there is no chance that 0.94 ceph can coexist with 10.1.* ceph-base.