[英]Uninstalling Heroku CLI broke apt in Ubuntu
I'm using Ubuntu 16.04 and I've followed the instructions, Uninstalling the Heroku CLI . 我正在使用Ubuntu 16.04,并且已按照说明卸载Heroku CLI进行操作 。
sudo apt-get remove heroku
sudo apt-key del <Heroku's key from 'apt-key list'>
I didn't uninstall heroku-toolbelt
package since it was not found. 我没有卸载
heroku-toolbelt
软件包,因为没有找到它。 Also /etc/apt/sources.list.d/heroku.list
doesn't exist. 另外
/etc/apt/sources.list.d/heroku.list
不存在。
Problem arises when I do subsequent sudo apt update
and sudo apt dist-upgrade
. 当我执行后续的
sudo apt update
和sudo apt dist-upgrade
。
Err:7 https://cli-assets.heroku.com/branches/stable/apt ./ InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C927EBE00F1B0520
...
...
...
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://cli-assets.heroku.com/branches/stable/apt ./ InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C927EBE00F1B0520
W: Failed to fetch https://cli-assets.heroku.com/branches/stable/apt/./InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C927EBE00F1B0520
W: Some index files failed to download. They have been ignored, or old ones used instead.
I guess apt-key del
broke the apt but I wanted to completely uninstall Heroku-CLI (which included the key) as I no longer need it. 我猜
apt-key del
破坏了apt,但是我想完全卸载Heroku-CLI(包括密钥),因为我不再需要它了。
Running 运行
sudo add-apt-repository -r "deb https://cli-assets.heroku.com/branches/stable/apt ./"
Solved the problem. 解决了问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.