You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

WSL2 Ubuntu环境下无法正常安装Firefox的问题求助

WSL2 Ubuntu环境下无法正常安装Firefox的问题求助

大家好,我不是Linux专家,最近在WSL2的Ubuntu环境里尝试安装Firefox时碰到了麻烦,想请各位帮忙看看具体情况:

首先我执行了这条安装命令:

sudo apt install firefox

得到的终端输出是:

Building dependency tree... Done

Reading state information... Done

The following NEW packages will be installed:

firefox

0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.

Need to get 72.3 kB of archives.

After this operation, 261 kB of additional disk space will be used.

Get:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 firefox amd64 1:1snap1-0ubuntu2 [72.3 kB]

Fetched 72.3 kB in 0s (420 kB/s)

Preconfiguring packages ...

Selecting previously unselected package firefox.

(Reading database ... 24109 files and directories currently installed.)

Preparing to unpack .../firefox_1%3a1snap1-0ubuntu2_amd64.deb ...

=> Installing the firefox snap

==> Checking connectivity with the snap store

===> System doesn't have a working snapd, skipping

Unpacking firefox (1:1snap1-0ubuntu2) ...

Setting up firefox (1:1snap1-0ubuntu2) ...

update-alternatives: using /usr/bin/firefox to provide /usr/bin/gnome-www-browser (gnome-www-browser) in auto mode

update-alternatives: using /usr/bin/firefox to provide /usr/bin/x-www-browser (x-www-browser) in auto mode

安装完成后,我尝试启动Firefox却失败了,收到的提示是:

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

于是我按照提示执行了snap install firefox这条命令,结果又出现了新的错误:

error: cannot communicate with server: Post "http://localhost/v2/snaps/firefox": dial unix /run/snapd.socket: connect: no such file or directory

有没有大佬能帮我解决这个问题呀?谢谢大家!

备注:内容来源于stack exchange,提问作者LightJack05

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.23 07:40:27