3

VLC media player is not working - Ubuntu 23.04 , I just downloaded from Snap

error:

VLC media player 3.0.18 Vetinari (revision 3.0.18-0-ge9eceaed4d)
[000055c2122faa00] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Qt: Session management error: Could not open network socket
Fontconfig warning: FcPattern object weight does not accept value [0 205)
Segmentation fault (core dumped)

How to solve this issue ?

Kalle Richter
  • 5,935
  • 20
  • 69
  • 101
Mel
  • 41
  • 2
  • A segmentation fault is the kind of error we can't solve here. It should be reported as a bug. [Here](https://wiki.videolan.org/Report_bugs/) is a how-to. – Jos May 02 '23 at 14:37
  • BTW All caps is both considered screaming and RUDE. – David May 03 '23 at 14:53
  • Does this answer your question? [How can Snap permissions be viewed and modified?](https://askubuntu.com/questions/1206951/how-can-snap-permissions-be-viewed-and-modified) – karel May 04 '23 at 07:59
  • Did you try to install VLC as a regular .deb package instead of snap? I would recommend avoiding snaps whenever possible. – raj May 17 '23 at 12:07
  • I get the same error. Ubuntu 23.04 changed to using virtual environments and moved away from system-wide installations of python/pip applications. This has broken a number of my applications that have python/pip dependencies, including all of my applications that have a dependency on qt. See https://peps.python.org/pep-0668/. I reinstalled using apt vlc as a short term workaround. – user2514157 May 31 '23 at 20:18

4 Answers4

3

Solution working for me:

sudo rm /var/cache/fontconfig/*
rm ~/.cache/fontconfig/*
fc-cache -r

Tested on:

snap    2.59.4
snapd   2.59.4
series  16
ubuntu  23.04
kernel  6.2.0-20-generic

Root cause: this issue https://github.com/keshavbhatt/olivia/issues/95#issuecomment-774747492

Benjam
  • 188
  • 1
  • 5
1

I also used snap originally, try to avoid it when possible. What worked for me:

sudo snap remove vlc
sudo apt install vlc
Ev1Than
  • 19
  • 1
  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community May 22 '23 at 17:14
  • This answer goes against the official installation procedure and would require more solid arguments to stand – Benjam Jun 13 '23 at 20:22
1

I had same problem and my solution was installing edge version of vlc with this command:

sudo snap install vlc --edge
Mehrshad
  • 11
  • 2
0

I had the very same problem. Thanks to @karel this command solved the issue for me:

sudo snap connect vlc:network :network
Giana
  • 39
  • 4
  • 2
    Doesn't solve it for me. VLC stopped working after upgrading Ubuntu to 23.04. Removing and reinstalling the snap doesn't help either. – Asaf Bartov May 12 '23 at 15:14
  • I can't install it after 23.04. sudo snap install vlc error: cannot install "vlc": Post "https://api.snapcraft.io/v2/snaps/refresh": dial tcp: lookup api.snapcraft.io on 127.0.0.53:53: server misbehaving ... I think vlc is not supported. – Wastrel Jul 04 '23 at 14:13