Ubuntu22.04安装GStreamer出现版本不符问题求助
问题:Ubuntu 22.04中GStreamer版本不符问题
现象
我在Ubuntu 22.04系统中执行以下命令安装GStreamer:
sudo apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio
但执行gst-launch-1.0 --version显示版本为1.14.0:
gst-launch-1.0 --version gst-launch-1.0 version 1.14.0 GStreamer 1.14.0 Unknown package origin
通过apt-show-versions和重新安装命令确认,系统已安装的libgstreamer1.0-dev是预期的1.20.3-0ubuntu1版本:
apt-show-versions libgstreamer1.0-dev libgstreamer1.0-dev:amd64/jammy-updates 1.20.3-0ubuntu1 uptodate sudo apt-get install libgstreamer1.0-dev Reading package lists... Done Building dependency tree... Done Reading state information... Done libgstreamer1.0-dev is already the newest version (1.20.3-0ubuntu1). 0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
这是我第三次在该电脑上全新安装Ubuntu并尝试部署GStreamer,此前相同步骤可成功安装1.20版本,其他电脑曾出现1.14/1.16版本的情况。我想了解出现版本不符的原因,以及如何获取1.20版本。
系统源配置(/etc/apt/sources.list)
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://archive.ubuntu.com/ubuntu jammy main restricted # deb-src http://archive.ubuntu.com/ubuntu jammy main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb http://archive.ubuntu.com/ubuntu jammy-updates main restricted # deb-src http://archive.ubuntu.com/ubuntu jammy-updates main restricted ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://archive.ubuntu.com/ubuntu jammy universe # deb-src http://archive.ubuntu.com/ubuntu jammy universe deb http://archive.ubuntu.com/ubuntu jammy-updates universe # deb-src http://archive.ubuntu.com/ubuntu jammy-updates universe ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://archive.ubuntu.com/ubuntu jammy multiverse # deb-src http://archive.ubuntu.com/ubuntu jammy multiverse deb http://archive.ubuntu.com/ubuntu jammy-updates multiverse # deb-src http://archive.ubuntu.com/ubuntu jammy-updates multiverse ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. deb http://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse # deb-src http://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu jammy-security main restricted # deb-src http://archive.ubuntu.com/ubuntu jammy-security main restricted deb http://archive.ubuntu.com/ubuntu jammy-security universe # deb-src http://archive.ubuntu.com/ubuntu jammy-security universe deb http://archive.ubuntu.com/ubuntu jammy-security multiverse # deb-src http://archive.ubuntu.com/ubuntu jammy-security multiverse
推测原因
我推测问题源于先安装了Anaconda3,其自带旧版本GStreamer,导致系统优先调用Anaconda版本而非apt安装的版本,目前除卸载Anaconda外不知其他解决办法。
内容的提问来源于stack exchange,提问作者Il'ya Zhenin
相关产品推荐
相关产品推荐

