2017-06-30 30 views
0

我使用的是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 updatesudo 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(其中包括鍵),因爲我不再需要它。

回答

0

運行所

sudo add-apt-repository -r "deb https://cli-assets.heroku.com/branches/stable/apt ./" 

解決的問題。