----- "Javier Barroso" <javibarr...@gmail.com> escribió: > De: "Javier Barroso" <javibarr...@gmail.com> > Para: "Marc Aymerich" <glicer...@gmail.com> > CC: "Lista Debian" <debian-user-spanish@lists.debian.org> > Enviados: Miércoles, 9 de Junio 2010 11:52:45 GMT +01:00 Amsterdam / Berlín / > Berna / Roma / Estocolmo / Viena > Asunto: Re: apt-get upgrade via ssh y vzctl > > On Wed, Jun 9, 2010 at 11:39 AM, Marc Aymerich < glicer...@gmail.com > > wrote: > > > Buenas Listeros, > > Tengo varios servidores con varios containers openvz corriendo en cada > uno. Para actualizar el sistema a través del apt uso un script que se > connecta al servidor fisico por ssh y lanza el "apt-get upgrade" a > través de la herramienta vzctl. así: > > ssh root@"$node" -C "vzctl exec $vmid \"$action\" > > node: servidor físico > vmid: identificador del container > action: apt-get upgrade > > pero haciendolo de esta forma me encuentro con problemas cuando en > algunos upgrades aparece el dialogo preguntando algunas cosas. En ese > momento creo que es cuando me aparece el siguiente error de debconf: > > The following packages will be upgraded: > libmysqlclient15off mysql-client mysql-client-5.0 mysql-common > 4 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. > Need to get 0B/10.2MB of archives. > After this operation, 147kB of additional disk space will be used. > Do you want to continue [Y/n]? > debconf: unable to initialize frontend: Dialog > debconf: (TERM is not set, so the dialog frontend is not usable.) > debconf: falling back to frontend: Readline > debconf: unable to initialize frontend: Readline > debconf: (This frontend requires a controlling tty.) > debconf: falling back to frontend: Teletype > dpkg-preconfigure: unable to re-open stdin: > (Reading database ... 29715 files and directories currently > installed.) > Preparing to replace mysql-common 5.0.51a-24+lenny3 (using > .../mysql-common_5.0.51a-24+lenny4_all.deb) ... > Unpacking replacement mysql-common ... > Preparing to replace libmysqlclient15off 5.0.51a-24+lenny3 (using > .../libmysqlclient15off_5.0.51a-24+lenny4_amd64.deb) ... > Unpacking replacement libmysqlclient15off ... > Preparing to replace mysql-client 5.0.51a-24+lenny3 (using > .../mysql-client_5.0.51a-24+lenny4_all.deb) ... > Unpacking replacement mysql-client ... > Preparing to replace mysql-client-5.0 5.0.51a-24+lenny3 (using > .../mysql-client-5.0_5.0.51a-24+lenny4_amd64.deb) ... > Unpacking replacement mysql-client-5.0 ... > Processing triggers for man-db ... > Setting up mysql-common (5.0.51a-24+lenny4) ... > Setting up libmysqlclient15off (5.0.51a-24+lenny4) ... > Setting up mysql-client-5.0 (5.0.51a-24+lenny4) ... > Setting up mysql-client (5.0.51a-24+lenny4) ... > > > Alguna idea de como evitarlo? se puede redirigir el dialogo hacia la > tty donde ejecuto el script? > > Probaría a usar el parámetro -t en el ssh, por ejemplo "ssh -t server > aptitude" funciona! > > ¿Alguien sabe cuando se usa el -tt ? > > Saludos!
Buenas, Yo te recomendaria el uso de "apt-dater" es muy util, es una aplicacion basada en ncurses (creo) y screen que te permite actualizar todos los equipos que quieras a través de SSH. Saludos -- ilimit... *Martí Cardús* marti.car...@ilimit.net ÀREA SISTEMES 0034 937 333 375 VOLTA 1, PIS 5 08224 TERRASSA.BCN -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/18978604.29681276078487912.javamail.r...@zimbra