2017-05-04 99 views
1

我試圖安裝git的幾個小時,但無論我做什麼我得到這個錯誤:這裏無法在Linux Mint的安裝git的17.3

sudo apt-get install git 
 
Reading package lists... Done 
 
Building dependency tree  
 
Reading state information... Done 
 
Some packages could not be installed. This may mean that you have 
 
requested an impossible situation or if you are using the unstable 
 
distribution that some required packages have not yet been created 
 
or been moved out of Incoming. 
 
The following information may help to resolve the situation: 
 

 
The following packages have unmet dependencies: 
 
git : Depends: liberror-perl but it is not installable 
 
E: Unable to correct problems, you have held broken packages.

我讀過的答案和我已經試過以下沒有成功: sudo apt-get update
sudo apt-get upgrade sudo apt-get install -f

我試圖解決從這裏:

https://superuser.com/questions/899311/apt-get-error-when-installing-git

/var/lib/apt/lists/*去除一切就跑sudo apt-get update 我也嘗試安裝liberror-perl然後folllowing錯誤:

Reading package lists... Done Building dependency tree
Reading state information... Done Package liberror-perl is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'liberror-perl' has no installation candidate

怎麼能修復與包這個問題?謝謝。

更新:現在我試圖安裝的軟件包,我得到了同樣的錯誤:

Package 'devscripts' has no installation candidate

回答

0

您是否嘗試過在這個環節中的說明? https://tecadmin.net/install-git-on-ubuntu/

$ sudo add-apt-repository ppa:git-core/ppa 
$ sudo apt-get update 
$ sudo apt-get install git 
+0

是的,我剛剛發現,我嘗試這樣做,現在我有重複的git包。我不明白軟件包有什麼問題。我得到了以下重複的包:'W:重複的sources.list條目http://ppa.launchpad.net/git-core/ppa/ubuntu/ trusty/main amd64包(/ var/lib/apt/lists/ppa。 W:重複的sources.list條目http://ppa.launchpad.net/git-core/ppa/ubuntu/ trusty/main i386包(/ var/lib/apt/lists/ppa) .launchpad.net_git-core_ppa_ubuntu_dists_trusty_main_binary-i386_Packages) ' –