重新安装后,VLC 在错误的目录中寻找插件

重新安装后,VLC 在错误的目录中寻找插件

我在 Ubuntu 14.04 上通过 /usr/bin/vlc 中的“apt-get install vlc”安装了 vlc 2.1.5,它运行正常

然后我从源文件编译并安装另一个版本的 vlc(不记得确切的版本号)到“/usr/local/bin/”。

然后我想回到原始的 vlc 2.1.5 并删除编译的 vlc。为此,我通过以下方式找到了第二个 vlc 实例的所有文件/文件夹

sudo find /usr/local -iname vlc

并通过“sudo rm -rf ...”手动删除它们(我没有运行“make uninstall”,因为我在安装后意外删除了源文件)

此后我删除了 vlc 的第一个实例:

sudo apt-get purge vlc
sudo apt-get autoremove vlc

并删除配置文件

sudo rm -rf ~/.config/vlc

此时我以为我已经完全删除了两个 vlc 实例(也许我错了)。然后我再次从头安装了 vlc:

sudo apt-get update
sudo apt-get install vlc

现在,当我运行“vlc -vv”时,我得到了:

VLC media player 2.1.5 Rincewind (revision 2.1.4-49-gdab6cb5)
[0x8ad9928] main libvlc debug: VLC media player - 2.1.5 Rincewind
[0x8ad9928] main libvlc debug: Copyright © 1996-2014 the VideoLAN team
[0x8ad9928] main libvlc debug: revision 2.1.4-49-gdab6cb5
[0x8ad9928] main libvlc debug: configured with ./configure 
[0x8ad9928] main libvlc debug: searching plug-in modules
[0x8ad9928] main libvlc debug: loading plugins cache file /usr/local/lib/vlc/plugins/plugins.dat
[0x8ad9928] main libvlc warning: cannot read /usr/local/lib/vlc/plugins/plugins.dat (No such file or directory)
[0x8ad9928] main libvlc debug: recursively browsing `/usr/local/lib/vlc/plugins'
[0x8ad9928] main libvlc debug: saving plugins cache /usr/local/lib/vlc/plugins/plugins.dat
[0x8ad9928] main libvlc debug: plug-ins loaded: 1 modules
[0x8ad9928] main libvlc debug: opening config file (/home/booch/.config/vlc/vlcrc)
[0x8ad9928] main libvlc debug: translation test: code is "ru"
[0x8ad9928] main libvlc error: No plugins found! Check your VLC installation.

我不知道为什么,但新的 vlc 安装在“/usr/local/lib/vlc/plugins”文件夹中寻找插件,而不是“/usr/lib/vlc/plugins”

如果我跑

export VLC_PLUGIN_PATH=/usr/lib/vlc/plugins

然后我收到这个错误:

    booch@NAS:/usr/local$ vlc -vvv
    VLC media player 2.1.5 Rincewind (revision 2.1.4-49-gdab6cb5)
    [0x9fbf928] main libvlc debug: VLC media player - 2.1.5 Rincewind
    [0x9fbf928] main libvlc debug: Copyright © 1996-2014 the VideoLAN team
    [0x9fbf928] main libvlc debug: revision 2.1.4-49-gdab6cb5
    [0x9fbf928] main libvlc debug: configured with ./configure 
    [0x9fbf928] main libvlc debug: searching plug-in modules
    [0x9fbf928] main libvlc debug: loading plugins cache file /usr/local/lib/vlc/plugins/plugins.dat
    [0x9fbf928] main libvlc warning: cannot read /usr/local/lib/vlc/plugins/plugins.dat (No such file or directory)
    [0x9fbf928] main libvlc debug: recursively browsing `/usr/local/lib/vlc/plugins'
    [0x9fbf928] main libvlc debug: saving plugins cache /usr/local/lib/vlc/plugins/plugins.dat
    [0x9fbf928] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins.dat
    [0x9fbf928] main libvlc warning: This doesn't look like a valid plugins cache
    [0x9fbf928] main libvlc debug: recursively browsing `/usr/lib/vlc/plugins'
    [0x9fbf928] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/text_renderer/libfreetype_plugin.so
    [0x9fbf928] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/text_renderer/libtdummy_plugin.so
    [0x9fbf928] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/audio_output/libalsa_plugin.so
    [0x9fbf928] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/audio_output/libadummy_plugin.so
    [0x9fbf928] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/audio_output/libpulse_plugin.so
    [0x9fbf928] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/audio_output/libamem_plugin.so
    [0x9fbf928] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/audio_output/libafile_plugin.so
    [0x9fbf928] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/mux/libmux_ps_plugin.so
   ...
    [0x9fbf928] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/video_chroma/libi422_i420_plugin.so
    [0x9fbf928] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/video_chroma/libswscale_plugin.so
    [0x9fbf928] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/video_chroma/libi422_yuy2_sse2_plugin.so
    [0x9fbf928] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/video_chroma/libi422_yuy2_plugin.so
    [0x9fbf928] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/video_chroma/libyuy2_i420_plugin.so
    [0x9fbf928] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/video_chroma/libi420_rgb_sse2_plugin.so
    [0x9fbf928] main libvlc debug: saving plugins cache /usr/lib/vlc/plugins/plugins.dat
    [0x9fbf928] main libvlc debug: plug-ins loaded: 1 modules
    [0x9fbf928] main libvlc debug: opening config file (/home/booch/.config/vlc/vlcrc)
    [0x9fbf928] main libvlc debug: translation test: code is "ru"
    [0x9fbf928] main libvlc error: No plugins found! Check your VLC installation.

答案1

我猜想,当您编译并安装 vlc 版本时,它会安装一些无法找到的文件sudo find /usr/local -iname vlc,这些文件很可能具有不同的名称。如果它们仍然存在,则可能会导致您的问题。如果您再次重新下载相同的文件,它可能有一个可以工作的“卸载”,或者您可以仔细观察它安装了哪些文件,然后将其删除...

或者,只需链接或绑定安装/usr/local/lib/vlc/plugins即可/usr/lib/vlc/plugins解决当前问题。

仅供参考,我的~/.config/vlc/vlcrc文件中有这个,但我认为它不太相关

# Use a plugins cache (boolean)
#plugins-cache=1

相关内容