我第一次尝试在 Ubuntu 21.04 上安装 GStreamer 如下所示:
user@localhost:~$ sudo apt install gstreamer
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package gstreamer
因为那不起作用,所以我访问了在 Linux 上安装的 GStreamer 网页: https ://gstreamer.freedesktop.org/documentation/installing/on-linux.html?gi-language=c 。按照上述网页上的说明,我第二次尝试安装 GStreamer 如下所示:
user@localhost:~$ sudo apt-get install libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package gstreamer1.0-doc is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'gstreamer1.0-doc' has no installation candidate
什么程序可以在 Ubuntu 21.04 上安装 GStreamer?
您正在尝试使用源代码包的部分名称。
请访问packages.ubuntu.com上的相关搜索 结果并选择适合您需要的正确二进制包名称。
如果您知道相关 pkg-config/pkgconfig 配置文件的名称,那么您可以在同一 站点上使用文件搜索。
以下安装命令看起来很合理: