再安裝git時遇到這樣的問題
start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: 連線被拒絕
dpkg: error processing package runit (--configure):
子程序 已安裝的 post-installation script 傳回了錯誤退出狀態 1
dpkg: 因相依問題,無法設定 git-daemon-run:
git-daemon-run 相依於 runit﹔然而:
runit 套件尚未設定。
dpkg: error processing package git-daemon-run (--configure):
相依問題 - 保留未設定
設定 libcommon-sense-perl (3.74-1build1) ...
設定 libtypes-serialiser-perl (1.0-1) ...
設定 libjson-xs-perl (3.010-2build1) ...
No apport report written because the error message indicates its a followup error from a previous failure.
設定 libpackage-stash-xs-perl (0.28-2build2) ...
設定 tla-doc (1.3.5+dfsg1-2) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Processing triggers for systemd (229-4ubuntu7) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
處理時發生錯誤:
runit
git-daemon-run
E: Sub-process /usr/bin/dpkg returned an error code (1)
看起來是套件出了一些問題
於是可以這樣做
sudo apt-get purge runit
sudo apt-get purge git-all
sudo apt-get purge git
sudo apt-get autoremove
sudo apt update
sudo apt install git
就能順利安裝了
沒有留言:
張貼留言