[SOLVED] Centos 6.i386 -> yum install error -> [Errno -1] Package does not match intended download

Issues related to applications and software problems
Post Reply
josemanuel1974
Posts: 13
Joined: 2010/12/17 08:24:42

[SOLVED] Centos 6.i386 -> yum install error -> [Errno -1] Package does not match intended download

Post by josemanuel1974 » 2011/09/28 10:11:43

Hello everyone, I've an issue with yum install. When I try to install any package I found the same problem.
I put in this thread a log.

[root@tCentos6]# yum repolist
[quote]
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
repo id repo name status
base CentOS-6 - Base 4558
repolist: 4558
[/quote]

[root@tCentos6]# yum install mysql-server
[quote]
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql-server.i686 0:5.1.47-4.el6 set to be updated
--> Processing Dependency: mysql = 5.1.47-4.el6 for package: mysql-server-5.1.47-4.el6.i686
--> Processing Dependency: perl-DBD-MySQL for package: mysql-server-5.1.47-4.el6.i686
--> Processing Dependency: perl(DBI) for package: mysql-server-5.1.47-4.el6.i686
--> Processing Dependency: perl-DBI for package: mysql-server-5.1.47-4.el6.i686
--> Running transaction check
---> Package mysql.i686 0:5.1.47-4.el6 set to be updated
---> Package perl-DBD-MySQL.i686 0:4.013-3.el6 set to be updated
---> Package perl-DBI.i686 0:1.609-4.el6 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

....

Install 4 Package(s)
Upgrade 0 Package(s)

Total download size: 10 M
Installed size: 27 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): mysql-5.1.47-4.el6.i686.rpm | 160 B 00:00
http://mirror.centos.org/centos/6.0/os/i386/Packages/mysql-5.1.47-4.el6.i686.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum clean metadata

....

[/quote]

This error occurs: [Errno -1] Package does not match intended download

Meanwhile I can do this

[root@tCentos6]# wget http://mirror.centos.org/centos/6.0/os/i386/Packages/mysql-5.1.47-4.el6.i686.rpm
[quote]

--2011-09-28 12:09:21-- http://mirror.centos.org/centos/6.0/os/i386/Packages/mysql-5.1.47-4.el6.i686.rpm
Resolviendo proxyb.mycompany.es... 172.16.35.111
Connecting to proxyb.mycompany.es|172.16.35.111|:8080... conectado.
Petición Proxy enviada, esperando respuesta... 200 OK
Longitud: 160
Saving to: `mysql-5.1.47-4.el6.i686.rpm'

100%[===================================================================================================================>] 160 --.-K/s in 0s

2011-09-28 12:09:26 (33,6 MB/s) - `mysql-5.1.47-4.el6.i686.rpm' saved [160/160]

[/quote]

I cannot use "yum install"
Does anyone know What happens???

Thanks a lot!
Jose.

:-?

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: Centos 6.i386 -> yum install error -> [Errno -1] Package does not match intended download

Post by AlanBartlett » 2011/09/28 19:19:15

[quote]
[i][/i]
Is this ok [y/N]: y
Downloading Packages:
(1/4): mysql-5.1.47-4.el6.i686.rpm | 160 B 00:00
http://mirror.centos.org/centos/6.0/os/i386/Packages/mysql-5.1.47-4.el6.i686.rpm: [Errno -1] Package does not match intended download. [color=0000FF]Suggestion:[/color] run [color=FF0000]yum clean metadata[/color]
[i][/i]
[/quote]
Have you tried [b][i]yum[/i][/b]'s own suggestion? (See above.)

josemanuel1974
Posts: 13
Joined: 2010/12/17 08:24:42

Re: Centos 6.i386 -> yum install error -> [Errno -1] Package does not match intended download

Post by josemanuel1974 » 2011/09/29 06:41:49

Yes, I've tried with: yum clean metadata
I've got the same problem.

Thanks

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Centos 6.i386 -> yum install error -> [Errno -1] Package does not match intended download

Post by pschaff » 2011/09/29 19:41:39

Perhaps "yum clean all" would do a better job. If more help is needed then please [url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=28723&forum=54]provide more information about your system[/url] by running "./getinfo.sh package" and showing us the output file. It would also be good to see the contents of /etc/yum.repos.d/CentOS-Base.repo as it appears to have been modified from the default. You should be using the mirrorlist and hitting a nearby mirror site and not mirror.centos.org directly.

josemanuel1974
Posts: 13
Joined: 2010/12/17 08:24:42

Re: Centos 6.i386 -> yum install error -> [Errno -1] Package does not match intended download

Post by josemanuel1974 » 2011/09/30 08:22:43

It is a strange problem, because I've tested with a Server 5, that It worked well but now I get the same error.

Centos5.

Information for general problems.
[code]
== BEGIN uname -rmi ==
2.6.18-194.el5 i686 i386
== END uname -rmi ==

== BEGIN rpm -qa \*-release\* ==
ius-release-1.0-6.ius.el5
centos-release-notes-5.5-0
centos-release-5-5.el5.centos
epel-release-5-4
== END rpm -qa \*-release\* ==

== BEGIN cat /etc/redhat-release ==
CentOS release 5.5 (Final)
== END cat /etc/redhat-release ==

== BEGIN getenforce ==
Enforcing
== END getenforce ==

== BEGIN free -m ==
total used free shared buffers cached
Mem: 2026 294 1732 0 18 208
-/+ buffers/cache: 67 1959
Swap: 996 0 996
== END free -m ==

== BEGIN rpm -q yum rpm python ==
yum-3.2.22-26.el5.centos
rpm-4.4.2.3-18.el5
python-2.4.3-27.el5
== END rpm -q yum rpm python ==

== BEGIN ls /etc/yum.repos.d ==
epel.repo
getinfo.sh
old
== END ls /etc/yum.repos.d ==

== BEGIN cat /etc/yum.conf ==
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1

# Note: yum-RHN-plugin doesn't honor this.
metadata_expire=1h

# Default.
# installonly_limit = 3

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
== END cat /etc/yum.conf ==

== BEGIN yum repolist all ==
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* epel: ftp.cica.es
repo id repo name status
epel Extra Packages for Enterprise Linux 5 - i386 enabled: 5,458
epel-debuginfo Extra Packages for Enterprise Linux 5 - i386 - Deb disabled
epel-source Extra Packages for Enterprise Linux 5 - i386 - Sou disabled
repolist: 5,458
== END yum repolist all ==

== BEGIN egrep 'include|exclude' /etc/yum.repos.d/*.repo ==
== END egrep 'include|exclude' /etc/yum.repos.d/*.repo ==

== BEGIN sed -n -e "/^\[/h; /priority *=/{ G; s/\n/ /; s/ity=/ity = /; p }" /etc/yum.repos.d/*.repo | sort -k3n ==
== END sed -n -e "/^\[/h; /priority *=/{ G; s/\n/ /; s/ity=/ity = /; p }" /etc/yum.repos.d/*.repo | sort -k3n ==
[/code]

[code]
[root@plantilla yum.repos.d]# yum clean all
Loaded plugins: fastestmirror, priorities
Cleaning up Everything
Cleaning up list of fastest mirrors
[/code]


[code]
[root@plantilla yum.repos.d]# yum repolist
Loaded plugins: fastestmirror, priorities
Determining fastest mirrors
* epel: ftp.cica.es
epel | 3.7 kB 00:00
epel/primary_db | 3.2 MB 00:00
repo id repo name status
epel Extra Packages for Enterprise Linux 5 - i386 enabled: 5458
repolist: 5458
[/code]

[code]
[root@plantilla yum.repos.d]# cat epel.repo
[epel]
name=Extra Packages for Enterprise Linux 5 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 5 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch/debug
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-5&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 5 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/5/SRPMS
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-5&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
gpgcheck=1
[/code]
[code]
[root@plantilla yum.repos.d]# yum install banner
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* epel: ftp.cica.es
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package banner.i386 0:1.3.2-1.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================
Installing:
banner i386 1.3.2-1.el5 epel 16 k

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

Total download size: 16 k
Is this ok [y/N]: y
Downloading Packages:
banner-1.3.2-1.el5.i386.rpm | 160 B 00:00
http://ftp.cica.es/epel/5/i386/banner-1.3.2-1.el5.i386.rpm: [Errno -1] Package does not match intended download
Trying other mirror.
banner-1.3.2-1.el5.i386.rpm | 160 B 00:00
http://ftp.gui.uva.es/sites/fedora.redhat.com/epel/5/i386/banner-1.3.2-1.el5.i386.rpm: [Errno -1] Package does not match intended download
Trying other mirror.
banner-1.3.2-1.el5.i386.rpm | 160 B 00:00
http://ftp.rediris.es/mirror/fedora-epel/5/i386/banner-1.3.2-1.el5.i386.rpm: [Errno -1] Package does not match intended download
Trying other mirror.
banner-1.3.2-1.el5.i386.rpm | 160 B 00:00
http://mirror.uv.es/mirror/fedora-epel/5/i386/banner-1.3.2-1.el5.i386.rpm: [Errno -1] Package does not match intended download
Trying other mirror.


Error Downloading Packages:
banner-1.3.2-1.el5.i386: failure: banner-1.3.2-1.el5.i386.rpm from epel: [Errno 256] No more mirrors to try.
[/code]

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

[SOLVED] Centos 6.i386 -> yum install error -> [Errno -1] Pa

Post by gerald_clark » 2011/09/30 13:18:09

You need to talk to your hoster.
You are missing the CentOS supplied repos.

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Centos 6.i386 -> yum install error -> [Errno -1] Package does not match intended download

Post by pschaff » 2011/09/30 13:38:45

Something has changed - earlier post showed
[quote]http://mirror.centos.org/centos/6.0/os/i386/Packages/mysql-5.1.47-4.el6.i686.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum clean metadata[/quote]and now only epel repos are seen. Is /etc/yum.repos.d/old a directory? What does it contain?

josemanuel1974
Posts: 13
Joined: 2010/12/17 08:24:42

Re: Centos 6.i386 -> yum install error -> [Errno -1] Package does not match intended download

Post by josemanuel1974 » 2011/10/04 10:22:17

Solved!!. Thanks a lot!!

The problem was proxy load balancing.

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: [SOLVED] Centos 6.i386 > yum install error > [Errno -1] Package does not match intended download

Post by pschaff » 2011/10/05 20:43:11

Thanks for reporting back. Marking this thread [SOLVED] for posterity.

Post Reply