Hola a todos…, aquí les traigo algo interesante que me sucedió. El caso es que tengo CentOS 4.0 instalado y mi conexión a INTERNET es mediante un proxy, entonces el comando yum necesario para descargar actualizaciones, instalaciones y/o dependencias no se me ejecuta correctamente, pues no sé en qué parte de la configuración debo especificarle el proxy de mi conexión. Les he traido una solución para si a algunos de ustedes les pasa lo mismo que a mi puedan solucionarla temporalmente.
Esto es lo que me pasaba antes de la solución:
[root]# yum install GFS
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
–> Populating transaction set with selected packages. Please wait.
—> Downloading header for GFS to pack into transaction set.
GFS-6.1.5-0.i386.rpm 100% |=========================| 138 kB 00:00
http://mirror.centos.org/centos/4/csgfs/i386/RPMS/GFS-6.1.5-0.i386.rpm: [Errno -1] Header is not complete.
Trying other mirror.
Error: failure: RPMS/GFS-6.1.5-0.i386.rpm from csgfs: [Errno 256] No more mirrors to try.
Tengo 2 soluciones:
1.- Crear 2 variables locales, las cuales responderán a las peticiones del proxy…
[root]# export http_proxy=http://IP_del_proxy:Puerto/
[root] # export ftp_proxy=http://IP_del_proxy:Puerto/
Probando el yum:
# yum install GFS
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
–> Populating transaction set with selected packages. Please wait.
—> Downloading header for GFS to pack into transaction set.
GFS-6.1.5-0.i386.rpm 100% |=========================| 4.6 kB 00:00
—> Package GFS.i386 0:6.1.5-0 set to be updated
–> Running transaction check
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
GFS i386 6.1.5-0 csgfs 138 k
Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 138 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): GFS-6.1.5-0.i386.r 100% |=========================| 138 kB 00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: GFS ######################### [1/1]
Installed: GFS.i386 0:6.1.5-0
Complete!
Y listo, ya pueden intentar nuevamente a utilizar el yum…
2.- Esta solución está basada principalmente en descargar el paquete e instalarlo utilizando un repositorio local. La dirección URL de dónde se encuentra el paquete que queremos instalar nos la dio en el primer mensaje de error…
Obviamente, un repositorio local no tendrá ningún tipo de problemas…
# cd /tmp
# wget ftp://192.168.1.203/pub/centos/4/csgfs/i386/RPMS/GFS-6.1.5-0.i386.rpm
# yum localinstall /tmp/GFS-6.1.5-0.i386.rpm
Setting up Local Package Process
Examining /tmp/GFS-6.1.5-0.i386.rpm: GFS - 6.1.5-0.i386
Marking /tmp/GFS-6.1.5-0.i386.rpm to be installed
Resolving Dependencies
–> Populating transaction set with selected packages. Please wait.
—> Package GFS.i386 0:6.1.5-0 set to be updated
–> Running transaction check
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
GFS i386 6.1.5-0 /tmp/GFS-6.1.5-0.i386.rpm 327 k
Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 327 k
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: GFS ######################### [1/1]
Installed: GFS.i386 0:6.1.5-0
Complete!
Y listo, tendremos nuestro paquete instalado!!! ;)
Espero que les sirva de algo…
Salu2,
Lester Espinosa Martínez
No hay comentarios:
Publicar un comentario