Score:1

How do I remove this hashicorp ppa key?

za flag

This is the error I'm getting whenever I do sudo apt-get update or anything with apt.

This is the error

Err:2 https://apt.releases.hashicorp.com focal InRelease   
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY DA418C88A3219F7B

I've even went to:

/etc/apt/sources.list.d$ ls

But did not find anything related to hashicorp. How do I get rid of this annoying GPG key?


alessandro-strada-ubuntu-ppa-focal.list
alessandro-strada-ubuntu-ppa-focal.list.save
google-chrome.list
google-chrome.list.save
home:manuelschneid3r.list
home:manuelschneid3r.list.save
linuxgndu-ubuntu-sqlitebrowser-focal.list
linuxgndu-ubuntu-sqlitebrowser-focal.list.save
pgdg.list
pgdg.list.save
protonvpn-stable.list
protonvpn-stable.list.save
teams.list
teams.list.save
webupd8team-ubuntu-y-ppa-manager-focal.list
webupd8team-ubuntu-y-ppa-manager-focal.list.save

$ grep -r hashicorp /etc/apt --include="*.list"
/etc/apt/sources.list:deb [arch=amd64] https://apt.releases.hashicorp.com focal main 
/etc/apt/sources.list:# deb-src [arch=amd64] https://apt.releases.hashicorp.com focal main
N0rbert avatar
zw flag
Run `grep -r hashicorp /etc/apt --include="*.list"` and show the result.
Maan Patel avatar
za flag
@N0rbert Here is the result! /etc/apt/sources.list:deb [arch=amd64] https://apt.releases.hashicorp.com focal main /etc/apt/sources.list:# deb-src [arch=amd64] https://apt.releases.hashicorp.com focal main
Maan Patel avatar
za flag
@N0rbert please set your comment to an answer and I will accept it. I got the results and from that command and deleted it from sources.list.
N0rbert avatar
zw flag
Done, presented both methods.
Score:1
zw flag

You have two possible solutions:

  • to continue using the mentioned repository - re-add its key (not remove) by commands below:

    sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys DA418C88A3219F7B
    sudo apt-get update
    
  • to remove the mentioned repository - locate it by using command below

    grep -r hashicorp /etc/apt --include="*.list"
    

    and then remove it using any known method like

    sudo add-apt-repository -r "deb [arch=amd64] https://apt.releases.hashicorp.com focal main"
    

    then run sudo apt-get update as usual.

Maan Patel avatar
za flag
Thank you very much! I can't explain how grateful I am. I had this problem for a very long time!! Finally fixed. Thank you!
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.