Bug#764186: closed by Martin Pitt <mpitt at debian.org> (Re: Bug#764186: Can't remove systemd)
Roman Tsisyk
roman at tsisyk.com
Mon Oct 6 11:10:24 BST 2014
> From: Martin Pitt <mpitt at debian.org>
> To: Roman Tsisyk <roman at tsisyk.com>, 764186-done at bugs.debian.org
> Cc:
> Date: Mon, 6 Oct 2014 11:30:35 +0200
> Subject: Re: Bug#764186: Can't remove systemd
> Roman Tsisyk [2014-10-06 13:16 +0400]:
>> systemd is the active init system, please switch to another before
>> removing systemd.
>
> This quite clearly explains why the removal rightly fails, and this is
> a good thing -- otherwise you would end up with an unbootable system.
> You can install sysvinit-core or upstart first in order to switch.
I have sysvinit-core installed, but I still can't remove systemd:
```
root at work:~# apt-get install sysvinit-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
sysvinit-core is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1100 not upgraded.
root at work:~# apt-cache policy sysvinit-core
sysvinit-core:
Installed: 2.88dsf-53.4
Candidate: 2.88dsf-53.4
Version table:
2.88dsf-55.3 0
-1 http://mirror.yandex.ru/debian/ experimental/main amd64 Packages
*** 2.88dsf-53.4 0
990 http://mirror.yandex.ru/debian/ jessie/main amd64 Packages
100 http://mirror.yandex.ru/debian/ sid/main amd64 Packages
100 /var/lib/dpkg/status
```
```
root at work:~# apt-get purge systemd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libcryptsetup4 libsystemd0
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
systemd*
0 upgraded, 0 newly installed, 1 to remove and 1100 not upgraded.
After this operation, 12.0 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 178637 files and directories currently installed.)
Removing systemd (215-5+b1) ...
systemd is the active init system, please switch to another before
removing systemd.
dpkg: error processing package systemd (--purge):
subprocess installed pre-removal script returned error exit status 1
Failed to stop lib-init-rw.mount: Unit lib-init-rw.mount not loaded.
Errors were encountered while processing:
systemd
E: Sub-process /usr/bin/dpkg returned an error code (1)
```
--
WBR,
Roman Tsisyk <roman at tsisyk.com>
More information about the Pkg-systemd-maintainers
mailing list