无法在 Ubuntu 23.10 上运行 Firefox

无法在 Ubuntu 23.10 上运行 Firefox

在终端上,当我尝试运行 Firefox 时,收到以下消息:

Command '/usr/bin/firefox' requires the firefox snap to be installed.
Please install it with:

snap install firefox

但它已经安装:

[sudo] password for begueradj: 
snap "firefox" is already installed, see 'snap help refresh'

更多信息:

begueradj@p50:~$ apt list --installed firefox -a
Listing... Done
firefox/mantic,now 1:1snap1-0ubuntu3 amd64 [installed]
firefox/mozilla 123.0.1~build1 amd64
firefox/mozilla 123.0~build3 amd64
firefox/mozilla 122.0.1~build1 amd64
firefox/mozilla 122.0~build2 amd64

编辑:

which firefox
/usr/local/bin/firefox

如何解决这个问题?

答案1

前面的评论者是对的。由于我需要恢复 Firefox snap 会话,所以我这样做了:

snap info firefox

输出:

name:      firefox
summary:   Mozilla Firefox web browser
publisher: Mozilla✓
store-url: https://snapcraft.io/firefox
contact:   https://support.mozilla.org/kb/file-bug-report-or-feature-request-mozilla
license:   unset
description: |
  Firefox is a powerful, extensible web browser with support for modern web
  application technologies.
commands:
  - firefox
  - firefox.geckodriver
snap-id:  3wdHCAVyZEmYsCMFDE9qt92UV8rC8Wdk
tracking: latest/stable
channels:
  latest/stable:    124.0-1      2024-03-19 (3972) 281MB -
  latest/candidate: 124.0-1      2024-03-12 (3972) 281MB -
  latest/beta:      125.0b2-1    2024-03-20 (4022) 283MB -
  latest/edge:      126.0a1      2024-03-21 (4026) 300MB -
  esr/stable:       115.9.0esr-2 2024-03-19 (3988) 256MB -
  esr/candidate:    115.9.0esr-2 2024-03-14 (3988) 256MB -
  esr/beta:         ↑                                    
  esr/edge:         ↑                                    
installed:          121.0.1-1               (3626) 257MB disabled

它说 Firefox 已被禁用。所以我已启用它与:

snap enable firefox

输入密码后,我就可以通过终端启动 Firefox:firefox

相关内容