當我跑步時
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
問題就解決了。