Linux

我到底如何才能在我的 Debian 6 虛擬機上停止這條與 CUPS 相關的消息?

  • May 29, 2013

我有一個 Debian 6 VMWare 虛擬機,我主要通過 SSH 使用(但偶爾通過 GUI)。

每隔幾分鐘,我的終端就會列印以下消息:

CUPS config timestamp change detected but old config retrieved via interface!

有一段時間,我忽略了它。然後,我解除安裝了 CUPS:

$ sudo apt-get remove cups
$ sudo apt-get autoremove

並重新啟動。我仍然收到消息。

我怎麼能阻止它?我永遠不會想要從這台機器上列印。

啊——原來我認為這實際上是一個 VMWare 問題。我在 VMWare 的虛擬機設置中禁用了列印機,你瞧,問題(似乎已經)消失了。VMWare 一定一直在嘗試讓列印工作。

a) 移除杯子實際上並沒有移除 CUPS。

b)您可能想使用apt-get purge而不是刪除。

您至少要清除此批次。您可以使用萬用字元或正則表達式來完成。

apt-get purge '^cups'

似乎刪除了所有以杯子開頭的包,但實際上我們想要所有包含杯子的文件。請正則表達式專家來救援。:-) 見apt-get purge '^cups'下面的輸出。

(更新:根據 Paul 在下面的評論,GNOME 顯然堅持要安裝一些 CUP 庫,所以我建議他只刪除前端的東西,所以事實上也許他真的想要apt-get purge '^cups')。

$ dpkg -l | grep cups
ii  brhl4070cdw-cups-ppd                 1.0.0-1                              Brother HL-4070CDW CUPS driver
ii  cups                                 1.4.4-7                              Common UNIX Printing System(tm) - server
ii  cups-bsd                             1.4.4-7                              Common UNIX Printing System(tm) - BSD commands
ii  cups-client                          1.4.4-7                              Common UNIX Printing System(tm) - client programs (SysV)
ii  cups-common                          1.4.4-7                              Common UNIX Printing System(tm) - common files
ii  cups-pdf                             2.5.0-16                             PDF printer for CUPS
ii  cups-ppdc                            1.4.4-7                              Common UNIX Printing System(tm) - PPD manipulation utilities
ii  cupsys                               1.3.8-1+lenny8                       Common UNIX Printing System (transitional package)
ii  cupsys-bsd                           1.3.8-1+lenny8                       Common UNIX Printing System (transitional package)
ii  cupsys-client                        1.3.8-1+lenny8                       Common UNIX Printing System (transitional package)
ii  cupsys-common                        1.3.8-1+lenny8                       Common UNIX Printing System (transitional package)
ii  libcups2                             1.4.4-7                              Common UNIX Printing System(tm) - Core library
ii  libcups2-dev                         1.4.4-7                              Common UNIX Printing System(tm) - Development files CUPS library
ii  libcupscgi1                          1.4.4-7                              Common UNIX Printing System(tm) - CGI library
ii  libcupsdriver1                       1.4.4-7                              Common UNIX Printing System(tm) - Driver library
ii  libcupsimage2                        1.4.4-7                              Common UNIX Printing System(tm) - Raster image library
ii  libcupsmime1                         1.4.4-7                              Common UNIX Printing System(tm) - MIME library
ii  libcupsppdc1                         1.4.4-7                              Common UNIX Printing System(tm) - PPD manipulation library
ii  libcupsys2                           1.3.8-1+lenny8                       Common UNIX Printing System (transitional package)
ii  libcupsys2-dev                       1.3.8-1+lenny8                       Common UNIX Printing System (transitional package)
ii  libgnomecups1.0-1                    0.2.3-3+b1                           GNOME library for CUPS interaction

# apt-get  -s purge '^cups'
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'cupsys-client' for regex '^cups'
Note, selecting 'cups' for regex '^cups'
Note, selecting 'cups-client' for regex '^cups'
Note, selecting 'cups-pdf' for regex '^cups'
Note, selecting 'cups-pk-helper' for regex '^cups'
Note, selecting 'cups-bsd' for regex '^cups'
Note, selecting 'cups-common' for regex '^cups'
Note, selecting 'cups-pt' for regex '^cups'
Note, selecting 'cups-dbg' for regex '^cups'
Note, selecting 'cups-ppdc' for regex '^cups'
Note, selecting 'cupsddk' for regex '^cups'
Note, selecting 'cups-driver-gutenprint' for regex '^cups'
Note, selecting 'cupsddk-drivers' for regex '^cups'
Note, selecting 'cupsomatic-ppd' for regex '^cups'
Note, selecting 'cupsys-driver-gutenprint' for regex '^cups'
Note, selecting 'cupsys-bsd' for regex '^cups'
Note, selecting 'cupsys-common' for regex '^cups'
Note, selecting 'cupsys' for regex '^cups'
Note, selecting 'cups' instead of 'cupsddk-drivers'
Package cups-pk-helper is not installed, so not removed
Package cups-driver-gutenprint is not installed, so not removed
Package cups-dbg is not installed, so not removed
Package cupsddk is not installed, so not removed
The following packages will be REMOVED:
 cups* cups-bsd* cups-client* cups-common* cups-pdf* cups-ppdc* cupsys* cupsys-bsd* cupsys-client* cupsys-common*
0 upgraded, 0 newly installed, 10 to remove and 0 not upgraded.
Purg cupsys [1.3.8-1+lenny8]
Purg cups-pdf [2.5.0-16]
Purg cups [1.4.4-7]
Purg cupsys-bsd [1.3.8-1+lenny8]
Purg cups-bsd [1.4.4-7]
Purg cupsys-client [1.3.8-1+lenny8]
Purg cups-client [1.4.4-7]
Purg cupsys-common [1.3.8-1+lenny8]
Purg cups-ppdc [1.4.4-7]
Purg cups-common [1.4.4-7]

引用自:https://unix.stackexchange.com/questions/10284