我有一个远程linux系统,debian版本:jessie/sid
.
uname -a
给出:
>uname -a
Linux hostName 3.2.0-4-amd64 #1 SMP Debian 3.2.68-1+deb7u2 x86_64 x86_64 x86_64 GNU/Linux
使用安装任何包时apt-get
,我收到以下错误:
Preparing to unpack .../package_amd64.deb ...
update-rc.d: using dependency based boot sequencing
Can't exec "insserv": No such file or directory at /usr/sbin/update-rc.d line 391.
update-rc.d: error: insserv rejected the script header
dpkg: error processing archive /var/cache/apt/archives/package_amd64.deb (--unpack):
答案1
从中得到提示关联,根据 @Steve Langasek (vorlon) 提供的答案,通过创建以下文件,它成功了。
sudo touch /etc/init.d/.legacy-bootordering