Issues with mongodb lab

having issues with my mondodb lab

Hi @lancaster

CAn you please share the link to the lab you are working on?

https://learn.kodekloud.com/user/courses/devops-pre-requisite-course/module/5166a1fb-2506-4fa7-81d8-ad176fa067a2/lesson/de95df34-a059-4385-9d1e-099a68c117ba

I strongly suspect this is not Ubuntu, but is CentOS, where the package manager is yum not apt.

Run the following to know which it is

cat /etc/os-release

And so it is:

thor@app01 ~$ cat /etc/os-release 
NAME="CentOS Stream"
VERSION="9"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="9"
PLATFORM_ID="platform:el9"
PRETTY_NAME="CentOS Stream 9"
ANSI_COLOR="0;31"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:centos:centos:9"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://issues.redhat.com/"
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 9"
REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"