skip to Main Content

When I run curl, it shows this error:

~$ curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
gpg: can't connect to the agent: IPC connect call failed

I’m unable to install yarn.

I tried killing:

~$ kill -9 gpg-agent 

and restarting:

~$ gpg-agent --daemon       

but nothing worked so far. Any advice?

2

Answers


  1. Chosen as BEST ANSWER

    I did this from my root -

    npm install -g yarn
    

    Checked if the yarn is installed by -

    yarn --version
    

    It worked.


  2. The following worked for me:

    sudo apt remove gnupg
    sudo apt autoremove
    sudo apt install gnupg1
    

    This installs GNUPG Classic. Read more here.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search