![Oracle Linux 6.5:无法从 rpmfusion-free-updates 安装 VLC 2.0.10](https://linux22.com/image/51827/Oracle%20Linux%206.5%EF%BC%9A%E6%97%A0%E6%B3%95%E4%BB%8E%20rpmfusion-free-updates%20%E5%AE%89%E8%A3%85%20VLC%202.0.10.png)
我想在我的 Linux 机器上安装 VLC。当我执行 yum install vlc 时,它显示以下消息:-
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package vlc.i686 0:2.0.10-1.el6 will be installed
--> Processing Dependency: vlc-core(x86-32) = 2.0.10-1.el6 for package: vlc-2.0.10-1.el6.i686
--> Processing Dependency: libvlccore.so.5 for package: vlc-2.0.10-1.el6.i686
--> Processing Dependency: libcaca.so.0 for package: vlc-2.0.10-1.el6.i686
--> Processing Dependency: kde-filesystem for package: vlc-2.0.10-1.el6.i686
--> Processing Dependency: libaa.so.1 for package: vlc-2.0.10-1.el6.i686
--> Running transaction check
---> Package aalib-libs.i686 0:1.4.0-0.18.rc5.el6.1 will be installed
---> Package kde-filesystem.noarch 0:4-30.1.el6 will be installed
---> Package libcaca.i686 0:0.99-0.9.beta16.el6 will be installed
--> Processing Dependency: libglut.so.3 for package: libcaca-0.99-0.9.beta16.el6.i686
---> Package vlc-core.i686 0:2.0.10-1.el6 will be installed
--> Processing Dependency: live555date(x86-32) = 2012.04.27 for package: vlc-core-2.0.10-1.el6.i686
--> Processing Dependency: libx264.so.120 for package: vlc-core-2.0.10-1.el6.i686
Package x264-libs is obsoleted by x264, but obsoleting package does not provide for requirements
--> Processing Dependency: libavformat.so.53(LIBAVFORMAT_53) for package: vlc-core-2.0.10-1.el6.i686
Package ffmpeg-libs is obsoleted by ffmpeg, but obsoleting package does not provide for requirements
--> Processing Dependency: libtiger.so.5 for package: vlc-core-2.0.10-1.el6.i686
--> Processing Dependency: libzvbi.so.0 for package: vlc-core-2.0.10-1.el6.i686
--> Processing Dependency: libavcodec.so.53 for package: vlc-core-2.0.10-1.el6.i686
Package ffmpeg-libs is obsoleted by ffmpeg, but obsoleting package does not provide for requirements
--> Processing Dependency: libavutil.so.51 for package: vlc-core-2.0.10-1.el6.i686
--> Processing Dependency: libgme.so.0 for package: vlc-core-2.0.10-1.el6.i686
--> Processing Dependency: libavformat.so.53 for package: vlc-core-2.0.10-1.el6.i686
--> Processing Dependency: libavutil.so.51(LIBAVUTIL_51) for package: vlc-core-2.0.10-1.el6.i686
--> Processing Dependency: libavcodec.so.53(LIBAVCODEC_53) for package: vlc-core-2.0.10-1.el6.i686
--> Running transaction check
---> Package freeglut.i686 0:2.6.0-1.el6 will be installed
---> Package game-music-emu.i686 0:0.5.5-1.el6 will be installed
---> Package libavcodec53.i686 0:0.10.9-58.el6 will be installed
--> Processing Dependency: libxavs.so.1 for package: libavcodec53-0.10.9-58.el6.i686
--> Processing Dependency: libx264.so.136 for package: libavcodec53-0.10.9-58.el6.i686
---> Package libavformat53.i686 0:0.10.9-58.el6 will be installed
---> Package libavutil51.i686 0:1.0.8-58.el6 will be installed
---> Package libtiger.i686 0:0.3.4-1.el6 will be installed
---> Package live555.i686 0:0-0.34.2012.01.25.el6 will be updated
---> Package live555.i686 0:0-0.37.2012.04.27.el6 will be an update
---> Package vlc-core.i686 0:2.0.10-1.el6 will be installed
--> Processing Dependency: libx264.so.120 for package: vlc-core-2.0.10-1.el6.i686
Package x264-libs is obsoleted by x264, but obsoleting package does not provide for requirements
---> Package zvbi.i686 0:0.2.33-6.el6 will be installed
--> Running transaction check
---> Package libx264_136.i686 0:0.136-19_20130917.2245.el6 will be installed
---> Package libxavs1.i686 0:0.1.51-2.el6 will be installed
---> Package vlc-core.i686 0:2.0.10-1.el6 will be installed
--> Processing Dependency: libx264.so.120 for package: vlc-core-2.0.10-1.el6.i686
Package x264-libs is obsoleted by x264, but obsoleting package does not provide for requirements
--> Finished Dependency Resolution
Error: Package: vlc-core-2.0.10-1.el6.i686 (rpmfusion-free-updates)
Requires: libavformat.so.53(LIBAVFORMAT_53)
Available: ffmpeg-libs-0.10.9-1.el6.i686 (rpmfusion-free-updates)
libavformat.so.53(LIBAVFORMAT_53)
Available: ffmpeg-libs-0.10.11-1.el6.i686 (rpmfusion-free-updates)
libavformat.so.53(LIBAVFORMAT_53)
Available: libavformat53-0.8.15-55.el6.i686 (atrpms)
libavformat.so.53(LIBAVFORMAT_53)
Available: libavformat53-0.9.3-56.el6.i686 (atrpms)
libavformat.so.53(LIBAVFORMAT_53)
Available: libavformat53-0.10.9-58.el6.i686 (atrpms)
libavformat.so.53(LIBAVFORMAT_53)
Available: ffmpeg-libs-0.6.5-2.el6.i686 (linuxtech-release)
Not found
Error: Package: vlc-core-2.0.10-1.el6.i686 (rpmfusion-free-updates)
Requires: libavcodec.so.53
Available: ffmpeg-libs-0.10.9-1.el6.i686 (rpmfusion-free-updates)
libavcodec.so.53
Available: ffmpeg-libs-0.10.11-1.el6.i686 (rpmfusion-free-updates)
libavcodec.so.53
Available: libavcodec53-0.8.15-55.el6.i686 (atrpms)
libavcodec.so.53
Available: libavcodec53-0.9.3-56.el6.i686 (atrpms)
libavcodec.so.53
Available: libavcodec53-0.10.9-58.el6.i686 (atrpms)
libavcodec.so.53
Available: ffmpeg-libs-0.6.5-2.el6.i686 (linuxtech-release)
Not found
Error: Package: vlc-core-2.0.10-1.el6.i686 (rpmfusion-free-updates)
Requires: libx264.so.120
Available: libx264_120-0.120-0.20120424.1.el6.i686 (linuxtech-release)
libx264.so.120
Available: x264-libs-0.120-4.20120303.el6_bootstrap.i686 (rpmfusion-free-updates)
libx264.so.120
Available: x264-libs-0.120-5.20120303.el6.i686 (rpmfusion-free-updates)
libx264.so.120
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
我不知道为什么我会收到此错误。据我所知,如果有任何依赖项,那么包管理器也应该找到并安装它们。谁能告诉我 yum 有什么问题吗?
答案1
未找到的最直接的依赖项似乎是 0.6.5 版本,ffmpeg-libs
您通常可以从 rpmfusion 获得该版本(您似乎也在使用该版本)。不过,rpmfusion 在 RHEL/OEL 5 上仅升至 v0.5,而在 RHEL/OEL6 上则跳至 v0.10。因此它无法找到该特定的软件包版本。
我看到该命令中弹出了很多不同的存储库yum install
,因此可能会yum
拉取任何特定包所依赖的版本,但该包是针对版本号低于该包的任何副本的ffmpeg-libs
版本构建的ffmpeg-libs
你的仓库有。所以它基本上是在说“我正在尝试安装需要 0.6 版 ffmpeg-libs 的 Package1,但在您的所有存储库中我唯一能找到的是 0.10 版”
因此,您有两种方法可以解决这些类型的 yum 问题:
尽可能多地消除额外的存储库。 VLC 可在 RPM fusion 存储库中找到,该存储库过去对我来说效果很好。我不相信它们依赖于除了核心操作系统包的基本存储库之外的任何其他存储库。我会尝试禁用所有存储库,除了 Oracle 称为其基本存储库、EPEL 和 rpmfusion 本身的任何存储库,看看这是否会导致版本号同步。
尝试识别导致
ffmpeg-libs
需要该特定版本的存储库,并检查存储库维护者是否希望您还配置任何其他 yum 存储库。
在这两者中,第一个似乎是最简单的。您可以执行 ayum repolist
查看已安装的存储库,并且可以通过编辑其/etc/yum.repos.d
配置文件来禁用它们,或者--disablerepo=
在命令中添加足够的选项yum install
。
也就是说,您将很难使用 RHEL 作为多媒体平台。我建议使用 Fedora 或类似的东西,并在虚拟机或其他东西中运行 RHEL。 Fedora 有一个名为 的包virt-manager
可以让你做到这一点。做你想做的事,但使用专为桌面用户设计的系统作为兼职虚拟机管理程序可能比让服务器操作系统像桌面操作系统一样更容易。