After switching to Devuan, how do I remove systemd?
Clash Royale CLAN TAG#URR8PPP
up vote
7
down vote
favorite
So, I've also switched from Debian to the Devuan pseudo-fork. But - this doesn't get rid of systemd... I've followed the instructions here, and did:
# apt-get install sysvinit-core sysvinit-utils
but when I then tried:
# apt-get remove --purge --auto-remove systemd
I got basically the following error message:
systemd is the active init system, please switch to another before removing systemd.
Yeah great, just what I thought I was trying to do..
debian systemd sysvinit devuan
add a comment |Â
up vote
7
down vote
favorite
So, I've also switched from Debian to the Devuan pseudo-fork. But - this doesn't get rid of systemd... I've followed the instructions here, and did:
# apt-get install sysvinit-core sysvinit-utils
but when I then tried:
# apt-get remove --purge --auto-remove systemd
I got basically the following error message:
systemd is the active init system, please switch to another before removing systemd.
Yeah great, just what I thought I was trying to do..
debian systemd sysvinit devuan
1
Do it from a chroot...
â jasonwryan
Jul 28 '15 at 21:17
@jasonwryan: Can you be more specific? chroot to where? And why would this help? And are you sure it won't render the system unbootable?
â einpoklum
Jul 28 '15 at 21:27
1
You have two choices. Boot from a live medium, chroot in and change it, or boot from Devuan and then remove systemd. No, I am not sure it won't render the system unbootable because I know nothing about Devuan...
â jasonwryan
Jul 28 '15 at 21:36
add a comment |Â
up vote
7
down vote
favorite
up vote
7
down vote
favorite
So, I've also switched from Debian to the Devuan pseudo-fork. But - this doesn't get rid of systemd... I've followed the instructions here, and did:
# apt-get install sysvinit-core sysvinit-utils
but when I then tried:
# apt-get remove --purge --auto-remove systemd
I got basically the following error message:
systemd is the active init system, please switch to another before removing systemd.
Yeah great, just what I thought I was trying to do..
debian systemd sysvinit devuan
So, I've also switched from Debian to the Devuan pseudo-fork. But - this doesn't get rid of systemd... I've followed the instructions here, and did:
# apt-get install sysvinit-core sysvinit-utils
but when I then tried:
# apt-get remove --purge --auto-remove systemd
I got basically the following error message:
systemd is the active init system, please switch to another before removing systemd.
Yeah great, just what I thought I was trying to do..
debian systemd sysvinit devuan
debian systemd sysvinit devuan
edited 5 mins ago
Daniel Sokolowski
1155
1155
asked Jul 28 '15 at 21:05
einpoklum
1,96941948
1,96941948
1
Do it from a chroot...
â jasonwryan
Jul 28 '15 at 21:17
@jasonwryan: Can you be more specific? chroot to where? And why would this help? And are you sure it won't render the system unbootable?
â einpoklum
Jul 28 '15 at 21:27
1
You have two choices. Boot from a live medium, chroot in and change it, or boot from Devuan and then remove systemd. No, I am not sure it won't render the system unbootable because I know nothing about Devuan...
â jasonwryan
Jul 28 '15 at 21:36
add a comment |Â
1
Do it from a chroot...
â jasonwryan
Jul 28 '15 at 21:17
@jasonwryan: Can you be more specific? chroot to where? And why would this help? And are you sure it won't render the system unbootable?
â einpoklum
Jul 28 '15 at 21:27
1
You have two choices. Boot from a live medium, chroot in and change it, or boot from Devuan and then remove systemd. No, I am not sure it won't render the system unbootable because I know nothing about Devuan...
â jasonwryan
Jul 28 '15 at 21:36
1
1
Do it from a chroot...
â jasonwryan
Jul 28 '15 at 21:17
Do it from a chroot...
â jasonwryan
Jul 28 '15 at 21:17
@jasonwryan: Can you be more specific? chroot to where? And why would this help? And are you sure it won't render the system unbootable?
â einpoklum
Jul 28 '15 at 21:27
@jasonwryan: Can you be more specific? chroot to where? And why would this help? And are you sure it won't render the system unbootable?
â einpoklum
Jul 28 '15 at 21:27
1
1
You have two choices. Boot from a live medium, chroot in and change it, or boot from Devuan and then remove systemd. No, I am not sure it won't render the system unbootable because I know nothing about Devuan...
â jasonwryan
Jul 28 '15 at 21:36
You have two choices. Boot from a live medium, chroot in and change it, or boot from Devuan and then remove systemd. No, I am not sure it won't render the system unbootable because I know nothing about Devuan...
â jasonwryan
Jul 28 '15 at 21:36
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
4
down vote
You have to reboot your machine after executing first command.
Please take a look at How to remove systemd from a Debian jessie/sid installation.
No, that doesn't help at all, systemd runs after the reboot as well.
â einpoklum
Jul 29 '15 at 20:55
@einpoklum well there's ALT Linux out there just in case, we ship both systemd and sysvinit (but most of the docs and discussions are in Russian). Maybe my en.altlinux.org/rescue would be helpful back then either -- boot, mount, chroot, replace init, reboot.
â Michael Shigorin
Mar 4 '16 at 12:35
add a comment |Â
up vote
0
down vote
1. error reason
this error came from here:
/var/lib/dpkg/info/systemd.prerm
# Prevent systemd from being removed if it's the active init. That
# will not work.
#
if [ "$1" = "remove" ] && [ -e /sys/fs/cgroup/systemd ]; then
echo "systemd is the active init system, please switch to another before removing systemd."
exit 1
fi
2. resolve & remove
see systemd cgroup mounts (mounted by /lib/systemd/systemd
)
mount
...
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,seclabel,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/debug type cgroup (rw,nosuid,nodev,noexec,relatime,debug)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
umount them, and try to remove again:
apt-get remove systemd
OR
apt-get purge systemd
that's worked for me.
3. after remove
then other service manager maybe needed,sysvinit
or upstart
or something else.
Thank you. Unfortunately, I can't test this right now since I don't have Devuan installed at the moment...
â einpoklum
Mar 2 at 13:04
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
You have to reboot your machine after executing first command.
Please take a look at How to remove systemd from a Debian jessie/sid installation.
No, that doesn't help at all, systemd runs after the reboot as well.
â einpoklum
Jul 29 '15 at 20:55
@einpoklum well there's ALT Linux out there just in case, we ship both systemd and sysvinit (but most of the docs and discussions are in Russian). Maybe my en.altlinux.org/rescue would be helpful back then either -- boot, mount, chroot, replace init, reboot.
â Michael Shigorin
Mar 4 '16 at 12:35
add a comment |Â
up vote
4
down vote
You have to reboot your machine after executing first command.
Please take a look at How to remove systemd from a Debian jessie/sid installation.
No, that doesn't help at all, systemd runs after the reboot as well.
â einpoklum
Jul 29 '15 at 20:55
@einpoklum well there's ALT Linux out there just in case, we ship both systemd and sysvinit (but most of the docs and discussions are in Russian). Maybe my en.altlinux.org/rescue would be helpful back then either -- boot, mount, chroot, replace init, reboot.
â Michael Shigorin
Mar 4 '16 at 12:35
add a comment |Â
up vote
4
down vote
up vote
4
down vote
You have to reboot your machine after executing first command.
Please take a look at How to remove systemd from a Debian jessie/sid installation.
You have to reboot your machine after executing first command.
Please take a look at How to remove systemd from a Debian jessie/sid installation.
answered Jul 29 '15 at 7:07
Jak Ub
493
493
No, that doesn't help at all, systemd runs after the reboot as well.
â einpoklum
Jul 29 '15 at 20:55
@einpoklum well there's ALT Linux out there just in case, we ship both systemd and sysvinit (but most of the docs and discussions are in Russian). Maybe my en.altlinux.org/rescue would be helpful back then either -- boot, mount, chroot, replace init, reboot.
â Michael Shigorin
Mar 4 '16 at 12:35
add a comment |Â
No, that doesn't help at all, systemd runs after the reboot as well.
â einpoklum
Jul 29 '15 at 20:55
@einpoklum well there's ALT Linux out there just in case, we ship both systemd and sysvinit (but most of the docs and discussions are in Russian). Maybe my en.altlinux.org/rescue would be helpful back then either -- boot, mount, chroot, replace init, reboot.
â Michael Shigorin
Mar 4 '16 at 12:35
No, that doesn't help at all, systemd runs after the reboot as well.
â einpoklum
Jul 29 '15 at 20:55
No, that doesn't help at all, systemd runs after the reboot as well.
â einpoklum
Jul 29 '15 at 20:55
@einpoklum well there's ALT Linux out there just in case, we ship both systemd and sysvinit (but most of the docs and discussions are in Russian). Maybe my en.altlinux.org/rescue would be helpful back then either -- boot, mount, chroot, replace init, reboot.
â Michael Shigorin
Mar 4 '16 at 12:35
@einpoklum well there's ALT Linux out there just in case, we ship both systemd and sysvinit (but most of the docs and discussions are in Russian). Maybe my en.altlinux.org/rescue would be helpful back then either -- boot, mount, chroot, replace init, reboot.
â Michael Shigorin
Mar 4 '16 at 12:35
add a comment |Â
up vote
0
down vote
1. error reason
this error came from here:
/var/lib/dpkg/info/systemd.prerm
# Prevent systemd from being removed if it's the active init. That
# will not work.
#
if [ "$1" = "remove" ] && [ -e /sys/fs/cgroup/systemd ]; then
echo "systemd is the active init system, please switch to another before removing systemd."
exit 1
fi
2. resolve & remove
see systemd cgroup mounts (mounted by /lib/systemd/systemd
)
mount
...
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,seclabel,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/debug type cgroup (rw,nosuid,nodev,noexec,relatime,debug)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
umount them, and try to remove again:
apt-get remove systemd
OR
apt-get purge systemd
that's worked for me.
3. after remove
then other service manager maybe needed,sysvinit
or upstart
or something else.
Thank you. Unfortunately, I can't test this right now since I don't have Devuan installed at the moment...
â einpoklum
Mar 2 at 13:04
add a comment |Â
up vote
0
down vote
1. error reason
this error came from here:
/var/lib/dpkg/info/systemd.prerm
# Prevent systemd from being removed if it's the active init. That
# will not work.
#
if [ "$1" = "remove" ] && [ -e /sys/fs/cgroup/systemd ]; then
echo "systemd is the active init system, please switch to another before removing systemd."
exit 1
fi
2. resolve & remove
see systemd cgroup mounts (mounted by /lib/systemd/systemd
)
mount
...
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,seclabel,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/debug type cgroup (rw,nosuid,nodev,noexec,relatime,debug)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
umount them, and try to remove again:
apt-get remove systemd
OR
apt-get purge systemd
that's worked for me.
3. after remove
then other service manager maybe needed,sysvinit
or upstart
or something else.
Thank you. Unfortunately, I can't test this right now since I don't have Devuan installed at the moment...
â einpoklum
Mar 2 at 13:04
add a comment |Â
up vote
0
down vote
up vote
0
down vote
1. error reason
this error came from here:
/var/lib/dpkg/info/systemd.prerm
# Prevent systemd from being removed if it's the active init. That
# will not work.
#
if [ "$1" = "remove" ] && [ -e /sys/fs/cgroup/systemd ]; then
echo "systemd is the active init system, please switch to another before removing systemd."
exit 1
fi
2. resolve & remove
see systemd cgroup mounts (mounted by /lib/systemd/systemd
)
mount
...
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,seclabel,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/debug type cgroup (rw,nosuid,nodev,noexec,relatime,debug)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
umount them, and try to remove again:
apt-get remove systemd
OR
apt-get purge systemd
that's worked for me.
3. after remove
then other service manager maybe needed,sysvinit
or upstart
or something else.
1. error reason
this error came from here:
/var/lib/dpkg/info/systemd.prerm
# Prevent systemd from being removed if it's the active init. That
# will not work.
#
if [ "$1" = "remove" ] && [ -e /sys/fs/cgroup/systemd ]; then
echo "systemd is the active init system, please switch to another before removing systemd."
exit 1
fi
2. resolve & remove
see systemd cgroup mounts (mounted by /lib/systemd/systemd
)
mount
...
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,seclabel,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/debug type cgroup (rw,nosuid,nodev,noexec,relatime,debug)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
umount them, and try to remove again:
apt-get remove systemd
OR
apt-get purge systemd
that's worked for me.
3. after remove
then other service manager maybe needed,sysvinit
or upstart
or something else.
edited Mar 2 at 13:20
answered Mar 2 at 12:53
yurenchen
1415
1415
Thank you. Unfortunately, I can't test this right now since I don't have Devuan installed at the moment...
â einpoklum
Mar 2 at 13:04
add a comment |Â
Thank you. Unfortunately, I can't test this right now since I don't have Devuan installed at the moment...
â einpoklum
Mar 2 at 13:04
Thank you. Unfortunately, I can't test this right now since I don't have Devuan installed at the moment...
â einpoklum
Mar 2 at 13:04
Thank you. Unfortunately, I can't test this right now since I don't have Devuan installed at the moment...
â einpoklum
Mar 2 at 13:04
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f218933%2fafter-switching-to-devuan-how-do-i-remove-systemd%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
Do it from a chroot...
â jasonwryan
Jul 28 '15 at 21:17
@jasonwryan: Can you be more specific? chroot to where? And why would this help? And are you sure it won't render the system unbootable?
â einpoklum
Jul 28 '15 at 21:27
1
You have two choices. Boot from a live medium, chroot in and change it, or boot from Devuan and then remove systemd. No, I am not sure it won't render the system unbootable because I know nothing about Devuan...
â jasonwryan
Jul 28 '15 at 21:36