Ubuntu18.04系统更新

今早开机发现个系统问题,那就更新下系统,没想到还出了点儿小问题,这里简单做下记录。

异常情况:
sudo apt-get update执行该命令时,出现以下异常:

Get:46 http://mirrors.aliyun.com/ubuntu bionic-proposed/main DEP-11 64x64 Icons [13.3 kB]
Get:47 http://mirrors.aliyun.com/ubuntu bionic-proposed/universe amd64 Packages [54.3 kB]
Get:48 http://mirrors.aliyun.com/ubuntu bionic-proposed/universe i386 Packages [52.7 kB]
Get:49 http://mirrors.aliyun.com/ubuntu bionic-proposed/universe Translation-en [25.2 kB]
Get:50 http://mirrors.aliyun.com/ubuntu bionic-proposed/universe amd64 DEP-11 Metadata [115 kB]
Get:51 http://mirrors.aliyun.com/ubuntu bionic-proposed/universe DEP-11 48x48 Icons [116 kB]
Get:52 http://mirrors.aliyun.com/ubuntu bionic-proposed/universe DEP-11 64x64 Icons [181 kB]
Get:53 http://mirrors.aliyun.com/ubuntu bionic-proposed/multiverse amd64 DEP-11 Metadata [2,468 B]
Get:54 http://mirrors.aliyun.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [5,104 B]
Reading package lists... Done             
E: Repository 'http://dl.google.com/linux/chrome/deb stable Release' changed its 'Origin' value from 'Google, Inc.' to 'Google LLC'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.

其实解决的方法很简单
换用此命令sudo apt update 来更新,中间会提示是否接受变更,

$ sudo apt update
Hit:1 http://mirrors.aliyun.com/ubuntu bionic InRelease
Hit:2 http://mirrors.aliyun.com/ubuntu bionic-security InRelease                                                                                                                                                
Hit:3 http://mirrors.aliyun.com/ubuntu bionic-updates InRelease                                                                                                                                                   
Hit:4 http://archive.ubuntukylin.com:10006/ubuntukylin xenial InRelease                                                                                                       
Hit:5 http://mirrors.aliyun.com/ubuntu bionic-proposed InRelease                                                                                                              
Hit:6 http://mirrors.aliyun.com/ubuntu bionic-backports InRelease                                                                                                             
Ign:7 http://dl.google.com/linux/chrome/deb stable InRelease                                                                                            
Get:8 https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/ubuntu bionic InRelease [23.3 kB]                               
Get:9 http://dl.google.com/linux/chrome/deb stable Release [943 B]                                                               
Hit:10 http://linux.teamviewer.com/deb stable InRelease                                               
Hit:11 http://linux.teamviewer.com/deb preview InRelease                 
Hit:12 http://packages.microsoft.com/repos/vscode stable InRelease       
Get:13 http://dl.google.com/linux/chrome/deb stable Release.gpg [819 B]  
Ign:14 https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/ubuntu bionic/main amd64 Packages
Get:14 https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/ubuntu bionic/main amd64 Packages [8,697 B]
E: Repository 'http://dl.google.com/linux/chrome/deb stable Release' changed its 'Origin' value from 'Google, Inc.' to 'Google LLC'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Do you want to accept these changes and continue updating from this repository? [y/N] y
Get:15 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1,130 B]                                                                                                                                 
Fetched 33.9 kB in 6s (5,240 B/s)                                                                                                                                                                                 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
23 packages can be upgraded. Run 'apt list --upgradable' to see them.

然后继续执行sudo apt upgrade 完成更新

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值