En este caso al ser una maquina virtual, no reparé en configurar la memoria swap ("craso error"), el problema surgió poco después al intentar instalar una Oracle XE en dicha MV.
La primera intentona fue haciendo doble click sobre el fichero oracle-xe_10.2.0.1-1.0_i386.deb tras el cual se abre la ventana de "Ubuntu Software Center" y se inicia el proceso de instalación, pero a mitad de camino da el siguiente mensaje de error:
There seems to be a programming error in aptdaemon, the software that allows you to install/remove software and to perform other package management related tasks.
Desde luego este mensaje no es "friendly" y por el contrario desvia la atención al verdadero problema, así que decidí hacerlo desde línea de comandos y voilá, seguía fallando pero me daba un mensaje de error mas coherente, aquí la traza:
desarrollo@desarrollo-VirtualBox:~/Downloads$ sudo dpkg -i oracle-xe_10.2.0.1-1.0_i386.deb
(Reading database ... 144430 files and directories currently installed.)
Unpacking oracle-xe (from oracle-xe_10.2.0.1-1.0_i386.deb) ...
This system does not meet the minimum requirements for swap space. Based on
the amount of physical memory available on the system, Oracle Database 10g
Express Edition requires 1024 MB of swap space. This system has 894 MB
of swap space. Configure more swap space on the system and retry the installation.
dpkg: error processing oracle-xe_10.2.0.1-1.0_i386.deb (--install):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
oracle-xe_10.2.0.1-1.0_i386.deb
Unpacking oracle-xe (from oracle-xe_10.2.0.1-1.0_i386.deb) ...
This system does not meet the minimum requirements for swap space. Based on
the amount of physical memory available on the system, Oracle Database 10g
Express Edition requires 1024 MB of swap space. This system has 894 MB
of swap space. Configure more swap space on the system and retry the installation.
dpkg: error processing oracle-xe_10.2.0.1-1.0_i386.deb (--install):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
oracle-xe_10.2.0.1-1.0_i386.deb
Bueno, el mensaje es claro, me falta memoria swap, así nada, procedí a añadir 1024 MB más de swap, siguiendo los siguientes pasos:
- creando un fichero del tamaño deseado y dando permisos de lectura a los usuarios
sudo dd if=/dev/zero of=/mnt/1024Mb.swap bs=1M count=1024
sudo chmod 600 /mnt/1024Mb.swap - preparando el fichero para que sea una unidad de swapping
sudo mkswap /mnt/1024Mb.swap - añadiendo el fichero al sistema
sudo swapon /mnt/1024Mb.swap - haciendo permanente el cambio editando el fichero /etc/fstab
gksudo gedit /etc/fstab - Añadiendo como última linea al fichero fstab el texto
/mnt/1024Mb.swap none swap sw 0 0
Tip:
Para saber cuanta swap tenemos hay que ejecutar el siguiente comando:
cat /proc/meminfo | grep -i swapBueno, solo decir que después de esto hubo un final feliz :-)
Enlaces relacionados:
- FIN -
2 comments:
Muchas gracias me ayudo muchisimo....XD
Gracias por la Información, funciono todo en Ubuntu Server 11.04
Post a Comment