我删除了/snap,该怎么办?

我删除了/snap,该怎么办?

我是一个linux新手。我想删除一个程序,不小心输入了sudo rm -r /snap.现在我无法启动某些程序。

例如,当我opera在终端中输入打开歌剧时,它会显示

Command 'opera' not found, but can be installed with:
sudo snap install opera

但当我输入时sudo snap install opera它说

snap "opera" is already installed, see 'snap help refresh'

如果我尝试rm opera它说

rm: cannot remove 'opera': No such file or directory

我该怎么办?

相关内容