Page 1 of 1

Can't install dirmngr

Posted: 09 Jul 2019, 01:29
by camow7
I'm trying to install the dirmngr package but I'm getting the following error:

Code: Select all

pi@RevPi12146:~ $ sudo apt-get install dirmngr
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package dirmngr is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'dirmngr' has no installation candidate
I'm running Stretch:
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Re: Can't install dirmngr

Posted: 15 Jul 2019, 11:11
by zhan
Hi camow7,

have you ever used sudo apt-get update before install the dirmngr ?

Re: Can't install dirmngr

Posted: 17 Jul 2019, 05:08
by camow7
Yes I solved this issue via the solution here: https://www.raspberrypi.org/forums/view ... p?t=209475

In general
I discovered the source of the problem, looking at the raspi.list I realised that it only contained:

Code: Select all

deb http://archive.raspberrypi.org/debian/ stretch main ui
deb-src http://archive.raspberrypi.org/debian/ stretch main ui
Looking at sora03 answer I looked up the mirrordirector line and added

Code: Select all

deb http://mirrordirector.raspbian.org/raspbian/ stable main contrib non-free rpi firmware
Adding this line fixed the problem and dirmngr became discoverable again, and I was able to apt install it

Re: Can't install dirmngr

Posted: 17 Jul 2019, 16:33
by zhan
great, congratulate and thanks for sharing :)