如何在Ubuntu Zesty 17.04上安装VLC 3.0?

我在Ubuntu Zesty中安装VLC 3.0有困难。 使用官方PPA 。 我用它添加了它

sudo add-apt-repository ppa:videolan/master-daily sudo apt-get update 

apt-cache show列出了它,

 apt-cache show vlc | grep Version Version: 3.0.0~~git20160813+r65787+62~ubuntu16.04.1 Version: 2.2.4-14ubuntu2 

但是当我尝试用sudo apt-get install vlc=3.*安装3.0.0 ,我得到了,

 sudo apt-get install vlc=3.* Reading package lists... Done Building dependency tree Reading state information... Done Selected version '3.0.0~~git20160813+r65787+62~ubuntu16.04.1' ( [amd64]) for 'vlc' Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: vlc : Depends: vlc-nox (= 3.0.0~~git20160813+r65787+62~ubuntu16.04.1) but it is not going to be installed Depends: libavcodec-ffmpeg56 (>= 7:2.6) but it is not installable or libavcodec-ffmpeg-extra56 (>= 7:2.6) but it is not installable Depends: libgles1-mesa (>= 7.8.1) or libgles1 Recommends: vlc-plugin-notify (= 3.0.0~~git20160813+r65787+62~ubuntu16.04.1) but it is not going to be installed Recommends: vlc-plugin-samba (= 3.0.0~~git20160813+r65787+62~ubuntu16.04.1) but it is not going to be installed E: Unable to correct problems, you have held broken packages. 

还有另一个PPA在Ubuntu Zesty中提供VLC 3.0吗? 似乎libavcodec-ffmpeg56已重命名,

 $ apt-cache search libavcodec ffmpeg libavcodec-extra57 - FFmpeg library with additional de/encoders for audio/video codecs 

现在需要针对新库(libavcodec-extra57)构建vlc-3。*并从旧名称更新其清单(libavcodec-ffmpeg-extra56)

我无法在此处提交错误, 因为Launchpad不支持。 我所能做的就是使用Launchpad联系论坛编写维护者,我做了。 没有回复。

您可以安装vlc 3的快照:

 sudo snap install vlc 

它将与原始vlc一起安装(如果您不卸载原始vlc)。

我更喜欢flatpak不是snap 。 它是Linux的开源和多源应用程序沙箱和分发框架。 它易于使用,您可以在其中运行SteamSublimetext等封闭源应用程序。

你可以通过ppa安装它或直接从github构建它,它不需要花费太多时间。 我为我的Ubuntu 16.04做了什么

 mkdir FLATPAK; cd FLATPAK git clone --recurse-submodules https://github.com/ostreedev/ostree.git cd ostree git submodule update --init env NOCONFIGURE=1 ./autogen.sh ./configure make sudo make install cd .. git clone https://github.com/flatpak/flatpak.git cd flatpak ./autogen.sh make sudo make install cd .. git clone https://github.com/PipeWire/pipewire.git cd pipewire ./autogen.sh make sudo make install cd .. git clone https://github.com/flatpak/xdg-desktop-portal.git ./autogen.sh make sudo make install cd .. git clone https://github.com/flatpak/xdg-desktop-portal-gtk.git ./autogen.sh ./configure make sudo make install 

然后添加应用程序存储库以安装应用程序。

 flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo 

最后安装VLC

 flatpak --user install flathub org.videolan.VLC 

并通过它发布

 flatpak run org.videolan.VLC 

查看可用的应用程序和运行时

  flatpak --user remote-ls -d flathub 

有关更多信息,请查看Flatpak

编辑:我添加了新的依赖项并更改了安装顺序的顺序。

我想你可能已经添加了错误的ppa源,或者ppa现在不能正常工作17.04。 链接的ppc主页说17.04这些应该在/etc/apt/sources.list*某个地方

 deb http://ppa.launchpad.net/videolan/master-daily/ubuntu zesty main deb-src http://ppa.launchpad.net/videolan/master-daily/ubuntu zesty main 

从它想要安装和依赖的软件包,我看到很多“16.04”听起来不适合你的“17.04”系统。 喜欢:

 Version: 3.0.0~~git20160813+r65787+62~ubuntu**16.04.1** ... Depends: vlc-nox (= 3.0.0~~git20160813+r65787+62~ubuntu**16.04.1**) but... Recommends: vlc-plugin-notify (= 3.0.0~~git20160813+r65787+62~ubuntu**16.04.1**) but... Recommends: vlc-plugin-samba (= 3.0.0~~git20160813+r65787+62~ubuntu**16.04.1**) but... 

我已经启用了videolan / master-daily PPA,虽然我的目的是当我升级到17.04时不使用3.0,所以我继续使用我认为最新的2.x版本。 我刚刚注意到界面中的一些图标已经改变,并检查了about对话框,发现我现在正在使用3.0。

 Package: vlc Status: install ok installed Priority: optional Section: video Installed-Size: 220 Maintainer: Debian Multimedia Maintainers  Architecture: amd64 Version: 3.0.0~~git20170829+r71452+74~ubuntu17.04.1 Provides: mp3-decoder Depends: vlc-bin (= 3.0.0~~git20170829+r71452+74~ubuntu17.04.1), vlc-plugin-base (= 3.0.0~~git20170829+r71452+74~ubuntu17.04.1), vlc-plugin-qt (= 3.0.0~~git20170829+r71452+74~ubuntu17.04.1), vlc-plugin-video-output (= 3.0.0~~git20170829+r71452+74~ubuntu17.04.1), vlc-l10n (= 3.0.0~~git20170829+r71452+74~ubuntu17.04.1) Recommends: vlc-plugin-notify (= 3.0.0~~git20170829+r71452+74~ubuntu17.04.1), vlc-plugin-samba (= 3.0.0~~git20170829+r71452+74~ubuntu17.04.1), vlc-plugin-skins2 (= 3.0.0~~git20170829+r71452+74~ubuntu17.04.1), vlc-plugin-video-splitter (= 3.0.0~~git20170829+r71452+74~ubuntu17.04.1), vlc-plugin-visualization (= 3.0.0~~git20170829+r71452+74~ubuntu17.04.1)