Ubuntu卸载firefox浏览器安装google浏览器

1. 前言

        Ubuntu20.4系统,默认用的firefox浏览器,在2022.09.25日之后打开钉钉网页版,突然提示目前该浏览器不支持企业钉钉网页版了,请使用UC浏览器或google浏览器,之前firefox是支持打开钉钉网页版的,现在突然打不开有点不习惯,但是呢,如果两个浏览器同时安装使用的话,我个人Ubuntu系统经常莫名地卡死,于是乎就先卸载firefox,然后安装google浏览器,本文记录一下卸载和安装的步骤过程。

2. 卸载firefox浏览器

2.1 命令查看firefox安装的信息

dpkg --get-selections 表示查看系统中所有install的包信息,然后grep过滤出firefox的安装信息

dpkg --get-selections |grep firefox

显示如下:

 

2.2 卸载包

卸载命令: 执行 sudo apt-get purge +每一个包名字

sudo apt-get purge firefox firefox-locale-en firefox-locale-zh-hans

也可以用dpkg -P命令去卸载, -P(purge)是不保留配置卸载,-r  (remove) 保留配置卸载,咱们卸载软件肯定是希望全部清理干净啊,当然选择 -P
 

sudo dpkg  -P  firefox  firefox-locale-en  firefox-locale-zh-hans

结果如下:

 出现如上信息,则表示卸载成功。

3. 安装google浏览器

使用wget命令下载最新稳定版Chrome .deb包:

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

安装Google Chrome

sudo dpkg -i google-chrome-stable_current_amd64.deb

安装成功如下:

 在Ubuntu桌面左下角点击“显示应用程序”,找到chrome,并把快捷方式添加到收藏夹中,安装完成。

### 如何在 Ubuntu 18.04 上更新 Firefox 浏览器至最新版本 #### 使用官方源更新 Firefox 对于大多数用户而言,最简单的方法是从 Ubuntu 的默认软件仓库获取最新的稳定版 Firefox。这可以通过命令行完成: ```bash sudo apt update && sudo apt install firefox ``` 这条命令会刷新本地包索引并安装或升级现有的 Firefox 安装[^1]。 #### 手动安装最新版本的 Firefox 如果希望获得比官方库更及时发布的版本,则可以手动下载和安装来自 Mozilla 或者其他可信站点提供的预编译二进制文件。具体操作如下: - 访问 [Firefox官方网站](https://www.firefox.com.cn/download/) 下载适用于 Linux 64位系统的压缩包 `Firefox-latest-x86_64.tar.bz2`[^3]; - 解压该档案到 `/opt` 目录下(或其他合适位置),并将解压出来的目录重命名为 `firefox`: ```bash tar -jxvf Firefox-latest-x86_64.tar.bz2 -C /opt/ cd /opt/ sudo mv firefox/ firefox-new-version/ ln -sfT ./firefox-new-version firefox ``` 这里假设新版本被放置于名为 `firefox-new-version` 文件夹内;最后一步创建了一个指向实际安装路径的符号链接以便保持一致性。 - 创建桌面启动器以方便访问新的 Firefox 实例。编辑 `.desktop` 文件来定义应用程序图标及其行为特性: ```ini [Desktop Entry] Version=1.0 Name=Mozilla Firefox Web Browser (latest) Comment=Browse the web with latest version of Firefox Exec=/opt/firefox/firefox %u Icon=/opt/firefox/browser/chrome/icons/default/default128.png Terminal=false Type=Application Categories=Network;WebBrowser; MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;x-scheme-handler/http;x-scheme-handler/https; Keywords=Internet;WWW;online;browsing; X-Ubuntu-Gettext-Domain=firefox ``` 保存上述配置为 `~/.local/share/applications/firefox-latest.desktop` 即可让系统识别此自定义应用入口。 #### 验证安装成功与否 为了确认刚刚的操作是否生效,可以在终端运行以下命令查看当前使用的 Firefox 版本号: ```bash firefox --version ``` 它应当返回所期望的新版本信息而不是旧有的那个。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值