Fedora
Fedora 目前缺少最新版本的 git
所以,我目前正在執行 Fedora 27,儘管這個問題自 F26 以來就一直存在。問題是我無法通過正常的 repos 更新 git。我很困惑為什麼,因為我在網際網路上找不到任何關於它的東西。
我目前的 Git 版本是
2.14.3
,應該是2.15.1
內容
/etc/yum.repos.d
如下total 60 -rw-r--r--. 1 root root 342 Oct 8 15:25 _copr_davidva-deadbeef.repo -rw-r--r--. 1 root root 322 Sep 27 18:56 _copr_numix-numix.repo -rw-r--r--. 1 root root 707 Oct 25 06:41 fedora-cisco-openh264.repo -rw-r--r--. 1 root root 1331 Oct 25 06:41 fedora.repo -rw-r--r--. 1 root root 1345 Oct 25 06:41 fedora-updates.repo -rw-r--r--. 1 root root 1403 Oct 25 06:41 fedora-updates-testing.repo -rw-r--r--. 1 root root 258 Nov 16 20:24 hardware:razer.repo -rw-r--r--. 1 root root 1248 Nov 14 07:17 rpmfusion-free.repo -rw-r--r--. 1 root root 1245 Nov 14 07:17 rpmfusion-free-updates.repo -rw-r--r--. 1 root root 1305 Nov 14 07:17 rpmfusion-free-updates-testing.repo -rw-r--r--. 1 root root 1293 Nov 14 07:21 rpmfusion-nonfree.repo -rw-r--r--. 1 root root 1290 Nov 14 07:21 rpmfusion-nonfree-updates.repo -rw-r--r--. 1 root root 1350 Nov 14 07:21 rpmfusion-nonfree-updates-testing.repo -rw-r--r--. 1 root root 148 Nov 27 12:38 skype-stable.repo -rw-r--r--. 1 root root 207 Oct 9 03:14 slack.repo
這是我認為可能有用的所有相關資訊。
sudo dnf info git
Failed to synchronize cache for repo 'davidva-deadbeef', disabling. Failed to synchronize cache for repo 'numix-numix', disabling. Last metadata expiration check: 2:49:40 ago on Tue 05 Dec 2017 18:46:43 NZDT. Installed Packages Name : git Version : 2.14.3 Release : 2.fc27 Arch : x86_64 Size : 2.5 M Source : git-2.14.3-2.fc27.src.rpm Repo : @System From repo : updates Summary : Fast Version Control System URL : https://git-scm.com/ License : GPLv2 Description : Git is a fast, scalable, distributed revision control system with an : unusually rich command set that provides both high-level operations : and full access to internals. : : The git rpm installs common set of tools which are usually using with : small amount of dependencies. To install all git packages, including : tools for integrating with other SCMs, install the git-all meta-package.
sudo dnf install git
(已經安裝了 git)Failed to synchronize cache for repo 'davidva-deadbeef', disabling. Failed to synchronize cache for repo 'numix-numix', disabling. Last metadata expiration check: 2:53:42 ago on Tue 05 Dec 2017 18:46:43 NZDT. Package git-2.14.3-2.fc27.x86_64 is already installed, skipping. Dependencies resolved. Nothing to do. Complete!
sudo dnf install git
(解除安裝 git 後)Failed to synchronize cache for repo 'davidva-deadbeef', disabling. Failed to synchronize cache for repo 'numix-numix', disabling. Last metadata expiration check: 2:55:24 ago on Tue 05 Dec 2017 18:46:43 NZDT. Dependencies resolved. =========================================================== Package Arch Version Repository Size =========================================================== Installing: git x86_64 2.14.3-2.fc27 updates 1.1 M Installing dependencies: git-core-doc x86_64 2.14.3-2.fc27 updates 2.3 M perl-Error noarch 1:0.17025-1.fc27 fedora 44 k perl-Git noarch 2.14.3-2.fc27 updates 68 k Transaction Summary =========================================================== Install 4 Packages Total download size: 3.5 M Installed size: 14 M Is this ok [y/N]: y Downloading Packages: (1/4): perl-Git-2.14.3-2.f 512 kB/s | 68 kB 00:00 (2/4): perl-Error-0.17025- 692 kB/s | 44 kB 00:00 (3/4): git-2.14.3-2.fc27.x 2.6 MB/s | 1.1 MB 00:00 (4/4): git-core-doc-2.14.3 3.2 MB/s | 2.3 MB 00:00 ----------------------------------------------------------- Total 1.1 MB/s | 3.5 MB 00:03 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : perl-Error-1:0.17025-1.fc27.noa 1/4 Installing : git-core-doc-2.14.3-2.fc27.x86_ 2/4 Installing : perl-Git-2.14.3-2.fc27.noarch 3/4 Installing : git-2.14.3-2.fc27.x86_64 4/4 Running scriptlet: git-2.14.3-2.fc27.x86_64 4/4 Verifying : git-2.14.3-2.fc27.x86_64 1/4 Verifying : git-core-doc-2.14.3-2.fc27.x86_ 2/4 Verifying : perl-Git-2.14.3-2.fc27.noarch 3/4 Verifying : perl-Error-1:0.17025-1.fc27.noa 4/4 Installed: git.x86_64 2.14.3-2.fc27 git-core-doc.x86_64 2.14.3-2.fc27 perl-Error.noarch 1:0.17025-1.fc27 perl-Git.noarch 2.14.3-2.fc27 Complete!
應該注意的是,COPR 儲存庫自 F27 以來一直不起作用,但在問題首次出現時仍在執行。
任何幫助將不勝感激 :)
在Bodhi上可以看到
git
,Fedora 27 可用的最新版本是2.14.3;你看到的行為是完全正常的。如果您想要更新版本的git
,您必須自己建構它或從其他地方安裝它。如果尚未完成,您還可以送出一個錯誤,要求更新版本。(2.15.1適用於 Fedora 28。)