[SERVER-46938] mongodb-org debian repo has malformed Packages file Created: 18/Mar/20  Updated: 22/Jul/22  Resolved: 19/Mar/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Critical - P2
Reporter: Nathan Perry Assignee: Kim Tao
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-46977 "The following signatures were invali... Closed
is duplicated by SERVER-46960 Corrupted Package file in Ubuntu Bion... Closed
Related
related to DOCS-13525 Unable to install mongodb-org 4.0 as ... Closed
Operating System: ALL
Steps To Reproduce:

$ echo 'deb [arch=amd64] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse' > /etc/apt/sources.list.d/mongodb-org-4.0.list
$ sudo apt update

On a debian-based system, obviously. Specifically, I'm on Ubuntu eoan, but this should be reproducible pretty much anywhere.
 

Participants:
Case:

 Description   

debian build seems to be appending a bad line to Packages file:

dpkg-scanpackages: info: Wrote 90 entries to output Packages file.

This is causing apt update and apt upgrade on systems depending on affected repos to fail with the following message:

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

The problem can be fixed by editing /var/lib/apt/lists/repo.mongodb.org_apt_ubuntu_dists_bionic_mongodb-org_4.0_multiverse_binary-amd64_Packages and removing the last line, but obviously this is not a sustainable solution, as any time I apt update this will be overridden.

The xenial and bionic repos at least both have this issue on the 4.0 amd64 package. Looking around at the other versions, I'm only seeing this affecting 4.0.

Note: not sure if this is the right project to list this under, but the other possibilities (MAKE? DEVOPS?) don't have many issues for reference/didn't have a linked google doc. Feel free to move if appropriate.



 Comments   
Comment by Kay Agahd [ 19/Mar/20 ]

Yes, it works, thanks!

Comment by Martin Polak [ 19/Mar/20 ]

Yup, fixed for me as well.

Comment by Kim Tao [ 19/Mar/20 ]

I just tried this on Jessie, Stretch, and Xenial and they seem to be fixed.

Comment by Kay Agahd [ 19/Mar/20 ]

Please re-open the issue since Jessie, Stretch, Xenial are still broken.

Comment by Костик Покотиленко [ 19/Mar/20 ]

Just checked, Bionic is now fixed.
Jessie, Stretch, Xenial still broken.

Comment by Sam Kleinman (Inactive) [ 18/Mar/20 ]

I've just kicked off jobs to rebuild all of the impacted debian repositories. Sorry for the inconvenience.

Comment by Githook User [ 18/Mar/20 ]

Author:

{'email': 'garen@tychoish.com', 'name': 'Sam Kleinman', 'username': 'tychoish'}

Message: SERVER-46938: debian package publishing fix (#100)
Branch: master
https://github.com/mongodb/curator/commit/4c5caaa4696506605c67bacded7c1faf8b2953ec

Comment by Sam Kleinman (Inactive) [ 18/Mar/20 ]

Thanks for the report, we've identified an issue. It looks like we combined standard error and standard output into these files, and will regenerate these files as soon as the fix is deployed.

Comment by Костик Покотиленко [ 18/Mar/20 ]

This is marked as closed, but those files are still invalid (alien last line):

http://repo.mongodb.org/apt/debian/dists/jessie/mongodb-org/4.0/main/binary-amd64/Packages

http://repo.mongodb.org/apt/debian/dists/stretch/mongodb-org/4.0/main/binary-amd64/Packages

http://repo.mongodb.org/apt/ubuntu/dists/bionic/mongodb-org/4.0/multiverse/binary-amd64/Packages

http://repo.mongodb.org/apt/ubuntu/dists/xenial/mongodb-org/4.0/multiverse/binary-amd64/Packages

Comment by Sam Kleinman (Inactive) [ 18/Mar/20 ]

Thanks for catching this. We just ran the procedure that generated the repositories for this release and I verified manually that the repository is now valid.

I filed MAKE-1194 to address this issue in the future.

Generated at Thu Feb 08 05:12:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.