Vlc

Oracle Linux 6.5:無法從 rpmfusion-free-updates 安裝 VLC 2.0.10

  • October 2, 2016

我想在我的 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有什麼問題?

沒有找到的最直接的依賴關係看起來是 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 儲存庫。

兩者中,第一個似乎是最簡單的。您可以yum repolist查看已安裝的儲存庫,您可以通過編輯配置文件來禁用它們,或者在命令中/etc/yum.repos.d添加足夠的--disablerepo=選項。yum install


也就是說,您將很難將 RHEL 用作多媒體平台。我建議使用 Fedora 或類似的東西,並在虛擬機或其他東西中執行 RHEL。Fedora 有一個名為的軟體包virt-manager,可以讓您執行此操作。做你想做的事,但使用專為桌面使用者設計的系統作為兼職管理程序可能比讓伺服器作業系統像桌面作業系統一樣執行更容易。

引用自:https://unix.stackexchange.com/questions/121032