Solving E: Sub-process /usr/bin/dpkg returned an error code(1)

by AllForLinux.com on July 10, 2010

in Ubuntu

Some Ubuntu users may had experienced this problem. And it’s can’t be fixed by simply typing sudo dpkg –configure -a . I got a way to resolve it, but users must be remember that I am not responsible for any trouble caused by this solution. I tried, and it works on my PC.

How to resolve it?

First Delete (sudo rm)
/var/lib/dpkg/info/"unwanted-package-name".postrm
/var/lib/dpkg/info/"unwanted-package-name".list

And over here, the unwanted-package-name is the package that causing the main problem, when the problem is appeared, you will know where the package that causing the problem.

After that, type this following codes respectively on the terminal.

sudo apt-get clean all

sudo apt-get update //run it twice

sudo apt-get upgrade

Note that for safety reason, please backup those files that I defined above.

I hope this solution could resolve your problem. Any trouble please do share over the comment box or the discussion page in AFL Facebook Page.

Related Posts Plugin for WordPress, Blogger...

{ 24 comments… read them below or add one }

Kelly Heart October 24, 2010 at 1:51 pm

What a nice post my friend. I am a facebook fan and mostly spend my time playing some facebook games and just chatting out with my colleages. Surely, there are so many ways we can use facebook and I really love using it. I hope they have something more new to come for all of us.

ghulam yaseen November 4, 2010 at 5:46 pm

very good tutorial,thanks alot

horro December 19, 2010 at 7:42 pm

Thx!!!!!

Tazy December 21, 2010 at 11:24 am

dude, thanks
many thanks
i had the stupid bug a lot and never knew how to fix @-@
every other tutorial with apt-get -f install and the crap failed!!!
oh man what a lucky found on google your post :D

AllForLinux.com January 3, 2011 at 12:52 am


Tazy:

dude, thanks
many thanks
i had the stupid bug a lot and never knew how to fix @-@
every other tutorial with apt-get -f install and the crap failed!!!
oh man what a lucky found on google your post :D

your welcome buddy :)

LightVision January 30, 2011 at 12:19 am

Hi,

Thank You very much.

I was aware of removing stalled information about the trouble package but I didn’t knew about
apt-get clean all
apt-get update (twice)

In my case those two commands done the trick.
And by the way, many thanks, because I was not in a position to reinstall Debian, the machine is a server

AllForLinux.com January 30, 2011 at 12:25 am


LightVision:

Hi,

Thank You very much.

I was aware of removing stalled information about the trouble package but I didn’t knew about
apt-get clean all
apt-get update (twice)

In my case those two commands done the trick.
And by the way, many thanks, because I was not in a position to reinstall Debian, the machine is a server

it is a pleasure for me to help :)

Ahmad February 5, 2011 at 2:54 am

Thank You very much…. :D

sasongko February 9, 2011 at 6:12 am

thak you so much, very very much dude

I think i have to re-install my maverick, but thank’s god to you who write this tutorial for a dumb like me.

once again, thank you so much

AllForLinux.com February 10, 2011 at 12:08 am


sasongko:

thak you so much, very very much dude

I think i have to re-install my maverick, but thank’s god to you who write this tutorial for a dumb like me.

once again, thank you so much

ngak masalah boss :P

hugh hefna February 11, 2011 at 1:08 pm

Wow, can’t believe that not even this worked for me :-(

I am having this issue with courier-imap & courier-pop. It started after I was installing Dovecot & it was automatically uninstalling courier.

It keeps saying that the configuration file for courier is missing, hence it cannot be removed nor updated nor anything.

sasongko February 13, 2011 at 12:31 pm


AllForLinux.com:


sasongko:

thak you so much, very very much dude
I think i have to re-install my maverick, but thank’s god to you who write this tutorial for a dumb like me.
once again, thank you so much

ngak masalah boss

weleh… indo juga toh…
kalo gitu pake bahasa kerajaan lagi… makasih banyak gan :)

Tazy May 18, 2011 at 1:21 pm

You might have to add to it, if this method fails remove the package you have to upgrade. like described. then download the new one *.deb
extract it and copy over the /usr/ /etc/ /var/ folders on to /
did for me the trick with e2fsprogs***.deb
Then just install it again via synaptic.
Of course it helps only if its a error with cannot write /blabla/. (was for me some locale)

Openxcell Inc May 23, 2011 at 8:12 pm

Thanks for sharing, when I get this error I live my laptop as it is. When I get time I formats whole laptop and try again to install. But now I will follow this process to update.

JDWired August 11, 2011 at 1:43 am

Wow, thank you VERY much for this! Had an issue with a dcp1000lpr not deleting and your tutorial worked flawlessly.

Bookmarked!

venkat October 14, 2011 at 6:13 pm

Thank YOU so much….
It saves my time….

AllForLinux.com October 14, 2011 at 6:14 pm

no worries, it’s my pleasure to help :)

David November 2, 2011 at 2:13 am

Man, didn’t work for me, maybe because i couldn’t find the unwanted file…

could you help me?

Pat November 6, 2011 at 11:31 am

You are the best!

AllForLinux.com November 19, 2011 at 8:04 am

Could you specify more about the unwanted file? Thanks.

Chipo December 10, 2011 at 1:55 am

Thanks for the post, worked for me (Linux Mint 11 (Katya).

Danilo December 20, 2011 at 8:20 pm

Thank you very much, this tutorial worked for me! (Ubuntu 11.10)

dinesh January 7, 2012 at 4:15 pm

hey!!! bro….. you are awesome thank you ……………………..very ………………………….muchhhhhhhhhhhhhhhhhhhhhhh
i tried recently 3 or 4 week there is mno solution but suddenly i saw you post and i got .it ………….its working………wooooooooooooooooooooooooooooo good ……….man;;;;;;;;;;;; thankx a lot

YAsh April 19, 2012 at 6:54 pm

What a Great Article it its really informative and innovative keep us posted with new updates.
its was really valuable.I must admit it, terrific job on this blog,
I’ll be sure to check back again real soon.

http://www.mobitily.com

Leave a Comment

{ 1 trackback }

Previous post:

Next post: