[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: Problemas con "locale" tras hacer un upgrade.




> -----Mensaje original-----
> De: Jorge Barreiro [mailto:yortx.barry@gmail.com]
> Enviado el: martes, 24 de agosto de 2010 18:48
> Para: debian-user-spanish@lists.debian.org
> Asunto: Re: Problemas con "locale" tras hacer un upgrade.
> 
> O Martes, 24 de Agosto de 2010 17:59:57 Ramses II escribiu:
> > No hay suerte, Angel.
> >
> > Ha hecho lo que me comentas y sigue dando el mismo error.
> >
> > Además, ejecuto después el comando que me has dado y:
> >
> > ------------------------------------------------------------------------
> --
> > # dpkg -l|awk '/^ii/ { print $2 }' > /tmp/files.txt
> > warning, in file '/var/lib/dpkg/status' near line 1347 package
> > 'perl-modules':
> >  'Conflicts' field, reference to 'libattribute-handlers-perl': error in
> > version: invalid character in version number
> > warning, in file '/var/lib/dpkg/available' near line 1343 package
> > 'perl-modules':
> >  'Conflicts' field, reference to 'libattribute-handlers-perl': error in
> > version: invalid character in version number
> > ------------------------------------------------------------------------
> --
> >
> > ¿Alguna otra idea?. No vale la opción de cortarse las venas... :-)
> >
> >
> > Saludos y gracias,
> >
> > Ramses
> >
> > 2010/8/24 AngelD <angeld@froga.net>
> >
> > > El Tue, 24 Aug 2010 17:10:11 +0200
> > >
> > > Ramses II <ramses.sevilla@gmail.com> escribió:
> > > > Buenas a todos de nuevo,
> > > >
> > > > Sigo peleando con el server remoto en el que me había "cepillado"
> > > > dpkg y algún otro paquete...
> > > >
> > > > Ya conseguí instalarlo gracias a ustedes, ahora es otro el problema,
> > > > os cuento...
> > > >
> > > > No puedo hacer un upgrade ni instalar nada, ya que al intentarlo me
> > > > da un error de locale.
> > > >
> > > > Voy a poner un ejemplo, me pasa al intentar instalar cualquier cosa
> o
> > > > incluso intentar hacer un upgrade:
> > > >
> > > > - Intentamos instalar, por ejemplo, el paquete "rpm":
> > > >
> > > > ------------------------------
> > > > --------------------------------
> > > > pepe:/etc# apt-get install rpm
> > > > Reading package lists... Done
> > > > Building dependency tree... Done
> > > >
> > > > The following extra packages will be installed:
> > > >   gcc-4.3-base libbeecrypt6 libc6 libc6-i686 libkeyutils1 libkrb53
> > > >
> > > > libneon27 librpm4.4 libsqlite3-0 libssl0.9.8 libstdc++6
> > > >
> > > >   zlib1g
> > > >
> > > > Suggested packages:
> > > >   locales glibc-doc krb5-doc krb5-user alien
> > > >
> > > > The following NEW packages will be installed:
> > > >   gcc-4.3-base libbeecrypt6 libkeyutils1 libneon27 librpm4.4 rpm
> > > >
> > > > The following packages will be upgraded:
> > > >   libc6 libc6-i686 libkrb53 libsqlite3-0 libssl0.9.8 libstdc++6
> zlib1g
> > > >
> > > > 7 upgraded, 6 newly installed, 0 to remove and 268 not upgraded.
> > > > 3 not fully installed or removed.
> > > > Need to get 6505kB/12.3MB of archives.
> > > > After unpacking 7692kB of additional disk space will be used.
> > > > Do you want to continue [Y/n]?Y
> > > > Get:1 http://ftp.us.debian.org lenny/main gcc-4.3-base 4.3.2-1.1
> > > > [103kB] Get:2 http://ftp.us.debian.org lenny/main libstdc++6
> > > > 4.3.2-1.1 [332kB] Get:3 http://ftp.us.debian.org lenny/main zlib1g
> > > > 1:1.2.3.3.dfsg-12 [73.2kB] Get:4 http://ftp.us.debian.org lenny/main
> > > > libssl0.9.8 0.9.8g-15+lenny7 [2979kB]
> > > > Get:5 http://ftp.us.debian.org lenny/main libkeyutils1 1.2-9 [5584B]
> > > > Get:6 http://ftp.us.debian.org lenny/main libkrb53
> > > > 1.6.dfsg.4~beta1-5lenny4 [482kB]
> > > > Get:7 http://ftp.us.debian.org lenny/main libsqlite3-0 3.5.9-6
> [245kB]
> > > > Get:8 http://ftp.us.debian.org lenny/main libbeecrypt6 4.1.2-7
> [107kB]
> > > > Get:9 http://ftp.us.debian.org lenny/main libneon27 0.28.2-6.1
> [140kB]
> > > > Get:10 http://ftp.us.debian.org lenny/main librpm4.4 4.4.2.3-1
> [948kB]
> > > > Get:11 http://ftp.us.debian.org lenny/main rpm 4.4.2.3-1 [1090kB]
> > > > Fetched 6505kB in 8s (773kB/s)
> > > > Can't exec "locale": No such file or directory at
> > > > /usr/share/perl5/Debconf/Encoding.pm line 16.
> > > > Use of uninitialized value in scalar chomp at
> > > > /usr/share/perl5/Debconf/Encoding.pm line 17.
> > > > Preconfiguring packages ...
> > > > warning, in file '/var/lib/dpkg/status' near line 1322 package
> > > >
> > > > 'perl-modules':
> > > >  'Conflicts' field, reference to 'libattribute-handlers-perl': error
> > > >
> > > > in version: invalid character in version number
> > > > warning, in file '/var/lib/dpkg/available' near line 1343 package
> > > >
> > > > 'perl-modules':
> > > >  'Conflicts' field, reference to 'libattribute-handlers-perl': error
> > > >
> > > > in version: invalid character in version number
> > > > dpkg: warning: 'ldconfig' not found in PATH or not executable.
> > > > dpkg: 1 expected program(s) not found in PATH or not executable.
> > > > NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin
> > > > and /sbin. E: Sub-process /usr/bin/dpkg returned an error code (2)
> > > > pepe:/etc#
> > > > --------------------------------------------------------------
> > > >
> > > > Cualquier paquete que quiero instalar me da ese mismo error, no sé
> si
> > > > es porque se hayan mezclado versiones o qué...
> > > >
> > >         Tiene pinta de que se te ha corrompido el fichero
> > >
> > > '/var/lib/dpkg/status'.  Tras realizar una copia del mismo,
> sustituyelo
> > > por la copia anterior '/var/lib/dpkg/status-old', y piensa en
> > > [1]reinstalar TODOS los paquetes de nuevo, porque con los problemas
> que
> > > estás contando no me fiaría de nada.
> > >
> > >        Saludos --- Angel
> > >
> > >  [1] dpkg -l|awk '/^ii/ { print $2 }' > /tmp/files.txt
> > >
> > >     aptitude reinstall `cat /tmp/files.txt`
> > >
> > > --
> > > To UNSUBSCRIBE, email to debian-user-spanish-REQUEST@lists.debian.org
> > > with a subject of "unsubscribe". Trouble? Contact
> > > listmaster@lists.debian.org
> > > Archive: [🔎] 20100824174049.717b234a@x32">http://lists.debian.org/[🔎] 20100824174049.717b234a@x32
> 
> Es muy posible que además de eliminar el paquete dpkg hayas eliminado
> otros
> paquetes esenciales del sistema. El ejecutable "locale" que parece que no
> tienes y es por lo que protesta, viene en el paquete "libc-bin". Intenta
> instalarlo. Si tampoco se deja, prueba el mismo método bruto que hayas
> usado
> para dpkg.
> 
> Una vez que lo tengas arreglado, te recomendaría asegurarte que tienes
> todos
> los paquetes esenciales, y de prioridad "required" instalados. El comando:
> 
> # aptitude install ~E ~prequired
> 
> se encargará de eso (a menos que otros paqutes que falten lo impidan).
> 
> Saludos.
> 
> 
> --
> To UNSUBSCRIBE, email to debian-user-spanish-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
> Archive: [🔎] 201008241848.21024.yortx.barry@gmail.com">http://lists.debian.org/[🔎] 201008241848.21024.yortx.barry@gmail.com

Jorge, buenas tardes,

Has dado en el clavo:

He intentado instalar el paquete con un "apt-get install libc-bin" y no
llegaba a instalarlo porque cascaba con el mismo error.

He descargado el paquete "libc-bin" desde esta dirección
"http://packages.debian.org/sid/libc-bin"; y lo he instalado a las bravas,
cosa que me habéis enseñado aquí también... :-)

He hecho un "apt-get update" y un "apt-get upgrade" y viola, solucionado el
problema.

He ejecutado después el " aptitude install ~E ~prequired" para ve si todo lo
imprescindible estaba instalado y me lo ha instalado.

Solo me queda algún detalle que no tengo claro antes de cerrar el hilo como
solucionado...

Si vuelvo a hacer un "apt-get upgrade" ma da lo siguiente:

------------------------------------------
pepe:/etc# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
  bind9-host cmake cpp dnsutils gcc gettext grub lftp libapache2-mod-php5
libaprutil1 libcupsimage2 libcupsys2 libcurl3 libming0 librpcsecgss3
libsasl2-2
  libsvn1 libungif4g libx11-6 libx11-dev linux-image-2.6-686 mc netcat
php-pear php5 php5-cgi php5-cli php5-common php5-curl php5-gd php5-imagick
php5-imap
  php5-ldap php5-mcrypt php5-mhash php5-mysql php5-pspell php5-recode
php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl python2.4
python2.4-minimal
  rrdtool snmp snmpd ssl-cert subversion syslog-ng ttf-dejavu xinetd
0 upgraded, 0 newly installed, 0 to remove and 53 not upgraded.
pepe:/etc#
------------------------------------------

Es decir, me dice que hay 53 paquetes no actualizados y no me da opción a
actualizarlos.

Pero si hago un "apt-get dist-upgrade" me sale lo siguiente:

------------------------------------------
pepe:/etc# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
  libsasl2 php5-json
The following NEW packages will be installed:
  cpp-4.3 djvulibre-desktop fontconfig gcc-4.3 ghostscript grub-common
gs-common hicolor-icon-theme libatk1.0-0 libatk1.0-data libbind9-50
libc-client2007b
  libcairo2 libcap2 libcroco3 libcups2 libcurl3-gnutls libdatrie0 libdb4.5
libdirectfb-1.0-0 libdjvulibre21 libdns55 libevtlog0 libfontenc1 libgif4
  libgmp3c2 libgnutls26 libgomp1 libgpm2 libgraphviz4 libgs8 libgsf-1-114
libgsf-1-common libgssglue1 libgtk2.0-0 libgtk2.0-bin libgtk2.0-common
  libilmbase6 libisc52 libisccc50 libisccfg50 libjasper1 libldap-2.4-2
liblwres50 libmagick10 libmpfr1ldbl libneon27-gnutls libopenexr6
libpango1.0-0
  libpango1.0-common libperl5.10 libpixman-1-0 libpq5 libpthread-stubs0
libpthread-stubs0-dev librrd4 librsvg2-2 libserf-0-0 libsnmp15 libssh2-1
  libthai-data libthai0 libts-0.0-0 libwmf0.2-7 libxcb-render-util0
libxcb-render0 libxcb-xlib0 libxcb-xlib0-dev libxcb1 libxcb1-dev
libxcomposite1
  libxcursor1 libxdamage1 libxfixes3 libxfont1 libxft2 libxi6 libxinerama1
libxmlrpc-c3 libxrandr2 libxrender1 linux-image-2.6.26-2-686
netcat-traditional
  openssl-blacklist psfontmgr python python-minimal python2.5
python2.5-minimal ttf-dejavu-core ttf-dejavu-extra x-ttcidfont-conf
xfonts-encodings
  xfonts-utils
The following packages have been kept back:
  xinetd
The following packages will be upgraded:
  bind9-host cmake cpp dnsutils gcc gettext grub lftp libapache2-mod-php5
libaprutil1 libcupsimage2 libcupsys2 libcurl3 libming0 librpcsecgss3
libsasl2-2
  libsvn1 libungif4g libx11-6 libx11-dev linux-image-2.6-686 mc netcat
php-pear php5 php5-cgi php5-cli php5-common php5-curl php5-gd php5-imagick
php5-imap
  php5-ldap php5-mcrypt php5-mhash php5-mysql php5-pspell php5-recode
php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl python2.4
python2.4-minimal
  rrdtool snmp snmpd ssl-cert subversion syslog-ng ttf-dejavu
52 upgraded, 94 newly installed, 2 to remove and 1 not upgraded.
Need to get 106MB of archives.
After this operation, 196MB of additional disk space will be used.
Do you want to continue [Y/n]?
------------------------------------------

Me surge la duda de si debería hacer el upgrade o no, ya que estoy en
remoto...

¿Qué me podríais recomendar?


Saludos y gracias,

Ramses


Reply to: