我有一个远程 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):
从此链接获取提示,从@Steve Langasek (vorlon) 提供的答案中,通过创建以下文件,它成功了。