Google Chrome PPA升级无效签名


48

运行时:

sudo apt-get update && sudo apt-get dist-upgrade

我得到以下输出:

Ign http://security.ubuntu.com utopic-security InRelease
Ign http://gb.archive.ubuntu.com utopic InRelease                              
Ign http://extras.ubuntu.com utopic InRelease                                  
Get:1 http://security.ubuntu.com utopic-security Release.gpg [933 B]           
Ign http://dl.google.com stable InRelease                                      
Ign http://gb.archive.ubuntu.com utopic-updates InRelease            
Get:2 http://extras.ubuntu.com utopic Release.gpg [72 B]                       
Get:3 http://security.ubuntu.com utopic-security Release [62.0 kB]             
Ign http://gb.archive.ubuntu.com utopic-backports InRelease                    
Get:4 http://dl.google.com stable Release.gpg [198 B]                          
Hit http://extras.ubuntu.com utopic Release                                    
Hit http://gb.archive.ubuntu.com utopic Release.gpg                            
Get:5 http://dl.google.com stable Release [1,347 B]                            
Err http://dl.google.com stable Release                                        

Get:6 http://gb.archive.ubuntu.com utopic-updates Release.gpg [933 B]          
Hit http://extras.ubuntu.com utopic/main Sources                         
Hit http://gb.archive.ubuntu.com utopic-backports Release.gpg
Get:7 http://security.ubuntu.com utopic-security/main Sources [44.6 kB]
Hit http://gb.archive.ubuntu.com utopic Release                                
Hit http://extras.ubuntu.com utopic/main amd64 Packages                        
Get:8 http://gb.archive.ubuntu.com utopic-updates Release [62.0 kB]            
Hit http://extras.ubuntu.com utopic/main i386 Packages                         
Get:9 http://security.ubuntu.com utopic-security/restricted Sources [2,107 B]  
Get:10 http://security.ubuntu.com utopic-security/universe Sources [8,053 B]   
Get:11 http://security.ubuntu.com utopic-security/multiverse Sources [1,951 B] 
Hit http://gb.archive.ubuntu.com utopic-backports Release                      
Get:12 http://security.ubuntu.com utopic-security/main amd64 Packages [129 kB] 
Hit http://gb.archive.ubuntu.com utopic/main Sources                           
Hit http://gb.archive.ubuntu.com utopic/restricted Sources                     
Hit http://gb.archive.ubuntu.com utopic/universe Sources                       
Hit http://gb.archive.ubuntu.com utopic/multiverse Sources              
Get:13 http://security.ubuntu.com utopic-security/restricted amd64 Packages [8,496 B]
Hit http://gb.archive.ubuntu.com utopic/main amd64 Packages                    
Get:14 http://security.ubuntu.com utopic-security/universe amd64 Packages [54.4 kB]
Hit http://gb.archive.ubuntu.com utopic/restricted amd64 Packages              
Ign http://extras.ubuntu.com utopic/main Translation-en_GB                     
Hit http://gb.archive.ubuntu.com utopic/universe amd64 Packages                
Ign http://extras.ubuntu.com utopic/main Translation-en                        
Get:15 http://security.ubuntu.com utopic-security/multiverse amd64 Packages [4,139 B]
Hit http://gb.archive.ubuntu.com utopic/multiverse amd64 Packages              
Hit http://gb.archive.ubuntu.com utopic/main i386 Packages                     
Get:16 http://security.ubuntu.com utopic-security/main i386 Packages [128 kB]
Hit http://gb.archive.ubuntu.com utopic/restricted i386 Packages       
Hit http://gb.archive.ubuntu.com utopic/universe i386 Packages                 
Get:17 http://security.ubuntu.com utopic-security/restricted i386 Packages [8,438 B]
Hit http://gb.archive.ubuntu.com utopic/multiverse i386 Packages               
Get:18 http://security.ubuntu.com utopic-security/universe i386 Packages [54.4 kB]
Hit http://gb.archive.ubuntu.com utopic/main Translation-en_GB                 
Hit http://gb.archive.ubuntu.com utopic/main Translation-en                    
Get:19 http://security.ubuntu.com utopic-security/multiverse i386 Packages [4,325 B]
Hit http://gb.archive.ubuntu.com utopic/multiverse Translation-en_GB           
Hit http://security.ubuntu.com utopic-security/main Translation-en
Hit http://gb.archive.ubuntu.com utopic/multiverse Translation-en
Hit http://security.ubuntu.com utopic-security/multiverse Translation-en
Hit http://gb.archive.ubuntu.com utopic/restricted Translation-en_GB
Hit http://security.ubuntu.com utopic-security/restricted Translation-en
Hit http://gb.archive.ubuntu.com utopic/restricted Translation-en
Hit http://gb.archive.ubuntu.com utopic/universe Translation-en_GB
Hit http://gb.archive.ubuntu.com utopic/universe Translation-en
Get:20 http://gb.archive.ubuntu.com utopic-updates/main Sources [81.0 kB]
Hit http://security.ubuntu.com utopic-security/universe Translation-en 
Get:21 http://gb.archive.ubuntu.com utopic-updates/restricted Sources [2,107 B]
Get:22 http://gb.archive.ubuntu.com utopic-updates/universe Sources [19.9 kB]
Get:23 http://gb.archive.ubuntu.com utopic-updates/multiverse Sources [1,951 B]
Get:24 http://gb.archive.ubuntu.com utopic-updates/main amd64 Packages [208 kB]
Get:25 http://gb.archive.ubuntu.com utopic-updates/restricted amd64 Packages [8,496 B]
Get:26 http://gb.archive.ubuntu.com utopic-updates/universe amd64 Packages [81.3 kB]
Get:27 http://gb.archive.ubuntu.com utopic-updates/multiverse amd64 Packages [4,139 B]
Get:28 http://gb.archive.ubuntu.com utopic-updates/main i386 Packages [207 kB] 
Get:29 http://gb.archive.ubuntu.com utopic-updates/restricted i386 Packages [8,438 B]
Get:30 http://gb.archive.ubuntu.com utopic-updates/universe i386 Packages [81.3 kB]
Get:31 http://gb.archive.ubuntu.com utopic-updates/multiverse i386 Packages [4,325 B]
Hit http://gb.archive.ubuntu.com utopic-updates/main Translation-en               
Hit http://gb.archive.ubuntu.com utopic-updates/multiverse Translation-en
Hit http://gb.archive.ubuntu.com utopic-updates/restricted Translation-en
Hit http://gb.archive.ubuntu.com utopic-updates/universe Translation-en
Hit http://gb.archive.ubuntu.com utopic-backports/main Sources
Hit http://gb.archive.ubuntu.com utopic-backports/restricted Sources
Hit http://gb.archive.ubuntu.com utopic-backports/multiverse Sources
Hit http://gb.archive.ubuntu.com utopic-backports/universe Sources
Hit http://gb.archive.ubuntu.com utopic-backports/main amd64 Packages
Hit http://gb.archive.ubuntu.com utopic-backports/restricted amd64 Packages
Hit http://gb.archive.ubuntu.com utopic-backports/multiverse amd64 Packages
Hit http://gb.archive.ubuntu.com utopic-backports/universe amd64 Packages
Hit http://gb.archive.ubuntu.com utopic-backports/main i386 Packages
Hit http://gb.archive.ubuntu.com utopic-backports/restricted i386 Packages
Hit http://gb.archive.ubuntu.com utopic-backports/multiverse i386 Packages
Hit http://gb.archive.ubuntu.com utopic-backports/universe i386 Packages
Hit http://gb.archive.ubuntu.com utopic-backports/main Translation-en
Hit http://gb.archive.ubuntu.com utopic-backports/multiverse Translation-en
Hit http://gb.archive.ubuntu.com utopic-backports/restricted Translation-en
Hit http://gb.archive.ubuntu.com utopic-backports/universe Translation-en
Fetched 1,283 kB in 6s (207 kB/s)                                                                                                              
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://dl.google.com stable Release: The following signatures were invalid: BADSIG A040830F7FAC5991 Google, Inc. Linux Package Signing Key <linux-packages-keymaster@google.com>

W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release  

W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

这是位:

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://dl.google.com stable Release: The following signatures were invalid: BADSIG A040830F7FAC5991 Google, Inc. Linux Package Signing Key <linux-packages-keymaster@google.com>

W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release  

W: Some index files failed to download. They have been ignored, or old ones used instead.

有什么需要担心的吗?我再次运行了命令,现在它说:

Ign http://extras.ubuntu.com utopic InRelease
Ign http://dl.google.com stable InRelease                                                        
Ign http://gb.archive.ubuntu.com utopic InRelease                                                 
Hit http://extras.ubuntu.com utopic Release.gpg                                                   
Ign http://gb.archive.ubuntu.com utopic-updates InRelease                                         
Get:1 http://dl.google.com stable Release.gpg [198 B]                                                                   
Hit http://extras.ubuntu.com utopic Release                                                                                        
Ign http://gb.archive.ubuntu.com utopic-backports InRelease                                       
Hit http://gb.archive.ubuntu.com utopic Release.gpg                                         
Get:2 http://dl.google.com stable Release [1,347 B]                                         
Get:3 http://gb.archive.ubuntu.com utopic-updates Release.gpg [933 B]  
Hit http://gb.archive.ubuntu.com utopic-backports Release.gpg          
Ign http://security.ubuntu.com utopic-security InRelease               
Hit http://gb.archive.ubuntu.com utopic Release                        
Get:4 http://gb.archive.ubuntu.com utopic-updates Release [62.0 kB]                                              
Hit http://extras.ubuntu.com utopic/main Sources                                                                         
Get:5 http://security.ubuntu.com utopic-security Release.gpg [933 B]                                                     
Get:6 http://dl.google.com stable/main amd64 Packages [1,193 B]                                      
Hit http://extras.ubuntu.com utopic/main amd64 Packages                                                                                     
Hit http://gb.archive.ubuntu.com utopic-backports Release                                   
Hit http://extras.ubuntu.com utopic/main i386 Packages                                                             
Get:7 http://dl.google.com stable/main i386 Packages [1,176 B]                              
Get:8 http://security.ubuntu.com utopic-security Release [62.0 kB]                                         
Ign http://extras.ubuntu.com utopic/main Translation-en_GB                                           
Ign http://extras.ubuntu.com utopic/main Translation-en                        
Ign http://dl.google.com stable/main Translation-en_GB                         
Ign http://dl.google.com stable/main Translation-en                      
Get:9 http://security.ubuntu.com utopic-security/main Sources [44.6 kB]
Get:10 http://security.ubuntu.com utopic-security/restricted Sources [2,107 B]
Get:11 http://gb.archive.ubuntu.com utopic-updates/main Sources [81.0 kB]
Get:12 http://security.ubuntu.com utopic-security/universe Sources [8,053 B]
Get:13 http://gb.archive.ubuntu.com utopic-updates/restricted Sources [2,107 B]  
Get:14 http://security.ubuntu.com utopic-security/multiverse Sources [1,951 B]    
Get:15 http://gb.archive.ubuntu.com utopic-updates/universe Sources [19.9 kB]     
Get:16 http://gb.archive.ubuntu.com utopic-updates/multiverse Sources [1,951 B]
Get:17 http://gb.archive.ubuntu.com utopic-updates/main amd64 Packages [208 kB]
Get:18 http://security.ubuntu.com utopic-security/main amd64 Packages [129 kB]
Get:19 http://gb.archive.ubuntu.com utopic-updates/restricted amd64 Packages [8,496 B]
Get:20 http://security.ubuntu.com utopic-security/restricted amd64 Packages [8,496 B]
Get:21 http://gb.archive.ubuntu.com utopic-updates/universe amd64 Packages [81.3 kB]
Get:22 http://security.ubuntu.com utopic-security/universe amd64 Packages [54.4 kB]
Get:23 http://gb.archive.ubuntu.com utopic-updates/multiverse amd64 Packages [4,139 B]         
Get:24 http://gb.archive.ubuntu.com utopic-updates/main i386 Packages [207 kB]      
Get:25 http://security.ubuntu.com utopic-security/multiverse amd64 Packages [4,139 B]
Get:26 http://security.ubuntu.com utopic-security/main i386 Packages [128 kB]     
Get:27 http://gb.archive.ubuntu.com utopic-updates/restricted i386 Packages [8,438 B]
Get:28 http://gb.archive.ubuntu.com utopic-updates/universe i386 Packages [81.3 kB]           
Get:29 http://gb.archive.ubuntu.com utopic-updates/multiverse i386 Packages [4,325 B]        
Get:30 http://security.ubuntu.com utopic-security/restricted i386 Packages [8,438 B]
Get:31 http://gb.archive.ubuntu.com utopic-backports/main Sources [765 B]          
Hit http://gb.archive.ubuntu.com utopic-backports/restricted Sources    
Hit http://gb.archive.ubuntu.com utopic-backports/multiverse Sources    
Get:32 http://security.ubuntu.com utopic-security/universe i386 Packages [54.4 kB]
Get:33 http://gb.archive.ubuntu.com utopic-backports/universe Sources [9,218 B]
Get:34 http://gb.archive.ubuntu.com utopic-backports/main amd64 Packages [570 B]  
Hit http://gb.archive.ubuntu.com utopic-backports/restricted amd64 Packages      
Hit http://gb.archive.ubuntu.com utopic-backports/multiverse amd64 Packages
Get:35 http://security.ubuntu.com utopic-security/multiverse i386 Packages [4,325 B]
Get:36 http://gb.archive.ubuntu.com utopic-backports/universe amd64 Packages [10.6 kB]
Get:37 http://gb.archive.ubuntu.com utopic-backports/main i386 Packages [574 B]
Hit http://gb.archive.ubuntu.com utopic-backports/restricted i386 Packages
Hit http://gb.archive.ubuntu.com utopic-backports/multiverse i386 Packages
Get:38 http://gb.archive.ubuntu.com utopic-backports/universe i386 Packages [10.6 kB]
Hit http://gb.archive.ubuntu.com utopic-backports/multiverse Translation-en
Hit http://gb.archive.ubuntu.com utopic-backports/restricted Translation-en
Hit http://gb.archive.ubuntu.com utopic/main Sources
Hit http://gb.archive.ubuntu.com utopic/restricted Sources    
Hit http://gb.archive.ubuntu.com utopic/universe Sources      
Hit http://gb.archive.ubuntu.com utopic/multiverse Sources
Hit http://gb.archive.ubuntu.com utopic/main amd64 Packages
Hit http://gb.archive.ubuntu.com utopic/restricted amd64 Packages
Hit http://gb.archive.ubuntu.com utopic/universe amd64 Packages
Hit http://gb.archive.ubuntu.com utopic/multiverse amd64 Packages
Hit http://gb.archive.ubuntu.com utopic/main i386 Packages
Hit http://gb.archive.ubuntu.com utopic/restricted i386 Packages   
Hit http://gb.archive.ubuntu.com utopic/universe i386 Packages     
Hit http://security.ubuntu.com utopic-security/main Translation-en 
Hit http://gb.archive.ubuntu.com utopic/multiverse i386 Packages   
Hit http://gb.archive.ubuntu.com utopic/main Translation-en_GB     
Hit http://gb.archive.ubuntu.com utopic/main Translation-en        
Hit http://gb.archive.ubuntu.com utopic/multiverse Translation-en_GB
Hit http://security.ubuntu.com utopic-security/multiverse Translation-en
Hit http://gb.archive.ubuntu.com utopic/multiverse Translation-en
Hit http://gb.archive.ubuntu.com utopic/restricted Translation-en_GB
Hit http://gb.archive.ubuntu.com utopic/restricted Translation-en
Hit http://gb.archive.ubuntu.com utopic/universe Translation-en_GB
Hit http://security.ubuntu.com utopic-security/restricted Translation-en
Hit http://gb.archive.ubuntu.com utopic/universe Translation-en
Hit http://gb.archive.ubuntu.com utopic-updates/main Translation-en
Hit http://gb.archive.ubuntu.com utopic-updates/multiverse Translation-en
Hit http://gb.archive.ubuntu.com utopic-updates/restricted Translation-en
Hit http://security.ubuntu.com utopic-security/universe Translation-en
Hit http://gb.archive.ubuntu.com utopic-updates/universe Translation-en
Hit http://gb.archive.ubuntu.com utopic-backports/main Translation-en
Hit http://gb.archive.ubuntu.com utopic-backports/universe Translation-en
Fetched 1,316 kB in 11s (115 kB/s)                                                                                                             
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  google-chrome-stable
1 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
Need to get 48.5 MB of archives.
After this operation, 4,096 B of additional disk space will be used.
Do you want to continue? [Y/n] 

那么这意味着什么,我应该信任此升级吗?此升级来自我在Google官方页面上为其安装的Google Chrome浏览器添加的PPA。

以下是有关该PPA的更多信息:

Google Chrome PPA


操作系统信息:

Description:    Ubuntu 14.10
Release:    14.10

可能与askubuntu.com/questions/598979/update-failing-for-google-chrome重复(但不能标记,因为该问题没有答案。)
w-flo 2015年

Answers:


66

打开一个终端并输入以下内容:

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

这将导入Google更新的GPG密钥。

您应该能够更新系统而没有任何错误。

资料来源:Google Linux储存库


2
问题是随机也失败了。我的构建在TravisCI上运行,其中一些由于相同的原因而失败。我正确地安装了密钥,就像您上面显示的一样。它刚刚开始。=(
乔恩·史蒂文斯

我已经有了该密钥,直到几天前它一直在工作。我删除了我拥有的密钥,并使用了上面的命令,但不能解决问题。我仍然有无效的签名错误。米哈伊尔的回答为我解决了这个问题。不再出现GPG错误,并且没有出现Google Chrome的新更新。
Mateusz Stachowski

已修复的错误NO_PUBKEY 6494C6D6997C215E
Thomasleveil,

30

该站点具有适用于64位Ubuntu 14.04 LTS的唯一解决方案:

http://www.omgubuntu.co.uk/2016/03/fix-failed-to-fetch-google-chrome-apt-error-ubuntu

(这里是摘要。有关更多详细信息,请参见网站)。

  1. 修改google-chrome.list(假设您位于稳定频道中,如果没有,请查看网站上的精选评论):

    sudo gedit /etc/apt/sources.list.d/google-chrome.list
    
  2. 在打开的文本文件中,编辑文件,使该行显示为:

    deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
    
  3. 再次尝试更新

    sudo apt-get update
    

amd64标签到底有什么作用?这对某些发行版无效吗?
MichaelChirico

3
它为您指出了64位版本的Chrome。链接文章中的更多详细信息。
Ed J

这对我有所帮助,尽管我的错误与OP有所不同。这是W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release: Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)
弗朗哈特曼

@ frant.hartm同样的问题,是的,此修复程序也对我有用。
Pointy

26

这将比以下解决方案更好地工作:

apt-key list google

您将在此列表中看到此内容,不带[E]表示已过期,请查看最后一个 7FAC 5991

pub   dsa1024 2007-03-08 [SC]
      4CCA 1EAF 950C EE4A B839  76DC A040 830F 7FAC 5991
uid           [ unknown] Google, Inc. Linux Package Signing Key <linux-packages-keymaster@google.com>
sub   elg2048 2007-03-08 [E]

pub   rsa4096 2016-04-12 [SC]
      EB4C 1BFD 4F04 2F6D DDCC  EC91 7721 F63B D38B 4796
uid           [ unknown] Google Inc. (Linux Packages Signing Authority) <linux-packages-keymaster@google.com>
sub   rsa4096 2016-04-12 [S] [expires: 2019-04-12]

您现在将执行以下操作:

sudo apt-key del 7FAC5991

然后,您将执行以下命令:

sudo apt-get clean
cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get clean
sudo apt-get update

完成之后,您将执行此操作以从另一个密钥服务器安装密钥环:

wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

然后您执行:

sudo apt-get update
sudo apt-get dist-upgrade

现在您已经准备就绪。:)


谢谢您,这项工作对我来说不再有关于无效GPG密钥和更新中的新版本Google Chrome的投诉。
Mateusz Stachowski

2
我在Kubuntu 15.04上做了同样的事情。gpg --recv-keys命令仅对BADSIG编号加上“ 0x”后对我有用。因此,命令为gpg --keyserver hkp://subkeys.pgp.net --recv-keys 0xA040830F7FAC5991
Mario S

2
我一直在收到超时错误hkp://subkeys.pgp.net-我曾经用过hkp://gpg.mit.edu并且可行。

按原样在15.10上为我工作,未修改keyid或url。
mmdanziger

1
删除密钥后,“ apt-get clean”;apt-get update”步骤,我收到错误消息“ W:GPG错误:dl.google.com稳定发布:由于公共密钥不可用,无法验证以下签名:NO_PUBKEY A040830F7FAC5991 NO_PUBKEY 1397BC53640DB551;” 我还能尝试什么?
理查德

1

我必须从Google https://www.google.com/linuxrepositories/下载密钥文件,并将其导入到软件源身份验证中。

重新运行Sudo Apt更新后,我可以选择回答问题

Hit:8 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:9 http://packages.linuxmint.com tara Release
Hit:10 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
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:11 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1,130 B] Fetched 2,892 B in 4s (705 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up-to-date.

希望这对某人有帮助

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.