ubuntu16.04卸载firefox,然后再次安装firefox

因为出现了下面的问题

Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system.

然而没有解决这个问题,然后想着直接卸载吧,然后安装一个中文版的firefox

卸载firefox

首先查看有哪些需要卸载的

dpkg --get-selections |grep firefox

然后直接卸载这三个文件

sudo apt-get purge firefox unity-scope-firefoxbookmarks firefox-locale-en firefox-locale-zh-hans

当然可以再次查看是否卸载干净

安装firefox

下载网址:http://firefox.com.cn/download/

我下载的是中文64位的

将下载好的压缩包解压,解压出的文件夹名为firefox,将其移动到/opt目录下,输入指令:

sudo mv firefox /opt

ubuntu所有的快捷方式都在/usr/share/applications目录下。进入到这个目录, 在root账户下,创建一个文件,命名为firefox.desktop,输入的指令:

cd /usr/share/applications/
sudo touch firefox.desktop

打开新创建的文件

sudo gedit firefox.desktop

直接输入,可能地址会有不同,具体指的是Icon

[Desktop Entry]
Name=firefox
Name[zh_CN]=火狐浏览器
Comment=火狐浏览器
Exec=/opt/firefox/firefox
Icon=/opt/firefox/browser/chrome/icons/default/default128.png
Terminal=false
Type=Application
Categories=Application
Encoding=UTF-8
StartupNotify=true

然后sudo reboot重启一下就可以了,点开左边最上面那个图标,然后搜索到firefox,最好在lock from Launcher。

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值