在Ubuntu上安装非Snap版本的Firefox

部分情况下,Ubuntu原生提供的Snap版Firefox可能无法正常运作,此时,可以使用Mozilla官方版本分Firefox。

卸载Snap版Firefox:

sudo snap remove firefox

Mozilla官方FTP下载Firefox包:

cd ~
mkdir Firefox
cd Firefox
wget http://ftp.mozilla.org/pub/firefox/releases/128.10.1esr/linux-x86_64/zh-CN/firefox-128.10.1esr.tar.bz2
tar -vxf firefox-128.10.1esr.tar.bz2

安装Firefox:

sudo mv firefox /opt
sudo ln -s /opt/firefox/firefox /usr/local/bin/firefox

建立快捷方式:

sudo vi /usr/share/applications/firefox-browser.desktop

输入:

[Desktop Entry]
Version=1.0
Name=Firefox Web Browser
Comment=Browse the World Wide Web
GenericName=Web Browser
Keywords=Internet;WWW;Browser;Web;Explorer
Exec=firefox %u
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=/opt/firefox/browser/chrome/icons/default/default128.png
Categories=GNOME;GTK;Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;video/webm;application/x-xpinstall;
StartupNotify=true

参考:

https://ubuntu-mate.community/t/firefox-installation-guide-non-snap/25299

https://github.com/mozilla/sumo-kb/blob/main/install-firefox-linux/firefox.desktop

it
除非特别注明,本页内容采用以下授权方式: Creative Commons Attribution-ShareAlike 3.0 License