分享互联网知识,建站、IT话题杂谈

There is no public key available for the following key IDs 解决办法

我的服务器系统都是用的Debian,在更新的时候经常会遇到下列错误:
There is no public key available for the following key IDs: 7638D0442B90D010
现在将解决办法记录下来,以便日后查阅。

检查apt的sources.list

  1. 首先检查系统目前的版本号
    ➜  ~  lsb_release -a
    No LSB modules are available.
    Distributor ID:	Debian
    Description:	Debian GNU/Linux 7.7 (wheezy)
    Release:	7.7
    Codename:	wheezy
    
  2. 然后检查/etc/apt/sources.list,看看跟新服务器中的版本号是否能对应上,这里的是wheezy

安装Keyring

apt-get install debian-archive-keyring debian-keyring
apt-get update

有些情况下可能只需要安装debian-keyring即可解决。

Leave a comment

Your email address will not be published. Required fields are marked *