当我跑步时
sudo apt-get update
我收到以下错误:
W: GPG error: http://download.opensuse.org ./ Release: The following signatures were invalid: KEYEXPIRED 1436387333
我如何找到并删除导致此错误的 PPA?
答案1
命令
grep -r 'download.opensuse.org' /etc/apt
显示存储库的配置位置,例如:
/etc/apt/sources.list.save:deb http://download.opensuse.org/repositories/home:/sarimkhan/xUbuntu_14.04/ ./
/etc/apt/sources.list.save:# deb-src http://download.opensuse.org/repositories/home:/sarimkhan/xUbuntu_14.04/ ./
/etc/apt/sources.list:deb http://download.opensuse.org/repositories/home:/sarimkhan/xUbuntu_14.04/ ./
/etc/apt/sources.list:# deb-src http://download.opensuse.org/repositories/home:/sarimkhan/xUbuntu_14.04/ ./
就你的情况而言
/etc/apt/sources.list
有了这些知识,您可以借助以下方法删除该条目sed
sudo sed -i '/download.opensuse.org/d' /etc/apt/sources.list
为了避免将来产生混淆,您还应该删除备份文件中的条目
sudo sed -i '/download.opensuse.org/d' /etc/apt/sources.list.save
现在更新包信息
sudo apt-get update
问题就解决了。