Unable to locate package mongodb-enterprise while installing enterprise on Debian-bookworm docker image

Hello, I tried to follow this instruction on Debian (bookworm) Docker image

Here’s Dockerfile

FROM node:20-bookworm

RUN apt-get update && apt-get install -y curl wget gnupg

# import the MongoDB public GPG key,

RUN curl -fsSL https://pgp.mongodb.com/server-7.0.asc | gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg --dearmor

# Create a /etc/apt/sources.list.d/mongodb-enterprise.list file for MongoDB

RUN echo "deb [ signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] http://repo.mongodb.com/apt/debian bookworm/mongodb-enterprise/7.0 main" | tee /etc/apt/sources.list.d/mongodb-enterprise.list

RUN apt-get update # step X

RUN apt-get install -y mongodb-enterprise

This ended with error saying “E: Unable to locate package mongodb-enterprise”

I am wondering what is causing this

I tried “step X” above (apt-get update)

apt-get update
Hit:1 http://deb.debian.org/debian bookworm InRelease
Ign:2 http://repo.mongodb.com/apt/debian bookworm/mongodb-enterprise/7.0 InRelease
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
Hit:4 http://deb.debian.org/debian-security bookworm-security InRelease
Get:5 http://repo.mongodb.com/apt/debian bookworm/mongodb-enterprise/7.0 Release [1998 B]
Get:6 http://repo.mongodb.com/apt/debian bookworm/mongodb-enterprise/7.0 Release.gpg [866 B]
Get:7 http://repo.mongodb.com/apt/debian bookworm/mongodb-enterprise/7.0/main arm64 Packages [17.2 kB]
Fetched 20.1 kB in 1s (29.0 kB/s)

As you can see there’s “Ign:2” , is it possibly related to the error?

I’ve got Support from MongoDB team

The supported CPU architecture is limited

  • (1) No platform tag
    docker build --tag mongotest .
    // Linux 7c3e7953dbbe 6.6.12-linuxkit #1 SMP Thu Feb 8 06:36:34 UTC 2024 aarch64 GNU/Linux
  • (2) arm64 tag
    docker build --platform linux/arm64 --tag mongotest .
    // Linux 998744247f42 6.6.12-linuxkit #1 SMP Thu Feb 8 06:36:34 UTC 2024 aarch64 GNU/Linux
  • (3) amd64 tag
    docker build --platform linux/amd64 --tag mongotest .
    // Linux 01b509eb4861 6.6.12-linuxkit #1 SMP Thu Feb 8 06:36:34 UTC 2024 x86_64 GNU/Linux

(3) made it work

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.