Ubuntu更新谷歌浏览器报错解决

 在linux 中更新谷歌浏览器,执行三步

先查看版本:

root@lwh:~/test$ google-chrome --version
Google Chrome 75.0.3770.100

执行以下三步: 

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome*
sudo apt-get install -f

 执行第三步时 报如下错误:

root@lwh:~/test$ sudo apt-get -f -y install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgbm1 libwayland-server0
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 246 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up gcc-5-base:amd64 (5.3.1-14ubuntu2) ...
mugeda@liweihui:~/mugeda-regression$ sudo dpkg -i /var/cache/apt/archives/google-chrome-stable_83.0.4103.116-1_amd64.deb
dpkg-deb: error: archive '/var/cache/apt/archives/google-chrome-stable_83.0.4103.116-1_amd64.deb' has premature member 'control.tar.xz' before 'control.tar.gz', giving up
dpkg: error processing archive /var/cache/apt/archives/google-chrome-stable_83.0.4103.116-1_amd64.deb (--install):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/google-chrome-stable_83.0.4103.116-1_amd64.deb

一般是依赖的问题,首先更新dpkg

sudo apt-get update && sudo apt-get install dpkg

查看源文件位置,然后运行:

sudo dpkg -i /var/cache/apt/archives/google-chrome-stable_83.0.4103.116-1_amd64.deb

提示安装成功,再次查看版本:

root@lwh:~/test$ google-chrome --version
Google Chrome 83.0.4103.116

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值