Linux:我如何无头地安装旧版VLC?

时间:2017-09-08 11:39:15

标签: linux installation vlc apt-get headless

我需要从命令行安装旧版本的VLC(不能使用浏览器下载任何内容)。我知道这听起来很奇怪,但VLC的具体版本并不重要,只要它不是最新的。

修改

根据下面的建议,我尝试下载并安装.deb文件,但是当我运行" apt-get install -f"安装后,VLC自动更新到最新版本。

我再次尝试并暂停VLC(sudo apt-mark hold vlc),但这导致" apt-get install"失败:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
vlc : Depends: ttf-freefont
   Depends: vlc-nox (= 1.1.9-1ubuntu1) but it is not installed
   Depends: libavcodec52 (>= 4:0.6-1~) but it is not installable or
            libavcodec-extra-52 (>= 4:0.6-1~) but it is not installable
   Depends: libavutil50 (>= 4:0.6-1~) but it is not installable or
            libavutil-extra-50 (>= 4:0.6-1~) but it is not installable
   Depends: libgl1-mesa-glx but it is not installed or
            libgl1
   Depends: libqtcore4 (>= 4:4.7.0~beta1) but it is not installed
   Depends: libqtgui4 (>= 4:4.5.3) but it is not installed
   Depends: libsdl-image1.2 (>= 1.2.10) but it is not installed
   Depends: libtar
   Depends: libva-x11-1 but it is not installed
   Depends: libva1 but it is not installed
   Depends: libvlccore4 (>= 1.1.0) but it is not installable
   Depends: libx11-xcb1 but it is not installed
   Depends: libxcb-keysyms1 (>= 0.3.6) but it is not installed
   Depends: libxcb-randr0 (>= 1.1) but it is not installed
   Depends: libxcb-xv0 (>= 1.2) but it is not installed
   Recommends: vlc-plugin-notify (= 1.1.9-1ubuntu1) but it is not installed
   Recommends: vlc-plugin-pulse (= 1.1.9-1ubuntu1) but it is not installable
   Recommends: xdg-utils but it is not installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

1 个答案:

答案 0 :(得分:-2)

你可以在这里找到VLC 1.1.9 deb:

32位 - http://launchpadlibrarian.net/69370596/vlc_1.1.9-1ubuntu1_i386.deb 64位 - http://launchpadlibrarian.net/69370658/vlc_1.1.9-1ubuntu1_amd64.deb 您应该考虑锁定vlc包以防止它再次意外更新。

如何防止更新特定包?