Broken package header for MongoDB 4.0 on Ubuntu 16.04 Xenial

Hello,

The install packages for ubuntu are broken (at least for Xenial), we cannot deploy it on our servers.

The issue in the tracker was closed, but still wasn’t fixed:
https://jira.mongodb.org/browse/SERVER-46938

running:

echo “deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 multiverse” | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
sudo apt-get update

produces

E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/repo.mongodb.org_apt_ubuntu_dists_xenial_mongodb-org_4.0_multiverse_binary-amd64_Packages
E: The package lists or status file could not be parsed or opened.
1 Like

I’m getting the same thing on a debian repo at http://repo.mongodb.org/apt/debian/dists/stretch/mongodb-org/4.0/main/binary-amd64/Packages

It seems to be the last line: “dpkg-scanpackages: info: Wrote 90 entries to output Packages file.”

1 Like