Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Linux Tutorials»How to Fix ‘/usr/bin/dirmngr’: No such file or directory

    How to Fix ‘/usr/bin/dirmngr’: No such file or directory

    RahulBy RahulOctober 20, 20191 Min ReadUpdated:October 30, 2019

    During the importing of the GnuPG key on our Debian system, we faced the following error. This is due to the minimal installation of our Debian servers. This tutorial will help you to fix “‘/usr/bin/dirmngr’: No such file or directory” error. This tutorial will help you to solve this on all Debian based Linux systems.

    sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 4B7C549A058F8B6B
    
    Executing: /tmp/apt-key-gpghome.1uzliCJjyg/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv 4B7C549A058F8B6B
    gpg: failed to start the dirmngr '/usr/bin/dirmngr': No such file or directory
    gpg: connecting dirmngr at '/run/user/0/gnupg/d.9awoasrggmw7i87e3cdkmbgp/S.dirmngr' failed: No such file or directory
    gpg: keyserver receive failed: No dirmngr
    

    Solution

    You just need to install the dirmngr package on your system. Simply execute the following commands on terminal to install:

    sudo apt update
    sudo apt install dirmngr --install-recommends
    

    After installing dirmngr package, again tried to import the GnuPG key and successfully imported it to our Debian system.

    sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 4B7C549A058F8B6B
    
    Executing: /tmp/apt-key-gpghome.UbN2VLG9LZ/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv 4B7C549A058F8B6B
    gpg: key 4B7C549A058F8B6B: public key "MongoDB 4.2 Release Signing Key " imported
    gpg: Total number processed: 1
    gpg:               imported: 1
    
    dirmngr error
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow To Install Wine 5.1 on CentOS/RHEL 8
    Next Article How to Install MariaDB 10.4 on CentOS 8 & RHEL 8

    Related Posts

    What is the /etc/aliases file

    2 Mins Read

    What is the /etc/nsswitch.conf file in Linux

    2 Mins Read

    How to Setup Squid Proxy Server on Ubuntu and Debian

    Updated:June 17, 20225 Mins Read

    How to Delete a Let’s Encrypt Certificate using Certbot

    Updated:June 3, 20222 Mins Read

    How to Install Latest Git on Ubuntu 22.04

    Updated:May 31, 20222 Mins Read

    How To Install LibreOffice on Ubuntu 22.04

    Updated:May 23, 20222 Mins Read

    Leave A Reply Cancel Reply

    Recent Posts
    • Filesystem Hierarchy Structure (FHS) in Linux
    • How to accept user input in Python
    • What is difference between var, let and const in JavaScript?
    • What is CPU? – Definition, Types and Parts
    • What is the /etc/aliases file
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.