在Ubuntu中卸载Heroku CLI已经崩溃了
问题描述:
我使用的是Ubuntu 16.04,我按照说明操作,Uninstalling the Heroku CLI。在Ubuntu中卸载Heroku CLI已经崩溃了
sudo apt-get remove heroku
sudo apt-key del <Heroku's key from 'apt-key list'>
我没有卸载heroku-toolbelt
软件包,因为它没有被找到。 另外/etc/apt/sources.list.d/heroku.list
不存在。
问题出现在我做后续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.
我猜apt-key del
打破了容易,但我想完全卸载的Heroku-CLI(其中包括键),因为我不再需要它。
答
运行所
sudo add-apt-repository -r "deb https://cli-assets.heroku.com/branches/stable/apt ./"
解决的问题。