杯子不会安装

我不得不从我的机器上取下杯子来做一些testing。 我使用apt-get purge cups将其删除,但现在无法再安装,所以无法打印。 我从来没有见过这样的错误,有人能给我一些解释发生了什么? (我主要是想学习和理解我的错误,但我google了,有很多不同的情况下,我正在运行的Ubuntu 10.04)。

当我尝试使用apt-get安装杯安装它时,我得到了这个结果:

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) 

我又有一个提示。

有人有任何线索吗? 我真的不知道该从哪里开始search。
非常感谢你提前。
帕特里克。

嗯安装后尝试一个autoremove:

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

怎么样

 apt-get install --reinstall cups 

如果你的CUPS还在安装,听起来好像你的脚本是borked。 你是否手动修改你的CUPS启动脚本或LSB头文件?

重新安装Ubuntu做到了。 有点粗糙