所以,我也从Debian转到Devuan伪叉子。但是-这不能摆脱系统.我遵循了这里的指令,并做到了:
# apt-get install sysvinit-core sysvinit-utils但当我试着:
# apt-get remove --purge --auto-remove systemd我基本上得到了以下错误消息:
systemd is the active init system, please switch to another before removing systemd.太好了,这正是我想要做的。
发布于 2015-07-29 07:07:39
执行第一个命令后,必须重新启动计算机。
请看一下如何从Debian jessie/sid安装中删除系统d。
发布于 2018-03-02 12:53:30
此错误来自于:
/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请参阅systemd cgroup挂载(由/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)收集它们,并再次尝试删除:
apt-get remove systemd或
apt-get purge systemd对我来说很管用。
后
然后,其他服务管理器可能需要,sysvinit或upstart或其他什么。
https://unix.stackexchange.com/questions/218933
复制相似问题