掛鉤安裝已完成,但出現 insserv 錯誤。無法啟動掛接裝置

掛鉤安裝已完成,但出現 insserv 錯誤。無法啟動掛接裝置

我正在嘗試安裝掛接裝置以終止 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'

嘗試刪除更新儲存庫的 packahe 並再次安裝,但結果是相同的。我可以做些什麼來解決 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

相關內容