包 'upstart' 没有安装候选

Kar*_*lom 0 debian upstart

当我尝试在 Debian 9 上安装 upstart 时,我得到:

# apt-get install upstart
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package upstart is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  systemd-sysv sysvinit-core

E: Package 'upstart' has no installation candidate
Run Code Online (Sandbox Code Playgroud)

Debian Wiki指出:

安装非常简单。唯一需要的软件包是新贵。

我的来源清单:

###### Debian Main Repos
deb http://deb.debian.org/debian/ stable main contrib non-free
deb-src http://deb.debian.org/debian/ stable main contrib non-free

deb http://deb.debian.org/debian/ stable-updates main contrib non-free
deb-src http://deb.debian.org/debian/ stable-updates main contrib non-free
Run Code Online (Sandbox Code Playgroud)

如何修复此错误并安装新贵?

Ste*_*itt 5

当 Ubuntu 切换到 systemd 时,Upstart 被其开发人员抛弃,并在Debian 9 发布之前从 Debian删除

Debian中9支撑初始化系统被systemd,sysvinit和(在远较小程度上)Runitfile-rcopenrc。如果您想使用 systemd(这是默认设置),请确保安装了systemdsystemd-sysv软件包;使用sysvinit,安装initscriptssysv-rcsysvinit-core

我建议不要尝试使用 Upstart,它在被删除时有许多发布关键的错误。