Fedora

在 Fedora 上找不到使用 snap 安裝的軟體

  • June 30, 2021

我嘗試在 Fedora 上安裝 PyCharm:

[ac@fedora ~]$ sudo snap install pycharm-community --classic
2021-06-30T14:26:23+02:00 INFO Waiting for automatic snapd restart...
pycharm-community 2021.1.2 from jetbrains✓ installed

但我無法啟動它:

[ac@fedora ~]$ pycharm
bash: pycharm: command not found...
[ac@fedora ~]$ pycharm-community
bash: pycharm-community: command not found...

我無法使用 windows 命令在菜單中找到它…

那麼如何在 Fedora 上找到已安裝的軟體呢?我應該以不同的方式來做嗎?

snap run不適用於所有軟體?

我試著做同樣的事情

[ac@fedora Downloads]$ sudo dnf install mysql-workbench-community-8.0.25-1.fc34.src-1.rpm 
[sudo] password for ac: 
Last metadata expiration check: 1:28:28 ago on Wed 30 Jun 2021 03:23:29 PM CEST.
Package mysql-workbench-community-8.0.25-1.fc34.src is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[ac@fedora Downloads]$ snap run mysql-workbench-community
error: cannot find current revision for snap mysql-workbench-community: readlink /var/lib/snapd/snap/mysql-workbench-community/current: no such file or directory

snap在您的情況下,可以使用snap run <name>so啟動安裝的應用程序snap run pycharm-community

引用自:https://unix.stackexchange.com/questions/656413