Ubuntu – cups won’t install

cupsUbuntu

I had to remove cups from my machine to do some tests. I juste removed it with apt-get purge cups but now I can't install it again, so I can't print.
I have never seen such an error, can someone give me some explanations about what's happening ? (I mostly want to learn and understand my error, but I googled it up and there is so much different case. I'm running Ubuntu 10.04).

When I try to install it with apt-get install cups, I get this outcome :

root@pc-desktop:/home/pc# apt-get install cups
Reading package lists... Done
Building dependency tree        
Reading state information... Done
cups is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up cups (1.4.3-1ubuntu1.5) ...
update-rc.d: warning: /etc/init.d/cups missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
/usr/sbin/cupsd: symbol lookup error: /usr/sbin/cupsd: undefined symbol: _httpReadGNUTLS
cups: unable to start scheduler.
invoke-rc.d: initscript cups, action "start" failed.
dpkg: error processing cups (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of ghostscript-cups:
ghostscript-cups depends on cups; however:
Package cups is not configured yet.
dpkg: error processing ghostscript-cups (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cups-driver-gutenprint:
cups-driver-gutenprint depends on cups (>= 1.3.0); however:
Package cups is not configured yet.
cups-driver-gutenprint depends on ghostscript-cups; however:
Package ghostscript-cups is not configured yet.
dpkg: error processing cups-driver-gutenprint (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
cups
ghostscript-cups
cups-driver-gutenprint
E: Sub-process /usr/bin/dpkg returned an error code (1) 

And I have a prompt again.

Does somebody have any clue ? I really don't know where I should begin to search.
Thank you very much in advance.
Patrick.

Best Answer

hmmm try an autoremove after the install:

sudo apt-get purge cups && sudo apt-get autoremove
sudo apt-get update && sudo apt-get install cups