Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I get this error when I use apt-get upgrade & apt-get autoremove and on every apt-get [Something].. and when I try to install applications too:

Errors were encountered while processing:
man-db
E: Sub-process /usr/bin/dpkg returned an error code (1)
share|improve this question
    
Solved by executing this command: sudo dpkg-reconfigure -phigh -a Thank you. –  R9TySix Feb 15 '12 at 18:09

6 Answers 6

No solution mentioned in the answers worked for me and I tried a solution mentioned here by executing the following command

sudo dpkg -i --force-all [deb file path]

and that worked.

share|improve this answer
    
What is [deb file path] ? –  GreenAsJade Mar 27 at 0:04
1  
That is the path of .deb file –  Ravindra Gullapalli Mar 27 at 9:56
    
Thanks for replying, and sorry for my ignorance. I had this problem, and I don't know what .deb file you are referring to (I solved the problem using the "delete *.dat" file approach below, but I didn't like that much (like, whoa, this seems hacky) –  GreenAsJade Mar 27 at 10:13

Simple and working i tried it !!

sudo -s
cd /var/cache/debconf
rm *.dat
apt-get update && apt-get upgrade

Enjoy ;)

share|improve this answer

You have to run those commands with sudo preceding them so they can be executed with super user credentials Example:

sudo apt-get autoremove "NAME OF PACKAGE HERE"
share|improve this answer
    
i run sudo -s when i first start terminal. –  R9TySix Feb 15 '12 at 18:01
    
sudo dpkg-reconfigure -phigh -a this solved the problem Thanks –  R9TySix Feb 15 '12 at 18:10

community wiki answer - solved by OP

This problem was resolved by running the following terminal command:

sudo dpkg-reconfigure -phigh -a
share|improve this answer

If you have deleted /var/cache in a misguided attempt to clean up (like I did), this might fix the issue (it did for me):

sudo mkdir /var/cache/debconf
share|improve this answer

The following worked for me too:

sudo mkdir /var/cache/debconf

I had a cleaning script running like the following:

#!/bin/bash
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
sudo apt-get -y autoremove
cd /var/cache
rm -R *
cd /root/.cache
rm -R *
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.