我需要从命令行安装旧版本的 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
最佳答案
您可以在此处找到 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 软件包以防止其再次意外更新。
如何阻止特定包的更新?
关于Linux:如何 headless (headless)安装旧版本的 VLC?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46115662/