我是靠谱客的博主 谨慎哈密瓜,最近开发中收集的这篇文章主要介绍Ubuntu安装git,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

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就好.

最后

以上就是谨慎哈密瓜为你收集整理的Ubuntu安装git的全部内容,希望文章能够帮你解决Ubuntu安装git所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(36)

评论列表共有 0 条评论

立即
投稿
返回
顶部