LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Gawk and Apt-get Problem (https://www.linuxquestions.org/questions/debian-26/gawk-and-apt-get-problem-236242/)

saltas 09-28-2004 12:14 PM

Gawk and Apt-get Problem
 
Hi y'all,

I have a problem with apt-get: when I try to install any package it says that the "extra" package 'gawk'needs to be install aswell, however when I accept this, it downloads both package (the one that I intented to install and the gawk) but it cant install gwak, and consequently it can install the other package. So now, I cannot install anything!

What is even more strange is that gwak is already installed in my box, and when I try to remove it (apt-get remove gawk) it says that I need to reinstall it first and then remove it.

Do I make myself clear?

Thank you

Dead Parrot 09-28-2004 01:42 PM

Have you tried yet "apt-get -f install"? If that doesn't help, type (as root) "dpkg -i --force-overwrite /var/cache/apt/archives/gawk*". That should do the trick. :)

saltas 09-28-2004 03:44 PM

Neither of that worrked, mate

Dead Parrot 09-28-2004 04:01 PM

Quote:

Neither of that worrked, mate
Do you mean that you still don't have gawk installed? Or do you mean that gawk is now installed but the package that depends on gawk still refuses to install?

What kind of error messages did these commands produce?

What repos (stable/testing/unstable/experimental) do you have in /etc/apt/sources.list?

saltas 09-28-2004 04:24 PM

I mean that even though gawk is installed in my box, apt-get try to install it every time I want to install a different package, and it cant install both of them.

This are the logs (im sorry but the are in spanish):

Preparando para reemplazar gawk 1:3.1.3-2 (usando .../gawk_1%3a3.1.4-1_i386.deb) ...
/var/lib/dpkg/info/gawk.prerm: line 5: 7214 Violación de segmento install-info --quiet --remove gawk
dpkg: aviso - script de `pre-removal' antiguo devolvió código de error 139
dpkg - probando el script del nuevo paquete en su lugar...
/var/lib/dpkg/tmp.ci/prerm: line 5: 7216 Violación de segmento install-info --quiet --remove gawk
dpkg: error al procesar /var/cache/apt/archives/gawk_1%3a3.1.4-1_i386.deb (--unpack):
el subproceso script pre-removal nuevo devolvió el código de salida de error 139
/var/lib/dpkg/info/gawk.postinst: line 4: 7218 Violación de segmento install-info --quiet --section "General Commands" "General Commands" /usr/share/info/gawk.info.gz
dpkg: error al reorganizar:
el subproceso post-installation script devolvió el código de salida de error 139
Se encontraron errores al procesar:
/var/cache/apt/archives/gawk_1%3a3.1.4-1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

with "dpkg -i --force-overwrite /var/cache/apt/archives/gawk*" i got the same that above.

Dead Parrot 09-28-2004 05:07 PM

Hmm... the error messages don't say much to me (I don't speak Spanish).

Do you have a Debian box or are you using some Debian derivative distro (Knoppix, etc.)? I'm asking this because your current gawk version (1:3.1.3-2) seems a bit strange -- Woody has 1:3.1.0-3 while both testing and unstable use 1:3.1.4-1.

I tried installing gawk in my own box (Debian Sid) and it installed without any hiccups, so (provided you're using official Debian repos) there's nothing wrong with the gawk package itself. To tell you the truth, I'm out of further suggestions at this time. :confused:

saltas 09-28-2004 05:16 PM

Im using knoppix 3.3.

I have gawk working in my box, so I dont know why in the world apt-get wants to install it every time!!

I change the source.list to only stable versions and I get this error inmediatly afet apt-get upgrade:

"The package gawk needs to be reinstall, but it cant be found"

macondo 09-28-2004 05:38 PM

"Hmm... the error messages don't say much to me (I don't speak Spanish)."

You didn't miss much Dead Parrot.

saltas: Knoppix is NOT Debian, it has different sources.lists so different packages can be installed by the knoppix people.
But, for a user, is pure hell, you either use it as is, or install MEPIS or KANOTIX, both of whom are based on Sid alone, and will behave like a regular Debian/sid.

As for locales, do:

#dpkg-reconfigure locales

select all the en_US and es_ES, on the next screen for your environment, choose the es_ES with Euro, utf-8 get out, reboot and your locales will show perfectly in spanish.

Cómo Castellanizar Debian
http://www.realidadfutura.com/docu/d...ellanizar.html

suerte,

saltas 09-28-2004 05:43 PM

Thanks very much Dead Parrot and macando, I think Ill install a clean Stable Debian distro now.

Dead Parrot 09-28-2004 07:06 PM

For desktop use you should try the new Sarge installer:

http://www.debian.org/devel/debian-installer/

Woody is currently the "stable" Debian release, but it's over two years old. Sarge will become the next stable release, hopefully during this year.

The Debian Wiki page here at LinuxQuestions.org explains why "stable", "testing", and "unstable" branches in Debian have such nicknames as Woody, Sarge, and Sid:

http://wiki.linuxquestions.org/wiki/Debian


All times are GMT -5. The time now is 04:40 PM.