package management - apt-get install git-all dpkg error - Ask Ubuntu


this question has answer here:

linux noob here. been trying setup git , having difficulty setting repository , linking git hub. issue. while trying figure out used following commands 1 after @ various times try , install correct packages need

apt-get install git apt-get install git-core 

and finally

apt-get install git-all 

while running last command received following error

 e: sub-process /usr/bin/dpkg returned error code (1) 

i have searched site try , find solution seems case dependent ran

sudo apt-get install -f 

and got following output

reading package lists... done building dependency tree        reading state information... done following packages automatically installed , no longer     required: linux-headers-4.4.0-31 linux-headers-4.4.0-31-generic linux-headers- 4.4.0-38 linux-headers-4.4.0-38-generic linux-image-4.4.0-31-generic linux-image-4.4.0-38-generic linux-image-extra-4.4.0-31-generic linux-image-extra-4.4.0-38-generic use 'sudo apt autoremove' remove them. 0 upgraded, 0 newly installed, 0 remove , 45 not upgraded. 2 not installed or removed. after operation, 0 b of additional disk space used. setting runit (2.1.2-3ubuntu1) ... start: unable connect upstart: failed connect socket  /com/ubuntu/upstart: connection refused dpkg: error processing package runit (--configure): subprocess installed post-installation script returned error exit  status 1 dpkg: dependency problems prevent configuration of git-daemon-run: git-daemon-run depends on runit; however: package runit not configured yet.  dpkg: error processing package git-daemon-run (--configure): dependency problems - leaving unconfigured no apport report written because error message indicates followup error previous failure. errors encountered while processing: runit git-daemon-run e: sub-process /usr/bin/dpkg returned error code (1) 

can tell me file causing error , how can fix it. details why happens or useful info appreciated. thanks

after little research discovered bug has fact ubuntu 16.4.1 no longer runs upstart. (turns out question has been answered appologies that) versions ubuntu 15 onwards use systemd. answer in link below. posted solutions

failed connect socket /com/ubuntu/upstart: connection refused: errors encountered while processing: runit


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User