Ubuntu安装git

来源:互联网 发布:mysql安装后连接不上 编辑:程序博客网 时间:2024/06/03 12:45

Ubuntu 安装 git-all 问题解决方法

1.出现问题按remove都不好使

xie@droid:~$ sudo apt-get remove git-all Reading package lists... DoneBuilding dependency tree       Reading state information... DonePackage 'git-all' is not installed, so not removed0 to upgrade, 0 to newly install, 0 to remove and 179 not to upgrade.2 not fully installed or removed.After this operation, 0 B of additional disk space will be used.Setting up runit (2.1.2-3ubuntu1) ...start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refuseddpkg: error processing package runit (--configure): subprocess installed post-installation script returned error exit status 1dpkg: dependency problems prevent configuration of git-daemon-run: git-daemon-run depends on runit; however:  Package runit is not configured yet.dpkg: error processing package git-daemon-run (--configure): dependency problems - leaving unconfiguredNo apport report written because the error message indicates it's a follow-up error from a previous failure.                                                                                                            Errors were encountered while processing: runit git-daemon-runE: Sub-process /usr/bin/dpkg returned an error code (1)

2.用下面的办法,完美解决

    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

3.因此,建议不要直接安装git-all,只需要git就好.

原创粉丝点击