ubuntu 安装VLC后无法播放

按照如下方式安装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

就可以播放了。

发布了1 篇原创文章 · 获赞 0 · 访问量 162

猜你喜欢

转载自blog.csdn.net/mwttry/article/details/104811271