1. 问题现象
error while loading shared libraries:
libgstreamer-1.0.so.0: cannot open shared object file: No such file or directory
2. 解决方法
可以使用下面命令搜索相关的包
apt-cache search libgstreamer
root@ubuntu2:~# apt-cache search libgstreamer
libgstreamer-plugins-base1.0-0 - GStreamer libraries from the "base" set
libgstreamer-plugins-base1.0-dev - GStreamer development files for libraries from the "base" set
libgstreamer-plugins-good1.0-0 - GStreamer development files for libraries from the "good" set
libgstreamer-plugins-good1.0-dev - GStreamer development files for libraries from the "good" set
libgstreamer1.0-0 - Core GStreamer libraries and elements
libgstreamer1.0-0-dbg - Core GStreamer libraries and elements
libgstreamer1.0-dev - GStreamer core development files
libgstreamer-ocaml - OCaml interface to the gstreamer library -- runtime files
libgstreamer-ocaml-dev - OCaml interface to the gstreamer library -- development files
libgstreamer-plugins-bad1.0-0 - GStreamer development files for libraries from the "bad" set
libgstreamer-plugins-bad1.0-dev - GStreamer development files for libraries from the "bad" set
libgstreamer-plugins-base0.10-0 - GStreamer libraries from the "base" set
libgstreamer-plugins-base0.10-dev - GStreamer development files for libraries from the "base" set
libgstreamer0.10-0 - Core GStreamer libraries and elements
libgstreamer0.10-0-dbg - Core GStreamer libraries and elements
libgstreamer0.10-dev - GStreamer core development files
libgstreamermm-1.0-0v5 - C++ wrapper library for GStreamer (shared libraries)
libgstreamermm-1.0-dev - C++ wrapper library for GStreamer (development files)
libgstreamermm-1.0-doc - C++ wrapper library for GStreamer (documentation)
或者直接使用下面命令安装
sudo apt install libgstreamer1.0-0
sudo apt install gstreamer1.0-plugins-base
sudo apt install gstreamer1.0-plugins-good
sudo apt install gstreamer1.0-plugins-bad
sudo apt install gstreamer1.0-plugins-ugly
sudo apt install gstreamer1.0-libav
sudo apt install gstreamer1.0-doc
sudo apt install gstreamer1.0-tools
一般情况下安装前两个就可以解决该问题。