Friday, October 18, 2013

Trying to upgrade MongoDB via apt-get - but "Unable to find expected entry '10gen/binary-amd64/Packages' in Release file"?

Update 18th Oct 2013 at 22.20 UTC:
It seems that 10gen has changed the original configuration back, thanks Mr. Mike Stringer for noticing. So, source configuration

deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen

works at this moment. I will keep eye on the repository changes, follow me @vjom for further updates.

Mr. Robert Meerman has also reported the (original) issue to MongoDB's JIRA. Hope we'll get clarification soon which one to use... ;)



Tonight, I tried to upgrade to the latest MongoDB server version in my Ubuntu box, but apt-get update gave the following error:
W: Failed to fetch http://downloads-distro.mongodb.org/repo/ubuntu-upstart/dists/dist/Release  Unable to find expected entry '10gen/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)
It seems that 10gen has recently changed their Release file structure, but the Ubuntu installation documentation does not yet reflect their latest changes (as per 18th Oct 2013). The problem is easy to fix:

Find the file, where your current mongodb-10gen source configuration lies. Most likely it's /etc/apt/sources.list.d/mongodb-10gen.list

Change the following line
deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen
to read
deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist mongodb
Finally, run apt-get update again and you are good to go.

7 comments:

RobM said...

Thanks, this fixed it for me too. Saved me the trouble of having to learn about APT mirrors work..

RobM said...

(I've reported the mistake to 10gen: https://jira.mongodb.org/browse/DOCS-2115)

Ville Mattila said...

Hey, thanks Rob for the commend, and thanks for reporting the issue to 10gen. I did not figure out that there is project in JIRA for the docs too... =)

Aaron Wolf said...

Tweaking on a similar issue, thanks for the find!

rishi111able said...

Thanks a ton. This fixed the error for me. I have been going crazy with this . Thanks a lot again

Mike Stringer said...

I think 10gen may have changed it back...

Ville Mattila said...

Hi Mike, it really looks like they have changed it back... Strange.

Post a Comment