apt-get outputs dpkg: error processing cups (--configure)

Post your update and upgrade related errors here
Forum rules
Before you post please read how to get help

apt-get outputs dpkg: error processing cups (--configure)

Postby Emerson Prado on Fri Oct 21, 2011 6:26 pm

Hi all,
I have a problem every time I use apt-get, with any command, any options and for any packages. The command always works (installs/removes/purges/fixes as required), but returns errors about configuring cups and cups-bsd:

dpkg: error processing cups (--configure):
sub-process installed post-installation script returned error output state 25
...
dpkg: error processing cups-bsd (--configure):
sub-process installed post-installation script returned error output state 255
...
E: Sub-process /usr/bin/dpkg returned an error code (1)

I already tried apt-get purge cups cups-bsd, then manually removing remaining files in /etc, then apt-get -f install cups cups-bsd, getting the same errors above.
I don't have a printer, so I don't know whether cups work or not. I don't know about cups config files or install scripts either, so I'm clueless on where to start.

How can I get rid of this error?
Many thanks,
Emerson

inxi -d
System: Host Nosso Kernel 2.6.32-5-686 i686 (32 bit) Distro Linux Mint Debian Edition
CPU: Single core Intel Pentium 4 (UP) clocked at 2399.812 MHz
Graphics: Card Intel 82865G Integrated Graphics Controller X.Org 1.7.7 Res: 1024x768@85.0hz
GLX Renderer N/A GLX Version N/A
Disks: HDD Total Size: 2082.4GB (2.8% used)
Info: Processes 127 Uptime 1:07 Memory 374.9/2010.2MB Client Shell inxi 1.3.2
Emerson Prado
Level 1
Level 1
 
Posts: 41
Joined: Thu Nov 04, 2010 1:42 pm

Linux Mint is funded by ads and donations.
 

Re: apt-get outputs dpkg: error processing cups (--configure

Postby xenopeek on Sat Oct 22, 2011 5:54 am

You may need some cleaning up. Run the following two commands. The first finds all not-installed packages, that have residual configuration (if it doesn't show anything, all is okay). The second shows all packages that were automatically installed to satisfy dependencies for some package and that are no more needed (if "0 to remove" is shown, again all is okay).
Code: Select all
dpkg -l | grep ^rc | cut -d' ' -f3

Code: Select all
apt-get --simulate --assume-yes --purge autoremove

If there are packages that can be cleaned up, do so with following command.
Code: Select all
dpkg -l | grep ^rc | cut -d' ' -f3 | xargs sudo dpkg --purge

Code: Select all
sudo apt-get --assume-yes --purge autoremove
User avatar
xenopeek
Level 21
Level 21
 
Posts: 15285
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands


Return to Update/Upgrade Issues

Who is online

Users browsing this forum: Google [Bot] and 4 guests