CentOS - Remi Repo

CentOS - Remi Repo

我让某人尝试在我的 CentOS 6.5 机器上安装最新版本的 PHP,但没有成功。他们尝试安装 Remi Repo,但现在似乎也不起作用了。

当我尝试更新 php 时出现以下错误:

Error: Cannot find a valid baseurl for repo: rpmfusion-free

rpmfusion-free.repo:

[rpmfusion-free]
name=RPM Fusion for Fedora $releasever - Free
#baseurl=http://download1.rpmfusion.org/free/fedora/releases/$releasever/Everything/$basearch/os/
mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-$releasever&arch=$basearch
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever-$basearch

[rpmfusion-free-debuginfo]
name=RPM Fusion for Fedora $releasever - Free - Debug
#baseurl=http://download1.rpmfusion.org/free/fedora/releases/$releasever/Everything/$basearch/debug/
mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-debug-$releasever&arch=$basearch
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever-$basearch

[rpmfusion-free-source]
name=RPM Fusion for Fedora $releasever - Free - Source
#baseurl=http://download1.rpmfusion.org/free/fedora/releases/$releasever/Everything/source/SRPMS/
mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-source-$releasever&arch=$basearch
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever-$basearch

答案1

您安装了RPM 融合为 Fedora 发行 RPM,而不是为 CentOS 发行。我不太清楚你是怎么做到的;应该拒绝这样的尝试。

要修复此问题,请删除您安装的发布文件,然后下载并安装正确的

yum --disablerepo=rpmfusion-* remove rpmfusion-{,non}free-release

相关内容