![如何删除使用 snap 安装的应用程序:无法更新 snap 命名空间:参数无效](https://linux22.com/image/929188/%E5%A6%82%E4%BD%95%E5%88%A0%E9%99%A4%E4%BD%BF%E7%94%A8%20snap%20%E5%AE%89%E8%A3%85%E7%9A%84%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%EF%BC%9A%E6%97%A0%E6%B3%95%E6%9B%B4%E6%96%B0%20snap%20%E5%91%BD%E5%90%8D%E7%A9%BA%E9%97%B4%EF%BC%9A%E5%8F%82%E6%95%B0%E6%97%A0%E6%95%88.png)
我正在尝试从 snap 中删除一个应用程序...这是我的初始条件
sudo snap install audacity # install
type audacity
audacity is hashed (/snap/bin/audacity)
snap list | grep audacity
audacity 2.4.1 675 latest/stable diddledan -
当我从终端启动时
audacity
ln: failed to create symbolic link '/home/olga/snap/audacity/675/.config/gtk-2.0/gtkfilechooser.ini': File exists
.... more messages here
所以它运行正常,但是当我尝试卸载时出现此错误
sudo snap remove audacity
error: cannot perform the following tasks:
- Disconnect audacity:wayland from core:wayland (cannot update mount namespace of snap "audacity": cannot update preserved namespace of snap "audacity": cannot update snap namespace: invalid argument)
当然,我很想通过删除这些目录来强制执行它
/快照/ bin /大胆
/主页/奥尔加/快照/大胆
不过,我怀疑还有一种更简洁的方法……如果 Snap 通过显示更多有用的错误消息和/或行为来限制像我这样的用户,那肯定会很棒