Skip to content

Fails to install on Ubuntu 20.04 #627

@malcyon

Description

@malcyon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions