请注意,我确实在Unix & Linux SE上发布了不同版本的内容,但在重新发布此前一天没有收到任何有用的回复。该帖子中与此相关的信息是我首先使用rpm -Uvh
将EPEL 7添加到回购列表中,这可能是为什么要求使用EL 7版本的R的原因。
无论如何,根据用户Sami Laine的要求,这里是cat /etc/yum.repos.d/epel.repo
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
[epel-debuginfo]
name=Extra Packages for Enterprise Linux 6 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1
[epel-source]
name=Extra Packages for Enterprise Linux 6 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1
rpm -q epel-release
的输出为epel-release-6-8.noarch
。
我正在尝试在新的CentOS 6.5机器上安装R,但是我遇到了依赖项的困难。我使用rpm
添加了EPEL 6 repo,然后运行了yum install R
。它随着依赖性的破坏而中止:
---> Package R-core.x86_64 0:3.1.1-3.el7 will be installed
--> Processing Dependency: libtiff.so.5(LIBTIFF_4.0)(64bit) for package: R-core-3.1.1-3.el7.x86_64
--> Processing Dependency: libpng15.so.15(PNG15_0)(64bit) for package: R-core-3.1.1-3.el7.x86_64
--> Processing Dependency: liblzma.so.5(XZ_5.0)(64bit) for package: R-core-3.1.1-3.el7.x86_64
--> Processing Dependency: libtiff.so.5()(64bit) for package: R-core-3.1.1-3.el7.x86_64
--> Processing Dependency: libquadmath.so.0()(64bit) for package: R-core-3.1.1-3.el7.x86_64
--> Processing Dependency: libpng15.so.15()(64bit) for package: R-core-3.1.1-3.el7.x86_64
--> Processing Dependency: libpcre.so.1()(64bit) for package: R-core-3.1.1-3.el7.x86_64
--> Processing Dependency: liblzma.so.5()(64bit) for package: R-core-3.1.1-3.el7.x86_64
--> Processing Dependency: libicuuc.so.50()(64bit) for package: R-core-3.1.1-3.el7.x86_64
--> Processing Dependency: libicui18n.so.50()(64bit) for package: R-core-3.1.1-3.el7.x86_64
---> Package R-java.x86_64 0:3.1.1-3.el7 will be installed
--> Processing Dependency: java-headless for package: R-java-3.1.1-3.el7.x86_64
---> Package texlive-texmf-errata-fonts.noarch 0:2007-7.1.el6 will be installed
--> Finished Dependency Resolution
Error: Package: R-core-3.1.1-3.el7.x86_64 (epel)
Requires: liblzma.so.5()(64bit)
Error: Package: R-core-3.1.1-3.el7.x86_64 (epel)
Requires: liblzma.so.5(XZ_5.0)(64bit)
Error: Package: R-core-3.1.1-3.el7.x86_64 (epel)
Requires: libtiff.so.5()(64bit)
Error: Package: R-core-3.1.1-3.el7.x86_64 (epel)
Requires: libpcre.so.1()(64bit)
Error: Package: R-core-3.1.1-3.el7.x86_64 (epel)
Requires: libpng15.so.15()(64bit)
Error: Package: R-core-3.1.1-3.el7.x86_64 (epel)
Requires: libicui18n.so.50()(64bit)
Error: Package: R-core-3.1.1-3.el7.x86_64 (epel)
Requires: libquadmath.so.0()(64bit)
Error: Package: R-core-3.1.1-3.el7.x86_64 (epel)
Requires: libpng15.so.15(PNG15_0)(64bit)
Error: Package: R-java-3.1.1-3.el7.x86_64 (epel)
Requires: java-headless
Error: Package: R-core-3.1.1-3.el7.x86_64 (epel)
Requires: libicuuc.so.50()(64bit)
Error: Package: R-core-3.1.1-3.el7.x86_64 (epel)
Requires: libtiff.so.5(LIBTIFF_4.0)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
不确定为什么这些依赖关系无法解决。还有在我的CentOS为6.5时安装 el7 版本的任何原因吗?
答案 0 :(得分:5)
由于EPEL版本7已经安装(然后被删除),因此依赖链检查使用的一些元数据包含与之相矛盾的残差。虽然您已经安装了EPEL第6版,但元数据仍然存在困扰。
要清理元数据并再次生成,请运行:
yum clean all && yum makecache