LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-28-2004, 12:14 PM   #1
saltas
LQ Newbie
 
Registered: Sep 2004
Posts: 7

Rep: Reputation: 0
Exclamation 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
 
Old 09-28-2004, 01:42 PM   #2
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
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.
 
Old 09-28-2004, 03:44 PM   #3
saltas
LQ Newbie
 
Registered: Sep 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Unhappy

Neither of that worrked, mate
 
Old 09-28-2004, 04:01 PM   #4
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
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?
 
Old 09-28-2004, 04:24 PM   #5
saltas
LQ Newbie
 
Registered: Sep 2004
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
Old 09-28-2004, 05:07 PM   #6
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
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.
 
Old 09-28-2004, 05:16 PM   #7
saltas
LQ Newbie
 
Registered: Sep 2004
Posts: 7

Original Poster
Rep: Reputation: 0
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"
 
Old 09-28-2004, 05:38 PM   #8
macondo
Senior Member
 
Registered: Jul 2003
Location: Central America
Distribution: Slackwre64-current Devuan
Posts: 1,034

Rep: Reputation: 62
"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,

Last edited by macondo; 09-28-2004 at 05:39 PM.
 
Old 09-28-2004, 05:43 PM   #9
saltas
LQ Newbie
 
Registered: Sep 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks very much Dead Parrot and macando, I think Ill install a clean Stable Debian distro now.
 
Old 09-28-2004, 07:06 PM   #10
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
where is curl and gawk ???????? bozart ROCK 11 10-23-2005 10:41 PM
gawk question luxpops Programming 1 09-12-2004 04:46 AM
rh9 xd2 apt apt-get problem fix and solution transeunt Red Hat 0 12-16-2003 10:54 PM
FS=? in gawk realos Programming 2 05-28-2003 07:30 PM
Gawk install problem safrout Linux From Scratch 5 09-08-2002 08:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration