Ubuntu安装git

https://blog.csdn.net/u013398960/article/details/72717180

 

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

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

xie@droid:~$ sudo apt-get remove git-all 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'git-all' is not installed, so not removed
0 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 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 is not configured yet.
 
dpkg: error processing package git-daemon-run (--configure):
 dependency problems - leaving unconfigured
No 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-run
E: 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就好.
--------------------- 
作者:小小写 
来源:CSDN 
原文:https://blog.csdn.net/u013398960/article/details/72717180 
版权声明:本文为博主原创文章,转载请附上博文链接!

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值