Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at: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

    By RahulOctober 30, 20191 Min Read

    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.

    Advertisement
    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

    Related Posts

    Understanding 2>&1 in Bash: A Beginner’s Guide

    How to Choose the Best Shebang (#!) for Your Shell Scripts

    Modulus Operator (%) in Bash

    Using Modulus Operator (%) in Bash

    Add A Comment

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • How to List Manually Installed Packages in Ubuntu & Debian
    • 10 Bash Tricks Every Developer Should Know
    • How to Validate Email Address in JavaScript
    • Firewalld: Common Firewall Rules and Commands
    • 12 Apk Commands in Alpine Linux Package Management
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

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