ubuntu 'This must be accepted explicitly before updates for this repository can be applied'
ubuntu 更新的指令
sudo apt-get update
但是执行完指令之后,却出现一下问题:
E: 仓库'http://dl.google.com/linux/chrome/deb stable Release'将其'Origin'值从'Google, Inc.'修改到了'Google LLC'
N: 为了让这个仓库能够应用,这必须在更新之前显式接受。更多细节请参阅 apt-secure(8) 手册。
英语环境下的输出
E: Repository ‘http://dl.google.com/linux/chrome-remote-desktop/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
将apt-get中的get去掉就变为手动选择更新了,这条命令的运行结果是:
E: 仓库'http://dl.google.com/linux/chrome/deb stable Release'将其'Origin'值从'Google, Inc.'修改到了'Google LLC'
N: 为了让这个仓库能够应用,这必须在更新之前显式接受。更多细节请参阅 apt-secure(8) 手册。
您是否愿意接受这些更改,并且继续从此仓库更新? [y/N] y
英语环境下的输出
E: Repository ‘http://dl.google.com/linux/chrome-remote-desktop/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
手动选择y就OK 了!然后之后可以正常的运行指令了:
$ sudo apt-get update
$ sudo apt-get upgrade