Ubuntu 17.10下Snap安装的VLC 3无法播放其他分区视频求助
Great question—this is a common gotcha with sandboxed apps like Snap, and I’ve run into similar issues myself back on Ubuntu 17.10. Let’s break this down:
Is this a Snap issue?
Yes, almost certainly. Here’s why:
- Snap apps run in a strict sandbox by default, which restricts their filesystem access. Unlike the pre-installed deb version of VLC 2.2.x (which had full system access), Snap’s confinement limits VLC to specific directories like your
$HOMEfolder,/media, and/mnt(for removable media). - If your other partition is mounted in a non-standard location (e.g.,
/datainstead of/media/your-drive), or if the mount permissions don’t allow the Snap sandbox to read it, VLC 3 won’t be able to access those files.
Fix for Snap VLC
You can grant VLC access to removable/mounted partitions with a simple command:
snap connect vlc:removable-media
This adds the necessary permission to let the Snap sandbox access external drives and mounted partitions. If your partition is in a non-standard path, you might also need to adjust its mount permissions in /etc/fstab to ensure your user account has read access (add uid=$(id -u),gid=$(id -g) to the mount options).
Will Flatpak VLC work?
In most cases, yes. Flatpak also uses sandboxing, but its permission system is more flexible, especially compared to the older Snap implementation in Ubuntu 17.10:
- Flatpak’s default permissions for VLC often include access to common mount points, but if your partition is in a non-standard location, you can manually grant access:
- Temporary access for a single session:
flatpak run --filesystem=/path/to/your/partition org.videolan.VLC - Permanent access:
flatpak override org.videolan.VLC --filesystem=/path/to/your/partition
- Temporary access for a single session:
- Flatpak’s handling of filesystem permissions was more mature in 2017 (when Ubuntu 17.10 was released) than Snap’s, so it’s less likely to hit this exact issue out of the box.
内容的提问来源于stack exchange,提问作者sai

