You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu 17.10下Snap安装的VLC 3无法播放其他分区视频求助

Why Snap VLC 3 Can’t Access Other Partitions (And Flatpak’s Role)

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 $HOME folder, /media, and /mnt (for removable media).
  • If your other partition is mounted in a non-standard location (e.g., /data instead 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
      
  • 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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 07:28:49