卸载 Heroku CLI 在 Ubuntu 中出现问题
Uninstalling Heroku CLI broke apt in Ubuntu
我正在使用 Ubuntu 16.04,并且我已按照说明进行操作,Uninstalling the 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
破坏了 apt,但我想完全卸载 Heroku-CLI(包括密钥),因为我不再需要它。
运行
sudo add-apt-repository -r "deb https://cli-assets.heroku.com/branches/stable/apt ./"
问题解决了。
我正在使用 Ubuntu 16.04,并且我已按照说明进行操作,Uninstalling the 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
破坏了 apt,但我想完全卸载 Heroku-CLI(包括密钥),因为我不再需要它。
运行
sudo add-apt-repository -r "deb https://cli-assets.heroku.com/branches/stable/apt ./"
问题解决了。