change from 'purged' to 'present' failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install mongodb-server' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
Package mongodb-server 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 'mongodb-server' has no installation candidate
Steps to Reproduce the Problem
Use tp::install {'mongodb'}
Specifications
I found that when you add the repo by hand using the instructions from Mongo, the repo looks like this:
Expected Behavior
Mongodb-server is installed on Debian 11
Actual Behavior
change from 'purged' to 'present' failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install mongodb-server' returned 100: Reading package lists... Building dependency tree... Reading state information... Package mongodb-server 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 'mongodb-server' has no installation candidate
Steps to Reproduce the Problem
Use tp::install {'mongodb'}
Specifications
I found that when you add the repo by hand using the instructions from Mongo, the repo looks like this:
fb:~$ cat /etc/apt/sources.list.d/mongodb-org.list deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 main
but TP installs:
fb:~$ cat /etc/apt/sources.list.d/mongodb-org-4.4.list
File Managed by Tiny Puppet
deb http://repo.mongodb.org/apt/debian bullseye main
I made a PR to fix this.
Please add this info:
facter -p
on the failing node (at least the OS related facts)