After switching to Devuan, how do I remove systemd?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
7
down vote

favorite
1












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..










share|improve this question



















  • 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















up vote
7
down vote

favorite
1












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..










share|improve this question



















  • 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













up vote
7
down vote

favorite
1









up vote
7
down vote

favorite
1






1





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..










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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













  • 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











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.






share|improve this answer




















  • 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


















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.






share|improve this answer






















  • 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










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















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






























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.






share|improve this answer




















  • 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















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.






share|improve this answer




















  • 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













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.






share|improve this answer












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.







share|improve this answer












share|improve this answer



share|improve this answer










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

















  • 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













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.






share|improve this answer






















  • 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














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.






share|improve this answer






















  • 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












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.






share|improve this answer














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.







share|improve this answer














share|improve this answer



share|improve this answer








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
















  • 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

















 

draft saved


draft discarded















































 


draft saved


draft discarded














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













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?