Click to See Complete Forum and Search --> : apt-get broken


rov
01-09-2001, 08:31 PM
My apt-get is broken. It just quits on gettext when I try to install it. And when I try to remove it, it says it's in a too bad state to allow it and that I should re-install.

Here's the error message. Actually, only part of it, because it keeps on talking about the same errors over and over.

Can't locate warnings.pm in @INC (@INC contains: /usr/lib/perl5 /usr/lib/perl5/5.6/i386-linux /usr/lib/perl5/5.6 /usr/local/lib/site_perl/i386-linux /usr/local/lib/site_perl /usr/lib/perl5/5.005/i386-linux /usr/lib/perl5/5.005 .) at /usr/lib/perl5/5.6/warnings/register.pm line 3.
Compilation failed in require at /usr/lib/perl5/5.6/vars.pm line 11.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.6/vars.pm line 11.
Compilation failed in require at /usr/lib/perl5/5.6/i386-linux/Errno.pm line 6.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.6/i386-linux/Errno.pm line 6.
Compilation failed in require at /usr/lib/perl5/5.6/i386-linux/File/Glob.pm line 10.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.6/i386-linux/File/Glob.pm line 10.
Compilation failed in require at /usr/lib/emacsen-common/generate-install-list line 27.
BEGIN failed--compilation aborted at /usr/lib/emacsen-common/generate-install-list line 27.
Compilation failed in require at /usr/lib/emacsen-common/emacs-package-remove line 18.
dpkg: warning - old pre-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
Can't locate warnings.pm in @INC (@INC contains: /usr/lib/perl5 /usr/lib/perl5/5.6/i386-linux /usr/lib/perl5/5.6 /usr/local/lib/site_perl/i386-linux /usr/local/lib/site_perl /usr/lib/perl5/5.005/i386-linux /usr/lib/perl5/5.005 .) at /usr/lib/perl5/5.6/warnings/register.pm line 3.
Compilation failed in require at /usr/lib/perl5/5.6/vars.pm line 11.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.6/vars.pm line 11.
Compilation failed in require at /usr/lib/perl5/5.6/i386-linux/Errno.pm line 6.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.6/i386-linux/Errno.pm line 6.
Compilation failed in require at /usr/lib/perl5/5.6/i386-linux/File/Glob.pm line 10.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.6/i386-linux/File/Glob.pm line 10.
Compilation failed in require at /usr/lib/emacsen-common/generate-install-list line 27.
BEGIN failed--compilation aborted at /usr/lib/emacsen-common/generate-install-list line 27.
Compilation failed in require at /usr/lib/emacsen-common/emacs-package-remove line 18.
dpkg: error processing /var/cache/apt/archives/gettext_0.10.35-16_i386.deb (--unpack):
subprocess new pre-removal script returned error exit status 2
Can't locate warnings.pm in @INC (@INC contains: /usr/lib/perl5 /usr/lib/perl5/5.6/i386-linux /usr/lib/perl5/5.6 /usr/local/lib/site_perl/i386-linux /usr/local/lib/site_perl /usr/lib/perl5/5.005/i386-linux /usr/lib/perl5/5.005 .) at /usr/lib/perl5/5.6/warnings/register.pm line 3.
Compilation failed in require at /usr/lib/perl5/5.6/vars.pm line 11.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.6/vars.pm line 11.
Compilation failed in require at /usr/lib/perl5/5.6/i386-linux/Errno.pm line 6.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.6/i386-linux/Errno.pm line 6.
Compilation failed in require at /usr/lib/perl5/5.6/i386-linux/File/Glob.pm line 10.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.6/i386-linux/File/Glob.pm line 10.
Compilation failed in require at /usr/lib/emacsen-common/generate-install-list line 27.
BEGIN failed--compilation aborted at /usr/lib/emacsen-common/generate-install-list line 27.
Compilation failed in require at /usr/lib/emacsen-common/emacs-package-install line 18.
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 2

From the error messages, I've gathered that it probably has something to do with Perl. But when I try to install perl, then it wants to remove all these other packages.

Any help would be appreciated.

Strike
01-10-2001, 12:18 AM
Ew, that's ugly. Looks like a malformed package somewhere (probably with Perl 5.6, it's been kinda messed here and there).

My suggestion - run apt-get -f install to see if you can fix stuff. If not, then try dpkg --purge gettext to remove it completely, then dpkg --clean (I think that's the notation) to get rid of all package files. It might be autoclean that does that - I mean ALL package files, one does ALL of them while the other does some that meet some condition (I forget what). Then try apt-get update followed by apt-get upgrade to fix anything that may be broken (and just get an upgrade in general). And THEN try apt-get install gettext... hope that helps.

ColdPack
01-10-2001, 01:09 PM
I believe you're right -- there have been some problems with perl 5.6.
I, too, would do what Strike suggested above.
Kind of a pain but that should do it. And I think you want to apt-get autoclean.

Good luck!

------------------
What if everything is an illusion and nothing exists? In that case, I
definitely overpaid for my carpet.
-- Woody Allen, "Without Feathers"

MADHATter7
01-10-2001, 01:16 PM
Granted, I am the Debian newbie here, but...

I thought the apt-get autoclean removed file listings in the cache that were not available anymore (changed sources list, updated packages & etc) and apt-get clean removed ALL downloaded files and entries in the cache.

Am I thinking wrong again ??

<EDIT> Also, check out my NEW UNOFFICIAL SOURCES.LIST post </EDIT>

[This message has been edited by MADHATter7 (edited 10 January 2001).]

Strike
01-10-2001, 03:06 PM
Since I'm now no longer in Windows, I'll confirm - it's apt-get clean

From the apt-get man page:
clean clean clears out the local repository of retrieved
package files. It removes everything but the lock
file from /var/cache/apt/archives/ and
/var/cache/apt/archives/partial/. When APT is used
as a dselect(8) method, clean is run automatically.
Those who do not use dselect will likely want to
run apt-get clean from time to time to free up disk
space.

autoclean
Like clean, autoclean clears out the local reposi-
tory of retrieved package files. The difference is
that it only removes package files that can no
longer be downloaded, and are largely useless. This
allows a cache to be maintained over a long period
without it growing out of control.

clean gets rid of them all

----edit----
Being "now in Windows" and "now no longer in Windows" are different, for some weird reason. Seems that the latter makes more sense (and is true).

[This message has been edited by Strike (edited 10 January 2001).]

ColdPack
01-10-2001, 03:21 PM
Yup! My mistake!


------------------
What if everything is an illusion and nothing exists? In that case, I
definitely overpaid for my carpet.
-- Woody Allen, "Without Feathers"

rov
01-10-2001, 07:40 PM
apt-get -f install didn't help any, so I did the purge thing, and ...

debian:/home/rob# dpkg --purge gettext
dpkg: error processing gettext (--purge):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
gettext

Now what can I do???

MADHATter7
01-10-2001, 09:27 PM
Did you try apt-get -u install gettext then do a dpkg --purge gextext ?

If that doesn't work try dpkg --force-remove-reinstreq --purge gettext This is an advanced remove/purge command which the info/man page says can damage and/or break things. But, from what I can tell --they can break much more.....

If either one of these work, do an apt-get clean, make sure your /etc/apt/sources.list is in good shape and/or pointed where you want, then apt-get update and then continue on...

[This message has been edited by MADHATter7 (edited 10 January 2001).]

rov
01-10-2001, 09:34 PM
Doesn't work, I get the same sort of errors I got when trying to force install it.

[This message has been edited by rov (edited 10 January 2001).]

MADHATter7
01-10-2001, 09:42 PM
Try maybe a dpkg --force-depends --force-remove-reinstreq --purge gextext !

I am guessing here, running out of options......

mindwarp
01-11-2001, 08:27 AM
Sounds like a perl issue? I had the same problem. Try to reinstall, and install debconf before using the unstable tree..

rov
01-11-2001, 10:37 PM
K, it finally tries to remove gettext, but it still gets errors. Pretty much the same errors I get when trying to install it.

Do you really think I should re-install???? I'll try uninstall perl first, unfortunetly that removes a lot of other packages. Luckily, I have ADSL http://www.linuxnewbie.org/ubb/smile.gif

I guess that's the best that can come of this right now.