LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-21-2008, 07:31 AM   #1
Azizcoos
Member
 
Registered: Nov 2004
Location: KHIE
Distribution: Debian et al
Posts: 81

Rep: Reputation: 16
Broken Package Blocking Upgrade


The broken package is antlr. It won't install, and it can't be removed.
Quote:
# dpkg -r --force-remove-reinstreq antlr
dpkg - warning, overriding problem because --force enabled:
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
(Reading database ... 434535 files and directories currently installed.)
Removing antlr ...
Traceback (most recent call last):
File "/usr/sbin/update-python-modules", line 348, in ?
post_change_stuff(py)
File "/usr/sbin/update-python-modules", line 224, in post_change_stuff
file(initfile,"w").close()
IOError: [Errno 2] No such file or directory: '/var/lib/python-support/python2.3/editobj/__init__.py'
dpkg: error processing antlr (--remove):
subprocess pre-removal script returned error exit status 1
Traceback (most recent call last):
File "/usr/sbin/update-python-modules", line 344, in ?
bytecompile_all(py)
File "/usr/sbin/update-python-modules", line 238, in bytecompile_all
post_change_stuff(py)
File "/usr/sbin/update-python-modules", line 224, in post_change_stuff
file(initfile,"w").close()
IOError: [Errno 2] No such file or directory: '/var/lib/python-support/python2.3/editobj/__init__.py'
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
antlr
I get the same error on install attempts:
Quote:
No such file or directory: '/var/lib/python-support/python2.3/editobj/__init__.py'
'apt-get -f install' does the same thing. The upgrade is stuck on processing antlr. I can't install it, I can't remove it, and I can't ignore it. I waited for a while to see if there was a bug that might get fixed, but the situation is unchanged after at least two weeks.
Any ideas?
 
Old 02-22-2008, 08:51 AM   #2
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Try dpkg --purge antlr
 
Old 02-22-2008, 09:15 AM   #3
oxleyk
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 309

Rep: Reputation: 30
I've seen similar problems that were caused by bad update information from the download source. I just wait a day or two and it usually gets fixed.

Kent
 
Old 02-22-2008, 07:22 PM   #4
Azizcoos
Member
 
Registered: Nov 2004
Location: KHIE
Distribution: Debian et al
Posts: 81

Original Poster
Rep: Reputation: 16
Same thing again:
Quote:
# dpkg --purge antlr
dpkg: error processing antlr (--purge):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
antlr
 
Old 02-22-2008, 11:05 PM   #5
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Is your system stable, testing, unstable, mixed ?

apt-cache policy antlr
 
Old 02-22-2008, 11:23 PM   #6
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Can you install it with dpkg? ... # dpkg -i antlr
 
Old 02-23-2008, 07:06 AM   #7
Azizcoos
Member
 
Registered: Nov 2004
Location: KHIE
Distribution: Debian et al
Posts: 81

Original Poster
Rep: Reputation: 16
Quote:
# dpkg -i antlr
dpkg: error processing antlr (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
antlr
Can't install it, can't remove it, and can't ignore it...
 
Old 02-23-2008, 08:20 AM   #8
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
Just installed it on sid - no problem.

Is this stable or testing? 32 or 64?
 
Old 02-23-2008, 09:21 AM   #9
Azizcoos
Member
 
Registered: Nov 2004
Location: KHIE
Distribution: Debian et al
Posts: 81

Original Poster
Rep: Reputation: 16
Quote:
apt-cache policy antlr
antlr:
Installed: 2.7.7-2
Candidate: 2.7.7-3
Version table:
2.7.7-3 0
500 ftp://debian.lcs.mit.edu unstable/main Packages
*** 2.7.7-2 0
100 /var/lib/dpkg/status
I installed unstable by mistake a while back.
 
  


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
broken package simasimon Ubuntu 2 12-06-2007 05:16 PM
Broken Package during upgrade - unable to fix farslayer Debian 6 10-02-2006 11:10 AM
synaptic package manager forcing me to delete a broken package mbman Linux - Software 6 04-25-2006 09:30 AM
Will 'aptitude upgrade or dist-upgrade' downgrade manually installed deb package? Akhran Debian 3 03-14-2006 02:40 PM
Does apt-get install <package> upgrade the package if it is already installed? davidas Debian 4 04-05-2004 06:12 PM

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

All times are GMT -5. The time now is 01:11 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