Can't install dirmngr

Topics about the Software of Revolution Pi
Post Reply
camow7
Posts: 12
Joined: 09 Jul 2019, 01:07

Can't install dirmngr

Post 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"
zhan
Posts: 52
Joined: 16 Apr 2019, 13:31

Re: Can't install dirmngr

Post by zhan »

Hi camow7,

have you ever used sudo apt-get update before install the dirmngr ?
Simon
camow7
Posts: 12
Joined: 09 Jul 2019, 01:07

Re: Can't install dirmngr

Post 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
zhan
Posts: 52
Joined: 16 Apr 2019, 13:31

Re: Can't install dirmngr

Post by zhan »

great, congratulate and thanks for sharing :)
Simon
Post Reply