所以,我目前正在运行 Fedora 27,尽管这个问题自 F26 以来就一直存在。问题是我无法通过普通回购更新 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。)