Bug#751589: sysvinit-core: /sbin/init missing after switching from systemd to sysvinit

Michael Biebl biebl at debian.org
Sat Jun 14 17:31:25 BST 2014


tags 751589 + unreproducible
thanks

Am 14.06.2014 18:22, schrieb Michael Gold:
> On Sat, Jun 14, 2014 at 17:34:21 +0200, Michael Biebl wrote:
>> That said, I can not reproduce the sequence of events which make
>> /sbin/init dissappear.
>>
>> I've installed systemd-sysv in a VM, then ran apt-get install
>> sysvinit-core and /sbin/init was available afterwards.
>>
>> So something else must have happened
> 
> Did you try "apt-get remove systemd"?  According to apt-history that was
> the first command I ran after installing it.

You can't remove the systemd package while systemd is still the active init.
How did you force the removal?

That said, even with that sequence of events /sbin/init is available here.
I'm marking the bug as unreproducible until we have steps how we can
reproduce the issue.

root at pluto:/# apt-get remove systemd
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  sysvinit-core
The following packages will be REMOVED:
  systemd systemd-sysv
The following NEW packages will be installed:
  sysvinit-core
0 upgraded, 1 newly installed, 2 to remove and 0 not upgraded.
Need to get 0 B/130 kB of archives.
After this operation, 4909 kB disk space will be freed.
Do you want to continue? [Y/n] 
debconf: delaying package configuration, since apt-utils is not installed
dpkg: systemd-sysv: dependency problems, but removing anyway as you requested:
 sysvinit depends on sysvinit-core | upstart | systemd-sysv; however:
  Package sysvinit-core is not installed.
  Package upstart is not installed.
  Package systemd-sysv is to be removed.

(Reading database ... 13159 files and directories currently installed.)
Removing systemd-sysv (204-10) ...
Selecting previously unselected package sysvinit-core.
(Reading database ... 13142 files and directories currently installed.)
Preparing to unpack .../sysvinit-core_2.88dsf-53.2_amd64.deb ...
Unpacking sysvinit-core (2.88dsf-53.2) ...
Setting up sysvinit-core (2.88dsf-53.2) ...
Not restarting sysvinit
(Reading database ... 13167 files and directories currently installed.)
Removing systemd (204-10) ...
systemd is the active init system, please switch to another before removing systemd.
dpkg: error processing package systemd (--remove):
 subprocess installed pre-removal script returned error exit status 1
Running in chroot, ignoring request.
Running in chroot, ignoring request.
Errors were encountered while processing:
 systemd
E: Sub-process /usr/bin/dpkg returned an error code (1)

root at pluto:/# ls /sbin/init -la
-rwxr-xr-x 1 root root 40552 Jun  7 23:32 /sbin/init

root at pluto:/# dpkg -S /sbin/init 
sysvinit-core: /sbin/init

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 884 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20140614/a37ace5c/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list