Skipping acquire of configured file 'multiverse/binary-arm64/Packages' as repository 'https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 InRelease' doesn't support architecture 'arm64'

Hi, I’m trying to upgrade Mongo from 3.6.6 to 5.1 on Ubuntu 18.04.6, running on an AWS EC2 instance.

I’ve gotten up until 4.2 → 4.4, and am now using this tutorial:

I’ve done the following command:

echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list

Then, I ran sudo apt-get update. However, I get the following error:

Skipping acquire of configured file 'multiverse/binary-arm64/Packages' as repository 'https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 InRelease' doesn't support architecture 'arm64'

I can’t install mongo after this. I saw this:

https://jira.mongodb.org/browse/SERVER-37692

which says there weren’t arm64 builds, but it got corrected? How should I proceed? Do I need to update my AWS instance? It seems weird that Mongo can’t be installed on Ubuntu…

I am getting the same error on Ubuntu 18.04. On running uname -m I get x86_64
Why does source repo mentions arm64. If I change that to x86_64, will that fix it?

Yes I guess this should fix the issue. If your machine isn’t ARM64 then you don’t need these packages anyway.