DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
# 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
# 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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.