我在安装 cups 时遇到了问题。它似乎处于损坏状态。当我尝试重新安装它时,它会停滞,如果我尝试完全删除它,情况也是如此。
我正在运行 64 位服务器版本 Ubuntu 10.10,其内核 Linux 版本为 2.6.35-22-server。
当我尝试使用以下命令启动 cups 守护进程时
sudo 服务 cups 启动
它只是呆在那里,什么也没有发生。
我尝试删除它,然后重新安装它,使用以下命令
sudo apt-get 清除杯子
它最终停止并显示以下消息
取下杯子...
此后什么也没有发生。
apt-get 命令的进程树如下所示。
1404 1404 1404 ? 00:00:00 sshd
26495 26495 26495 ? 00:00:00 sshd
26581 26495 26495 ? 00:00:00 sshd
26582 26582 26582 pts/4 00:00:00 bash
27158 27158 26582 pts/4 00:00:00 apt-get
27172 27172 27172 pts/2 00:00:00 dpkg
27176 27172 27172 pts/2 00:00:00 cups.prerm
27178 27172 27172 pts/2 00:00:00 stop
我尝试让进程运行一段时间,看看是否会收到任何错误消息,但没有成功。为了退出,我必须终止进程。
sudo dpkg --configure cups
dpkg: error processing cups (--configure):
package cups is already installed and configured
Errors were encountered while processing:
cups
sudo dpkg --status 杯子
Package: cups
Status: purge ok installed
Priority: optional
Section: net
Installed-Size: 8292
Maintainer: Ubuntu Developers <[email protected]>
Architecture: amd64
Version: 1.4.4-6ubuntu2.3
Replaces: cupsddk-drivers (<< 1.4.0)
Provides: cupsddk-drivers
Depends: libavahi-client3 (>= 0.6.16), libavahi-common3 (>= 0.6.16), libc6 (>= 2.7), libcups2 (>= 1.4.4-3~), libcupscgi1 (>= 1.4.2), libcupsdriver1 (>= 1.4.0), libcupsimage2 (>= 1.4.0), libcupsmime1 (>= 1.4.0), libcupsppdc1 (>= 1.4.0), libdbus-1-3 (>= 1.0.2), libgcc1 (>= 1:4.1.1), libgnutls26 (>= 2.7.14-0), libgssapi-krb5-2 (>= 1.8+dfsg), libijs-0.35, libkrb5-3 (>= 1.6.dfsg.2), libldap-2.4-2 (>= 2.4.7), libpam0g (>= 0.99.7.1), libpaper1, libpoppler7, libslp1, libstdc++6 (>= 4.1.1), libusb-0.1-4 (>= 2:0.1.12), zlib1g (>= 1:1.1.4), debconf (>= 1.2.9) | debconf-2.0, upstart-job, poppler-utils (>= 0.12), procps, ghostscript, lsb-base (>= 3), cups-common (>= 1.4.4), cups-client (>= 1.4.4-6ubuntu2.3), ssl-cert (>= 1.0.11), adduser, bc, ttf-freefont, cups-ppdc
Recommends: foomatic-filters (>= 4.0), cups-driver-gutenprint, ghostscript-cups
Suggests: cups-bsd, foomatic-db-compressed-ppds | foomatic-db, hplip, xpdf-korean | xpdf-japanese | xpdf-chinese-traditional | xpdf-chinese-simplified, cups-pdf, smbclient (>= 3.0.9), udev
Breaks: foomatic-filters (<< 4.0)
Conflicts: cupsddk-drivers (<< 1.4.0)
Conffiles:
/etc/fonts/conf.d/99pdftoopvp.conf a5221cfad70a981c80864229ef56586d
/etc/logrotate.d/cups 5bb41fa9900f0d1c565954405a2bd7c4
/etc/default/cups 2b436fbb1a32b82b6aba45a76a1d7e40
/etc/pam.d/cups ff2488324854f7b1e892bb0df062d5f0
/etc/init/cups.conf 1a3cd022e8474e3d2b44640f33ce68e3
/etc/ufw/applications.d/cups 29e98a6d850da251e180c3d68dec2bd3
/etc/apparmor.d/usr.sbin.cupsd 60c4b26bfd5c033baa3dd48a3b2e9911
/etc/cups/cupsd.conf e2c7ec15835ea0939e5e86f7c6efcc03
/etc/cups/snmp.conf 2326a8af1e112676d55245bc5eb459ca
/etc/cups/cupsd.conf.default a68d54d76021e857dd1d64edf57d36c5
Description: Common UNIX Printing System(tm) - server
The Common UNIX Printing System (or CUPS(tm)) is a printing system and
general replacement for lpd and the like. It supports the Internet
Printing Protocol (IPP), and has its own filtering driver model for
handling various document types.
.
This package provides the CUPS scheduler/daemon and related files.
Original-Maintainer: Debian CUPS Maintainers <[email protected]>
如果有人能提供一些关于如何解决这个问题的帮助,那将非常感激。
答案1
另外,尝试一下dpkg --force-all --remove cups && aptitude install cups
。它曾经对我使用过另一个(损坏的)包起作用。
答案2
尝试运行dpkg -a --configure
。这应该会告诉您遇到了什么问题。我发现损坏的软件包无法卸载。
我很少需要编辑安装脚本来跳过失败的步骤。一旦我安装了软件包,我就会卸载、清除并重新安装该软件包。