杯子无法安装

杯子无法安装

我不得不从我的机器上移除 cups 来做一些测试。我刚刚用 apt-get purge cups 移除了它,但现在我无法再次安装它,所以我无法打印。我从未见过这样的错误,有人能给我解释一下发生了什么吗?(​​我主要是想了解和理解我的错误,但我用谷歌搜索了一下,发现有很多不同的情况。我正在运行 Ubuntu 10.04)。

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

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) 

我又有一个提示了。

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

答案1

嗯,安装后尝试自动删除:

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

答案2

怎么样

apt-get install --reinstall cups

答案3

如果您的 CUPS 仍处于安装状态,则听起来您的 initscript 已损坏。您是否手动修改了 CUPS 启动脚本或 LSB 标头?

答案4

重新安装 Ubuntu 就可以了。有点粗糙。

相关内容