【发布时间】:2021-10-05 08:30:27
【问题描述】:
今天,我尝试启动 vscode。我在 dmenu 中键入 code 并按 Enter。什么都没发生。我又做了几次,还是没有。现在我尝试在我的终端中打开它。 code。我收到一个错误:
/var/lib/snapd/snap/code/70/command-code.wrapper: line 2: /snap/code/70/electron-launch: No such file or directory
我尝试sudo snap refresh 并希望最好。
error: cannot perform the following tasks:
- Mount snap "core" (11420) (snap is unusable due to missing files; contact developer)
我想我希望不够好。 我尝试重新安装 vscode:
sudo snap remove code
sudo snap install code
它卸载了code,但是当我尝试重新安装它时,它向我显示一个错误:
error: This revision of snap "code" was published using classic confinement and thus may perform
arbitrary system changes outside of the security sandbox that snaps are usually confined to,
which may put your system at risk.
If you understand and want to proceed repeat the command including --classic.
感谢上帝,这不会阻止我安装代码。
sudo snap install --classic code
这应该可以。
error: cannot install "code": classic confinement requires snaps under /snap or symlink from /snap
to /var/lib/snapd/snap
没有。
我已经放弃了,有人可以帮我解决这个问题吗?
OS: Manjaro
Arch: x86_64
Kernel: 5.10.52-1-MANJARO
【问题讨论】: