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
apt-get outputs dpkg: error processing cups (--configure)
Forum rules
LMDE 2 has reached end of support as of 1-1-2019
LMDE 2 has reached end of support as of 1-1-2019
apt-get outputs dpkg: error processing cups (--configure)
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: apt-get outputs dpkg: error processing cups (--configure
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).
If there are packages that can be cleaned up, do so with following command.
Code: Select all
dpkg -l | grep ^rc | cut -d' ' -f3
Code: Select all
apt-get --simulate --assume-yes --purge autoremove
Code: Select all
dpkg -l | grep ^rc | cut -d' ' -f3 | xargs sudo dpkg --purge
Code: Select all
sudo apt-get --assume-yes --purge autoremove