Hitch 安装完成,但出现 insserv 错误。无法启动 Hitch

Hitch 安装完成,但出现 insserv 错误。无法启动 Hitch

我正在尝试安装 hitch 来终止我的 Ubuntu 16.04 VPS 上的 Varnish 反向代理的证书。安装完成并显示以下消息,并且 Hitch 服务未启动。

sridhar@SastraTechnologies:~$ sudo apt install hitch
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  libuv1
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed:
  hitch
0 upgraded, 1 newly installed, 0 to remove and 100 not upgraded.
Need to get 0 B/51.1 kB of archives.
After this operation, 163 kB of additional disk space will be used.
Selecting previously unselected package hitch.
(Reading database ... 249839 files and directories currently installed.)
Preparing to unpack .../hitch_1.1.1-1_amd64.deb ...
Unpacking hitch (1.1.1-1) ...
Processing triggers for systemd (229-4ubuntu21.27) ...
Processing triggers for ureadahead (0.100.0-19.1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up hitch (1.1.1-1) ...
insserv: Script nagios is broken: incomplete LSB comment.
insserv: missing `Default-Start:'  entry: please add even if empty.
insserv: missing `Default-Stop:'   entry: please add even if empty.
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `nagios'
insserv: Default-Stop  undefined, assuming empty stop  runlevel(s) for script `nagios'

尝试删除该包并更新存储库并再次安装,但结果相同。我可以做些什么来解决 insserv 消息?

答案1

也许你最好使用官方软件包。你可以在https://packagecloud.io/varnishcache/hitch

这些软件包由 Varnish Software 维护,包含较新版本的 Hitch,并且定期更新。

有适用于 16.04 或更新版本的 Ubuntu 软件包。

以下命令将完成该工作:

$ curl -s https://packagecloud.io/install/repositories/varnishcache/hitch/script.deb.sh | sudo bash
$ sudo apt install -y hitch

相关内容