Linux - NewbieThis forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
When installing a package (hugs) through apt-get my laptop had a kernel panic and I had to do a hard reset. Upon starting up, I ran fsck all the partitions (jfs) and rebooted into Ubuntu.
However hugs was unconfigured and can't be installed / removed. I tried an apt-get purge and dpkg --configure -a / dpkg --remove -f hugs but the error message in all cases is:
Code:
root@core:/var/lib/aptitude# dpkg --remove hugs
(Reading database ... 161721 files and directories currently installed.)
Removing hugs ...
dpkg (subprocess): unable to execute pre-removal script: Exec format error
dpkg: error processing hugs (--remove):
subprocess pre-removal script returned error exit status 2
dpkg (subprocess): unable to execute post-installation script: Exec format error
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
hugs
How do I get around the pre-removal script and force dpkg to remove hugs?
Well I'm having trouble installing/removing it either way, but forcing the install doesn't work. One of the dependency libraries was corrupt so I cleared all the cached packages and reran the command. Now the error is "dpkg: unable to execute post-install script: Exec format error"
Code:
root@core:~# aptitude install -f hugs
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following partially installed packages will be configured:
hugs
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
Setting up hugs (98.200609.21-5) ...
dpkg (subprocess): unable to execute post-installation script: Exec format error
dpkg: error processing hugs (--configure):
subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
hugs
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Did you look at the link I provided ? it has other options as well for working past these issues..
You should have posted this thread in the Debian forum, it might have got more exposure that way to some of the more advance Debian users, who might not notice the post here.. just for future reference.
Yes, the link was very helpful and informative. However despite trying all the suggestions I still cannot install / remove the hugs package. It doesn't help that there are no other versions to force a downgrade (but even then the remove script would probably crap out).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.