Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to install on Ubuntu 20.04 #627

Closed
malcyon opened this issue Oct 8, 2021 · 0 comments · Fixed by #628
Closed

Fails to install on Ubuntu 20.04 #627

malcyon opened this issue Oct 8, 2021 · 0 comments · Fixed by #628

Comments

@malcyon
Copy link
Contributor

malcyon commented Oct 8, 2021

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 7.11.0
  • Ruby: 2.7.3p183
  • Distribution: Ubuntu 20.04
  • Module version: v4.0.0

How to reproduce (e.g Puppet code you use)

class {'::mongodb::globals':
  manage_package_repo => true,
  version             => '4.4.9'
}->
class {'::mongodb::server':
  bind_ip => ['127.0.0.1']
}

What are you seeing

Mongodb fails to install on Ubuntu 20.04. Is it declaring the apt source and then immediately trying to install MongoDB without running apt-get update? I wonder if it needs a notify => Exec['apt_update'] statement in apt.pp?

What behaviour did you expect instead

It should work on Ubuntu 20.04.

Output log

ubuntu2004: Error: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold --force-yes install mongodb-org-server=4.4.9' returned 100: Reading package lists...
ubuntu2004: Building dependency tree...
ubuntu2004: Reading state information...
ubuntu2004: W: --force-yes is deprecated, use one of the options starting with --allow instead.
ubuntu2004: E: Unable to locate package mongodb-org-server
ubuntu2004: Error: /Stage[main]/Mongodb::Server::Install/Package[mongodb_server]/ensure: change from 'purged' to '4.4.9' failed: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold --force-yes install mongodb-org-server=4.4.9' returned 100: Reading package lists...
ubuntu2004: Building dependency tree...
ubuntu2004: Reading state information...
ubuntu2004: W: --force-yes is deprecated, use one of the options starting with --allow instead.
ubuntu2004: E: Unable to locate package mongodb-org-server

Any additional information you'd like to impart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant