如果我从 Debian Wheezy (7.x) 升级到 Jessie (8.x),systemd 会默认运行吗?

ein*_*lum 7 debian apt upgrade systemd

由于与此问题无关的各种原因,我对 systemd 持谨慎态度。现在,我准备将我的 Debian Wheezy 升级到 Debian Jessie。apt-get dist-upgrade 后会默认使用 systemd 吗?如果是这样,我需要做什么才能坚持使用 sysvinit?

Fer*_*ner 11

是的,它会默认运行。从 wheezy 到 Jessie 的 dist 升级将切换为systemd用作 init 系统。在杰西发行说明致力于全断面这个问题,也给人一种关于如何保持与您当前的init系统的建议:

为防止systemd-sysv在升级过程中被安装,您可以创建一个名为的文件/etc/apt/preferences.d/local-pin-init,其内容如下:

Package: systemd-sysv
Pin: release o=Debian
Pin-Priority: -1
Run Code Online (Sandbox Code Playgroud)

它还提到“在非默认初始化系统下,某些软件包可能会降低行为或可能缺乏功能。”


roa*_*ima 1

Jessie 将systemd默认安装,即使是从 Wheezy 升级的也是如此。安装后,您可以按照如何从 Debian jessie/sid 安装中删除 systemd 中的说明禁用它

该页面上有这些命令的解释,但要点如下:

apt-get install sysvinit-core sysvinit sysvinit-utils
reboot

# BE AWARE that the following command removes packages that depend on systemd itself or things like libpam-systemd! 
apt-get remove --purge --auto-remove systemd

# These prevent systemd in the future. Unfortunately also including systemd-shim
echo -e 'Package: systemd\nPin: origin ""\nPin-Priority: -1' > /etc/apt/preferences.d/systemd
echo -e '\n\nPackage: *systemd*\nPin: origin ""\nPin-Priority: -1' >> /etc/apt/preferences.d/systemd
echo -e '\nPackage: systemd:amd64\nPin: origin ""\nPin-Priority: -1' >> /etc/apt/preferences.d/systemd
echo -e '\nPackage: systemd:i386\nPin: origin ""\nPin-Priority: -1' >> /etc/apt/preferences.d/systemd
Run Code Online (Sandbox Code Playgroud)