Re: Package does not match intended download

1,861 views
Skip to first unread message

markh

unread,
Jul 26, 2012, 9:10:14 AM7/26/12
to mongod...@googlegroups.com
Hi,

I've just been able to install the mongo packages (on Centos) without any issues.

Can you paste (to gist/pastebin/pastie) the contents of your /etc/yum.repos.d/10gen.repo and the output of the following commands? 
  • uname -rmi
  • rpm -q centos-release
  • rpm -qa glibc
  • yum repolist all
Mark

On Thursday, July 26, 2012 12:27:13 PM UTC+1, Zoro wrote:
I try to install MongoDB on CentOS 5 x64 as written here ->  http://docs.mongodb.org/manual/tutorial/install-mongodb-on-redhat-centos-or-fedora-linux/
But when i installing packages, i get "Package does not match intended download" error.

I tried yum clean all but it didn't help.

[user@131561-5 ~]$ sudo yum clean all
Loaded plugins: fastestmirror
Cleaning up Everything
Cleaning up list of fastest mirrors
[user@131561-5 ~]$ sudo yum install mongo-10gen mongo-10gen-server
Loaded plugins: fastestmirror
Determining fastest mirrors
10gen                                                    |  951 B     00:00
10gen/primary                                            | 1.7 kB     00:00
10gen                                                                       6/6
base                                                     | 1.1 kB     00:00
base/primary                                             | 1.2 MB     00:00
base                                                                  3591/3591
clodo-noarch                                             | 1.9 kB     00:00
clodo-noarch/primary_db                                  |  12 kB     00:00
clodo-x86_64                                             | 1.9 kB     00:00
clodo-x86_64/primary_db                                  |  29 kB     00:00
extras                                                   | 2.1 kB     00:00
extras/primary_db                                        | 179 kB     00:00
updates                                                  | 1.9 kB     00:00
updates/primary_db                                       | 641 kB     00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mongo-10gen.x86_64 0:2.0.6-mongodb_1 set to be updated
---> Package mongo-10gen-server.x86_64 0:2.0.6-mongodb_1 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                  Arch         Version                Repository   Size
================================================================================
Installing:
 mongo-10gen              x86_64       2.0.6-mongodb_1        10gen        28 M
 mongo-10gen-server       x86_64       2.0.6-mongodb_1        10gen       5.5 M

Transaction Summary
================================================================================
Install       2 Package(s)
Upgrade       0 Package(s)

Total download size: 34 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): mongo-10gen-server-2.0.6-mongodb_1.x86_64.rpm     | 4.3 MB     00:59 ...
http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/RPMS/mongo-10gen-serve                                                                             r-2.0.6-mongodb_1.x86_64.rpm: [Errno -1] Package does not match intended downloa                                                                             d
Trying other mirror.
(2/2): mongo-10gen-2.0.6-mongodb_1.x86_64.rpm            | 4.1 MB     00:59 ...
http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/RPMS/mongo-10gen-2.0.6                                                                             -mongodb_1.x86_64.rpm: [Errno -1] Package does not match intended download
Trying other mirror.


Error Downloading Packages:
  mongo-10gen-server-2.0.6-mongodb_1.x86_64: failure: RPMS/mongo-10gen-server-2.                                                                             0.6-mongodb_1.x86_64.rpm from 10gen: [Errno 256] No more mirrors to try.
  mongo-10gen-2.0.6-mongodb_1.x86_64: failure: RPMS/mongo-10gen-2.0.6-mongodb_1.                                                                             x86_64.rpm from 10gen: [Errno 256] No more mirrors to try.

markh

unread,
Jul 26, 2012, 11:32:02 AM7/26/12
to mongod...@googlegroups.com
Zoro,

To add to Akshay's recommendations, you can also verify the packages (once downloaded) directly through rpm - 

# rpm -K mongo-10gen-*
mongo-10gen-2.0.6-mongodb_1.x86_64.rpm: sha1 md5 OK
mongo-10gen-server-2.0.6-mongodb_1.x86_64.rpm: sha1 md5 OK

Mark

On Thursday, July 26, 2012 3:34:53 PM UTC+1, Akshay wrote:
Hi,

Sounds like a corrupted download which causes RPM to bail out on a checksum mismatch.

Try to download both the RPMs manually:



Then run check the md5sum. You should get the following:md5sum mongo-10gen-*
230fb88d94a474e4015aa5262e253bb6  mongo-10gen-2.0.6-mongodb_1.x86_64.rpm
accbfeb02fa75d19234660747ab3439b  mongo-10gen-server-2.0.6-mongodb_1.x86_64.rp

If the checksums match that you should be able to do something like otherwise it will bailout on the same MD5/cpio errors.

yum localinstall mongo-10gen-*.RPM

or

rpm -Uvh mongo-10gen-*.rpm

Try that and let us know what you get.


Best,
Akshay
Reply all
Reply to author
Forward
0 new messages