透過 apt-get 在 Ubuntu (Jaunty) 上安裝 GIT 時出現問題

透過 apt-get 在 Ubuntu (Jaunty) 上安裝 GIT 時出現問題

我正在嘗試安裝git使用sudo apt-get install git-core

但它失敗並出現以下錯誤訊息:

Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
liberror-perl git-core patch
Install these packages without verification [y/N]? y
Err http://us.archive.ubuntu.com jaunty/main git-core 1:1.6.0.4-1ubuntu2
404 Not Found [IP: 91.189.92.183 80]
Err http://us.archive.ubuntu.com jaunty/main patch 2.5.9-5
404 Not Found [IP: 91.189.92.183 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/g/git-core/git-core_1.6.0.4-       1ubuntu2_amd64.deb  404 Not Found [IP: 91.189.92.183 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/p/patch/patch_2.5.9-  5_amd64.deb  404 Not Found [IP: 91.189.92.183 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

如何解決這些 apt-get 錯誤或使用不同的方法安裝 GIT。

注意:我使用 apt-get 來提取其他東西,但 git 失敗了。

答案1

Ubuntu 於 2010 年 10 月 23 日終止了對 Jaunty Jackalope(版本 9.04)的支援。

您可以在此處找到有關如何更新 EOL Ubuntu 產品的說明:https://help.ubuntu.com/community/EOLUpgrades

答案2

如果你不想升級你的ubuntu,你可以自己建立git。從標準套件管理器(和預設資源)獲取 git 的問題是,在某些情況下它們遠遠落後於最新的 git 版本。

Git 只是一個命令,沒有任何與作業系統的掛鉤,因此在套件管理器之外使用和安裝它就可以了。

相關內容