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

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...

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

  1. Kelly Heart says:

    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.

  2. very good tutorial,thanks alot

  3. Tazy says:

    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


  4. 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 :)

  5. LightVision says:

    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


  6. 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 :)

  7. Ahmad says:

    Thank You very much…. :D

  8. sasongko says:

    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


  9. 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

  10. hugh hefna says:

    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.

  11. sasongko says:


    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 :)

  12. Tazy says:

    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)

  13. 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.

  14. JDWired says:

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

    Bookmarked!

  15. venkat says:

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

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

  17. David says:

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

    could you help me?

  18. Pat says:

    You are the best!

  19. Could you specify more about the unwanted file? Thanks.

  20. Chipo says:

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

  21. Danilo says:

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

  22. dinesh says:

    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

  23. [...] Solving E: Sub-process /usr/bin/dpkg returned an error code(1)I always encounter dependency error with my Gdebi Package Installer, solution was simple from http://allforlinux.com. [...]

  24. YAsh says:

    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

  25. I think this is the best tutorial info; I really like to read it; and I hope it’s very helpful and useful to me, Thanks sharing; great going.

Leave a Reply