今早开机发现个系统问题,那就更新下系统,没想到还出了点儿小问题,这里简单做下记录。
异常情况:
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
完成更新