ubuntu 安装VLC后无法播放

徘徊边缘 提交于 2020-03-12 09:29:36

按照如下方式安装VLC:

安装vlc方法
sudo apt-get update
sudo apt-get install vlc
sudo apt-get build-dep vlc

安装后无法打开VLC,报如下错误:

VLC is not supposed to be run as root. Sorry.
If you need to use real-time priorities and/or privileged TCP ports
you can use ./vlc_back-wrapper (make sure it is Set-UID root and
cannot be run by non-trusted users first).

使用以下三个命令:
cp /usr/bin/vlc /usr/bin/vlc-backup
needle=$(objdump -d /usr/bin/vlc | grep euid | tail -1 | awk '{print "\\x"$2"\\x"$3"\\x"$4"\\x"$5"\\x"$6;}')
sed -ir "s/$needle/\xb8\x01\x00\x00\x00/" /usr/bin/vlc

就可以播放了。

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!