1. 程式人生 > >Ubuntu安裝git

Ubuntu安裝git

Ubuntu 安裝 git-all 問題解決方法

1.出現問題按remove都不好使

[email protected]:~$ 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時提示軟件包git沒有可安裝候選問題

install log blog sudo 升級系統 解決 安裝git 提示 class 選擇升級系統: sudo apt-get update 升級之後再輸入: sudo apt-get install git 可成功安裝。解決雙系統下ubuntu安裝git時提示

重新學習Ubuntu -- 安裝Git軟件

web 解壓 wiki 文章 error you 兩個 通過 err 好長時間沒有來寫相關的文章了,今天重新來學習--重新學習Ubuntu 安裝Git並配置git 安裝Git 在終端輸入命令: sudo apt install git 顯示的提示: 正在讀取軟件包列表..

ubuntu 安裝Git與配置SSH key

第一步:安裝git。     用Ctrl+Alt+T開啟終端,輸入命令     sudo apt-getinstall git 第二步:配置本機Git屬性     終端輸入:  &nb

Ubuntu安裝git

Ubuntu 安裝 git-all 問題解決方法 1.出現問題按remove都不好使 [email protected]:~$ sudo apt-get remove git-all Reading package lists... Done Building

ubuntu 安裝git服務

1.  apt-get install git2. useradd -d /home/git -m -s /bin/bash git3. passwd git4. ssh [email protected]5. mkdir repo.gitsudo git init

Git使用:Linux(Ubuntu 14.04 x64)下安裝GIt並配置連接GitHub

成功 ger 版本 style sts via xxxxxxxx apt 安裝 github是一個非常好的網絡代碼托管倉庫,知曉許久,但是一直沒有用起來,最近才開始使用git管理自己的文檔和代碼。 Git是非常強大的版本管理工具,今天就告訴大家,如何在Linux下安裝GIt

UbuntuGit安裝與使用

ron 命令 enter add commit repos 更新 system color 不積跬步,無以至千裏。不積小流,無以成江海。                 《勸學篇》—— 荀子 Pro git簡體中文版 http://iissnan.com/pr

ubuntu安裝、配置git

首先,輸入git,看是否已安裝git 若沒安裝,可以線上安裝。 一、安裝  apt-get install git。注意:若安裝時沒有找到git源,需要新增該源,安裝時沒遇到,此處省略;或者手動安裝。 二、git 配置 命令: git config --global u

ubuntugit安裝及使用 2017.12.23

安裝git 檢查阿是否安裝git git version 若沒有安裝,則使用如下的命令 sudo apt-get install git 配置git的資訊 git config --global user.name "Your Name" git confi

ubuntu安裝git安裝及使用

一、當前git已經成成為程式碼管理最受歡迎的工具之一,下面簡單說一下其使用。之前寫過一篇關於git關聯github的,可以檢視http://fuzhenwen.top:8000/article/22/preview 。    一般專案開發者,首先得把專案fork到自己的pro

Ubuntu 11 10 server 安裝Git 伺服器

因為後面要採用Git代替Subversion,花了點時間配置了Git服務端和客戶端,像以前一樣,仍然基於最新的Ubuntu11.10 server/desktop系統。 感謝這幾篇文章的作者: http://www.hackido.com/2010/01/installing-git-on-se

Linux &Ubuntu——原始碼編譯安裝Git 2.x 版本

    Git是一個開源的分散式版本控制系統,可以有效,高速的處理從很小到非常大的專案版本管理.Git與常用的版本控制工具CVS,Subversion等不同,它採用了分散式版本庫的方式,不必伺服器端軟體支援。    

Git學習系列之Debian或Ubuntu安裝Git詳細步驟(圖文詳解)

前言   最早Git是在Linux上開發的,很長一段時間內,Git也只能在Linux和Unix系統上跑。不過,慢慢地有人把它移植到了Windows上。現在,Git可以在Linux、Unix、Mac和Windows這幾大平臺上正常運行了。   要使用Git,第一步當然是安裝Git了。   

Ubuntu 14.04.5 64bit上安裝git GUI客戶端GitKraken

git的影象化管理工具很多,有兩個是比較推薦用的,sourceTree以及GitKraken。個人比較喜歡GitKraken。下面是我在Ubuntu 14.04.5 64bit上的安裝過程。從官網下載

Ubuntu安裝git server

1.更新:防止安裝git依賴包時出錯 sudo apt-get update sudo apt-get upgrade 2.安裝openssh和openssh-client:安裝問題詳見我的其他部落格 3.安裝git sudo apt-get install git-cor

如何在Ubuntu安裝GIT

<!--oogle_ad_section_star--> 今天花了很長時間才在Ubuntu 上安裝好GIT 1.6.0.2,最開始本不需要1.6,所以只用 1 sudo apt-get install git-core 就把GIT1.5安裝好。可以使用GIT://,SSH等方式。但後

【指導】從原始碼編譯安裝Git-Ubuntu

1 下載原始碼包 2 編譯安裝Git 1)安裝編譯原始碼包的工具: $sudo apt-get installlibcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev 2)展開原始碼包,進入: $t

ubuntugit安裝和使用

Git 是一個快速、可擴充套件的分散式版本控制系統,它具有極為豐富的命令集,對內部系統提供了高階操作和完全訪問。 一、Git安裝:   1、 二進位制方式安裝:         $ sudo apt-getinstall git-core 安裝完成後,在終端中輸入 git

解決在ubuntu安裝git出現Unable to lock the administration directory (/var/lib/dpkg/)的問題

在ubuntu16.04下安裝git,出現以下問題: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily

記錄ubuntu安裝git後,ssh連線不上

僅用作記錄: 問題:安裝git後,連線ssh不成功, 已在本機生成私鑰和公鑰, ssh-keygen -t rsa -C "[email protected]"且在Git伺服器上配置了ssh