Ubuntu 安装 VLC

        最近项目中需要用VLC查看NVR下子设备的RTSP流,特此记录,便于日后查阅。

        1、安装snap

$ sudo apt update
$ sudo apt install snapd

        2、安装vlc

$ sudo snap install vlc

        3、可能遇到的问题

        snap beta install on ubuntu 22.04 failing to start Qt: Session management error: Could not open network socket,导致vlc无法启动,解决方法:

tim@indigo:/snap/bin$ sudo rm /var/cache/fontconfig/*
[sudo] password for tim: 
tim@indigo:/snap/bin$ rm ~/.cache/fontconfig/*
tim@indigo:/snap/bin$ fc-cache -r
tim@indigo:/snap/bin$ ./vlc

        4、启动vlc 

$ vlc

        或者在应用界面中启动,到此Ubuntu 安装 VLC介绍完成。

你可能感兴趣的:(Ubuntu20,ubuntu,linux,运维)