I'm trying to install mongodb on Raspbian or Ubuntu Mate, but i have troubles finding de package on the repository to install it. The only one that is available is 2.4, but i'm having problems with this version because i need to import some data to a database to do some testing, but i'm getting this error:

"exception: BSON representation of supplied JSON array is too large: code FailedToParse: Date expecting integer milliseconds: offset:909"

I'm using this structure for the data that i'm importing:


And this is how i'm importing the data:

mongoimport --db dbName --collection collectionName --file fileName.json --jsonArray

I've searched the error and it seems to be fixed when you upgrade mongodb version at least to 2.6.

But the issue is that i need at least 3.4 version because i'm using it on windows and i need to use it on Raspberry for the company needs.

Hope you know something. Thank you.

  • What is the Raspbian version?
    – M. Rostami
    Jan 10, 2020 at 16:51
  • @M.Rostami Raspbian GNU/Linux 10 (buster) Jan 10, 2020 at 22:50
  • It's a 32bit OS, so, the MongoDB has been updated for 64bit OSs. Therefore, you can't use it on Raspbian. Maybe you could run a 64bit OS like Fedora or Arch to achieve this goal. Check this link out.
    – M. Rostami
    Jan 11, 2020 at 1:38
  • @M.Rostami So, the only way i can use Mongodb latest version is running it on 64bit OS? Which one do you recommend? I'm using Raspberry Pi 3 Model B. Meanwhile i'm going to try using Fedora. Jan 13, 2020 at 21:43
  • You can install Debian (not Raspbian), Arch Linux, Ubuntu ARM64, Fedora, openSUSE, etc. Also, I just updated the answer.
    – M. Rostami
    Jan 13, 2020 at 22:34

1 Answer 1


You can directly install mongodb_3.4.18-2+b1 (ARM64) on Raspbian over debian.org, so, follow the procedure:

1. Download the package:

wget http://ftp.us.debian.org/debian/pool/main/m/mongodb/mongodb_3.4.18-2+b1_arm64.deb  

2. Install the package:

sudo dpkg -i mongodb_3.4.18-2+b1_arm64.deb   


In addition, you may face a problem because of the architecture of this package which is ARMv8. So, try this procedure - Enabling ARMv8 on Raspberry Pi 3 B.

As the comments on the question, you need a 64bit os to install newer MongoDB on the Raspberry Pi, because they've stopped updating the package on a 32bit operating system like Raspbian.

As you said that you're free to install a new OS on your Raspberry Pi, you can install Fedora, Arch Linux, Ubuntu Server, etc.

Also, there is another method that you can make the Raspbian 32bit(armhf) to 64bit(arm64). The keyword is "Multiarch". It lets you install library packages from multiple architectures on the same machine. I didn't implement Multiarch yet, however, check these links out:
Multiarch - HOWTO
Multiarch - Implementation

  • enabling ARMv8 kernel won't enable 64 bit in userland - Raspbian does not include any 64bit libraries, so this won't work Jan 11, 2020 at 1:18
  • @M. Rostami If i try the Raspbian Multiarch method can i install mongodb as i should do with Debian? Or should i try with Fedora directly instead? Jan 14, 2020 at 16:31
  • @DavidRamírez It is said that you can. I mean, as the description of Multiarch, you are able to install it. However, I didn't test.
    – M. Rostami
    Jan 14, 2020 at 17:21
  • @M.Rostami To confirm the info: Can i try Multiarch on Raspbian or i should try it on Debian instead? Jan 14, 2020 at 19:38
  • @DavidRamírez Yes, you can. Feel free to try it on a system you don't care about and report what happens.
    – M. Rostami
    Jan 14, 2020 at 20:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.