J'ai regardé les dépendances pour le paquet 110C. J'ai vérifié et les programmes en question sont installés.
Le fichier /var/log/cups/error_log m'a l'air intéressant:
Code : Tout sélectionner
D [20/Dec/2010:03:54:32 +0100] [CGI] Started /usr/lib/cups/cgi-bin/admin.cgi (PID 9035)
I [20/Dec/2010:03:54:32 +0100] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=9035)
D [20/Dec/2010:03:54:32 +0100] cupsdSendCommand: 12 file=16
D [20/Dec/2010:03:54:32 +0100] [CGI] admin.cgi started...
D [20/Dec/2010:03:54:32 +0100] cupsdAcceptClient: 15 from localhost (Domain)
D [20/Dec/2010:03:54:32 +0100] [CGI] http=0x7f9c5917c0a0
D [20/Dec/2010:03:54:32 +0100] [CGI] org.cups.sid cookie is "eb573722c96e39fe4cb888dfae19ea64"
D [20/Dec/2010:03:54:32 +0100] [CGI] op="find-new-printers"...
D [20/Dec/2010:03:54:32 +0100] Script header: Content-Type: text/html;charset=utf-8
D [20/Dec/2010:03:54:32 +0100] Script header:
D [20/Dec/2010:03:54:32 +0100] cupsdReadClient: 15 POST / HTTP/1.1
D [20/Dec/2010:03:54:32 +0100] cupsdAuthorize: No authentication data provided.
D [20/Dec/2010:03:54:32 +0100] cupsdReadClient: 15 1.1 CUPS-Get-Printers 1
D [20/Dec/2010:03:54:32 +0100] CUPS-Get-Printers
D [20/Dec/2010:03:54:32 +0100] Returning IPP successful-ok for CUPS-Get-Printers (no URI) from localhost
D [20/Dec/2010:03:54:32 +0100] cupsdReadClient: 15 POST / HTTP/1.1
D [20/Dec/2010:03:54:32 +0100] cupsdAuthorize: No authentication data provided.
D [20/Dec/2010:03:54:32 +0100] cupsdReadClient: 15 1.1 CUPS-Get-Devices 1
D [20/Dec/2010:03:54:32 +0100] CUPS-Get-Devices
D [20/Dec/2010:03:54:32 +0100] cupsdIsAuthorized: username=""
D [20/Dec/2010:03:54:32 +0100] Returning HTTP Non autorisé for CUPS-Get-Devices (no URI) from localhost
D [20/Dec/2010:03:54:32 +0100] cupsdSendHeader: 15 WWW-Authenticate: Basic realm="CUPS", trc="y"
D [20/Dec/2010:03:54:32 +0100] cupsdReadClient: 15 WAITING Closing on EOF
D [20/Dec/2010:03:54:32 +0100] cupsdCloseClient: 15
D [20/Dec/2010:03:54:32 +0100] cupsdAcceptClient: 15 from localhost (Domain)
D [20/Dec/2010:03:54:32 +0100] cupsdReadClient: 15 WAITING Closing on EOF
D [20/Dec/2010:03:54:32 +0100] cupsdCloseClient: 15
D [20/Dec/2010:03:54:32 +0100] cupsdAcceptClient: 15 from localhost (Domain)
D [20/Dec/2010:03:54:32 +0100] cupsdReadClient: 15 POST / HTTP/1.1
D [20/Dec/2010:03:54:32 +0100] cupsdAuthorize: Authorized as root using Local
D [20/Dec/2010:03:54:32 +0100] cupsdReadClient: 15 1.1 CUPS-Get-Devices 1
D [20/Dec/2010:03:54:32 +0100] CUPS-Get-Devices
D [20/Dec/2010:03:54:32 +0100] cupsdIsAuthorized: username="root"
D [20/Dec/2010:03:54:32 +0100] [CGI] argv[0] = "/usr/lib/cups/daemon/cups-deviced"
D [20/Dec/2010:03:54:32 +0100] [CGI] argv[1] = "1"
D [20/Dec/2010:03:54:32 +0100] [CGI] argv[2] = "0"
D [20/Dec/2010:03:54:32 +0100] [CGI] argv[3] = "15"
D [20/Dec/2010:03:54:32 +0100] [CGI] argv[4] = "2"
D [20/Dec/2010:03:54:32 +0100] [CGI] argv[5] = "requested-attributes=all"
D [20/Dec/2010:03:54:32 +0100] [CGI] envp[0] = "CUPS_CACHEDIR=/var/cache/cups"
D [20/Dec/2010:03:54:32 +0100] [CGI] envp[1] = "CUPS_DATADIR=/usr/share/cups"
D [20/Dec/2010:03:54:32 +0100] [CGI] envp[2] = "CUPS_DOCROOT=/usr/share/cups/doc"
D [20/Dec/2010:03:54:32 +0100] [CGI] envp[3] = "CUPS_FONTPATH=/usr/share/cups/fonts"
D [20/Dec/2010:03:54:32 +0100] [CGI] envp[4] = "CUPS_REQUESTROOT=/var/spool/cups"
D [20/Dec/2010:03:54:32 +0100] [CGI] envp[5] = "CUPS_SERVERBIN=/usr/lib/cups"
D [20/Dec/2010:03:54:32 +0100] [CGI] envp[6] = "CUPS_SERVERROOT=/etc/cups"
D [20/Dec/2010:03:54:32 +0100] [CGI] envp[7] = "CUPS_STATEDIR=/var/run/cups"
D [20/Dec/2010:03:54:32 +0100] [CGI] envp[8] = "HOME=/var/spool/cups/tmp"
D [20/Dec/2010:03:54:32 +0100] [CGI] envp[9] = "PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [20/Dec/2010:03:54:32 +0100] [CGI] envp[10] = "SERVER_ADMIN=root@gertob64"
D [20/Dec/2010:03:54:32 +0100] [CGI] envp[11] = "SOFTWARE=CUPS/1.4.4"
D [20/Dec/2010:03:54:32 +0100] [CGI] envp[12] = "TMPDIR=/var/spool/cups/tmp"
D [20/Dec/2010:03:54:32 +0100] [CGI] envp[13] = "USER=root"
D [20/Dec/2010:03:54:32 +0100] [CGI] envp[14] = "CUPS_SERVER=/var/run/cups/cups.sock"
D [20/Dec/2010:03:54:32 +0100] [CGI] envp[15] = "CUPS_ENCRYPTION=IfRequested"
D [20/Dec/2010:03:54:32 +0100] [CGI] envp[16] = "IPP_PORT=631"
D [20/Dec/2010:03:54:32 +0100] [CGI] envp[17] = "CUPSD_AUTH_TYPE=Local"
D [20/Dec/2010:03:54:32 +0100] [CGI] envp[18] = "LANG=en_US.UTF8"
D [20/Dec/2010:03:54:32 +0100] [CGI] envp[19] = "REDIRECT_STATUS=1"
D [20/Dec/2010:03:54:32 +0100] [CGI] envp[20] = "GATEWAY_INTERFACE=CGI/1.1"
D [20/Dec/2010:03:54:32 +0100] [CGI] envp[21] = "SERVER_NAME=localhost"
D [20/Dec/2010:03:54:32 +0100] [CGI] envp[22] = "SERVER_PORT=631"
D [20/Dec/2010:03:54:32 +0100] [CGI] envp[23] = "REMOTE_ADDR="
D [20/Dec/2010:03:54:32 +0100] [CGI] envp[24] = "REMOTE_HOST=localhost"
D [20/Dec/2010:03:54:32 +0100] [CGI] envp[25] = "SCRIPT_NAME=/"
D [20/Dec/2010:03:54:32 +0100] [CGI] envp[26] = "SCRIPT_FILENAME=/usr/share/cups/doc/"
D [20/Dec/2010:03:54:32 +0100] [CGI] envp[27] = "REMOTE_USER=root"
D [20/Dec/2010:03:54:32 +0100] [CGI] envp[28] = "SERVER_PROTOCOL=HTTP/1.1"
D [20/Dec/2010:03:54:32 +0100] [CGI] envp[29] = "HTTP_USER_AGENT=CUPS/1.4.4"
D [20/Dec/2010:03:54:32 +0100] [CGI] envp[30] = "REQUEST_METHOD=POST"
D [20/Dec/2010:03:54:32 +0100] [CGI] envp[31] = "CONTENT_LENGTH=75"
D [20/Dec/2010:03:54:32 +0100] [CGI] envp[32] = "CONTENT_TYPE=application/ipp"
D [20/Dec/2010:03:54:32 +0100] [CGI] Started /usr/lib/cups/daemon/cups-deviced (PID 9036)
I [20/Dec/2010:03:54:32 +0100] Started "/usr/lib/cups/daemon/cups-deviced" (pid=9036)
D [20/Dec/2010:03:54:32 +0100] cupsdSendCommand: 15 file=17
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] Started backend /usr/lib/cups/backend/hp (PID 9037)
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] Started backend /usr/lib/cups/backend/beh (PID 9038)
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] Started backend /usr/lib/cups/backend/ipp (PID 9039)
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] Started backend /usr/lib/cups/backend/lpd (PID 9040)
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] Started backend /usr/lib/cups/backend/smb (PID 9041)
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] Started backend /usr/lib/cups/backend/usb (PID 9042)
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] Started backend /usr/lib/cups/backend/http (PID 9043)
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] Started backend /usr/lib/cups/backend/scsi (PID 9044)
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] Started backend /usr/lib/cups/backend/snmp (PID 9045)
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] Started backend /usr/lib/cups/backend/hpfax (PID 9046)
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] Started backend /usr/lib/cups/backend/parallel (PID 9047)
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] Started backend /usr/lib/cups/backend/cups-pdf (PID 9048)
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] Started backend /usr/lib/cups/backend/serial (PID 9049)
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] Started backend /usr/lib/cups/backend/socket (PID 9050)
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] Started backend /usr/lib/cups/backend/bluetooth (PID 9051)
D [20/Dec/2010:03:54:32 +0100] Script header: Content-Type: application/ipp
D [20/Dec/2010:03:54:32 +0100] Script header:
D [20/Dec/2010:03:54:32 +0100] [CGI] Flushed attributes...
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] Found device "hp"...
D [20/Dec/2010:03:54:32 +0100] [CGI] Flushed attributes...
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] Found device "beh"...
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] PID 9037 (hp) exited with no errors.
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] PID 9038 (beh) exited with no errors.
D [20/Dec/2010:03:54:32 +0100] [CGI] Flushed attributes...
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] Found device "smb"...
D [20/Dec/2010:03:54:32 +0100] [CGI] list_devices
D [20/Dec/2010:03:54:32 +0100] [CGI] usb_find_busses=2
D [20/Dec/2010:03:54:32 +0100] [CGI] usb_find_devices=7
D [20/Dec/2010:03:54:32 +0100] [CGI] Failed to set configuration 1 for 04f9:01ce
D [20/Dec/2010:03:54:32 +0100] [CGI] Failed to claim interface 0 for 04f9:01ce: Operation not permitted
D [20/Dec/2010:03:54:32 +0100] [CGI] Flushed attributes...
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] Found device "ipp"...
D [20/Dec/2010:03:54:32 +0100] [CGI] Flushed attributes...
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] Found device "lpd"...
D [20/Dec/2010:03:54:32 +0100] [CGI] Flushed attributes...
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] Found device "cups-pdf:/"...
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] PID 9039 (ipp) exited with no errors.
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] PID 9040 (lpd) exited with no errors.
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] PID 9042 (usb) exited with no errors.
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] PID 9048 (cups-pdf) exited with no errors.
D [20/Dec/2010:03:54:32 +0100] [CGI] Flushed attributes...
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] Found device "http"...
D [20/Dec/2010:03:54:32 +0100] [CGI] Flushed attributes...
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] Found device "scsi"...
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] PID 9041 (smb) exited with no errors.
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] PID 9043 (http) exited with no errors.
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] PID 9044 (scsi) exited with no errors.
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] PID 9051 (bluetooth) exited with no errors.
D [20/Dec/2010:03:54:32 +0100] [CGI] Flushed attributes...
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] Found device "socket"...
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] PID 9050 (socket) exited with no errors.
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] PID 9049 (serial) exited with no errors.
D [20/Dec/2010:03:54:32 +0100] [CGI] Flushed attributes...
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] Found device "parallel:/dev/lp0"...
D [20/Dec/2010:03:54:32 +0100] [cups-deviced] PID 9047 (parallel) exited with no errors.
D [20/Dec/2010:03:54:33 +0100] [CGI] Flushed attributes...
D [20/Dec/2010:03:54:33 +0100] [cups-deviced] Found device "hpfax"...
D [20/Dec/2010:03:54:33 +0100] [cups-deviced] PID 9046 (hpfax) exited with no errors.
D [20/Dec/2010:03:54:34 +0100] [cups-deviced] PID 9045 (snmp) exited with no errors.
D [20/Dec/2010:03:54:34 +0100] PID 9036 (/usr/lib/cups/daemon/cups-deviced) exited with no errors.
D [20/Dec/2010:03:54:34 +0100] cupsdReadClient: 15 WAITING Closing on EOF
D [20/Dec/2010:03:54:34 +0100] cupsdCloseClient: 15
D [20/Dec/2010:03:54:34 +0100] PID 9035 (/usr/lib/cups/cgi-bin/admin.cgi) exited with no errors.
D [20/Dec/2010:03:54:34 +0100] cupsdSetBusyState: Not busy
D [20/Dec/2010:03:55:07 +0100] cupsdReadClient: 12 WAITING Closing on EOF
D [20/Dec/2010:03:55:07 +0100] cupsdCloseClient: 12
J'ai repéré ces trois lignes:
Code : Tout sélectionner
D [20/Dec/2010:03:54:32 +0100] [CGI] usb_find_busses=2
D [20/Dec/2010:03:54:32 +0100] [CGI] usb_find_devices=7
D [20/Dec/2010:03:54:32 +0100] [CGI] Failed to set configuration 1 for 04f9:01ce
D [20/Dec/2010:03:54:32 +0100] [CGI] Failed to claim interface 0 for 04f9:01ce: Operation not permitted
04f9:01ce c'est le modèle et la marque de la dcp135c.
Dans le /etc/group il y a bien tous les utilisateurs sous lp.
Au niveau de /lib/udev/rules.d/50-udev-default.rules, ça a l'air normal.
J'ai quand même testé de faire ce nouveau fichier /etc/udev/rules.d/10-usbprinter.rules, comme conseillé sur le wiki de CUPS. Ca n'a pas l'air de changer grand chose.
Je redémarre CUPS après mes modifs, ça suffit?
Code : Tout sélectionner
# printer
KERNEL=="parport[0-9]*", GROUP="lp"
SUBSYSTEM=="printer", KERNEL=="lp*", GROUP="lp"
SUBSYSTEM=="ppdev", GROUP="lp"
SUBSYSTEM=="usb", KERNEL=="lp*", SYMLINK+="usb%k", GROUP="lp"
KERNEL=="lp[0-9]*", GROUP="lp"
KERNEL=="irlpt[0-9]*", GROUP="lp"
# hplip and cups 1.4+ use raw USB devices, so permissions should be similar to
# the ones from the old usblp kernel module
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="", IMPORT{program}="usb_id --export %p"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:0701*:", GROUP="lp", MODE="0660"
J'ai tenté d'installer system-config-printer, pour voir…
Le terminal me dit ça quand je le lance.
Code : Tout sélectionner
[daniel@gertob64 ~]$ system-config-printer
** Message: pygobject_register_sinkfunc is deprecated (GtkWindow)
** Message: pygobject_register_sinkfunc is deprecated (GtkInvisible)
** Message: pygobject_register_sinkfunc is deprecated (GtkObject)
Caught non-fatal exception. Traceback:
File "/usr/share/system-config-printer/system-config-printer.py", line 4974, in fillDeviceTab
ipp_allowed = f.check_ipp_client_allowed ()
File "/usr/share/system-config-printer/firewall.py", line 69, in check_ipp_client_allowed
self.ALLOW_IPP_CLIENT]))
File "/usr/share/system-config-printer/firewall.py", line 54, in _check_any_allowed
(args, filename) = self._get_fw_data ()
File "/usr/share/system-config-printer/firewall.py", line 46, in _get_fw_data
raise RuntimeError
RuntimeError
Continuing anyway..
Caught non-fatal exception. Traceback:
File "/usr/share/system-config-printer/system-config-printer.py", line 4974, in fillDeviceTab
ipp_allowed = f.check_ipp_client_allowed ()
File "/usr/share/system-config-printer/firewall.py", line 69, in check_ipp_client_allowed
self.ALLOW_IPP_CLIENT]))
File "/usr/share/system-config-printer/firewall.py", line 54, in _check_any_allowed
(args, filename) = self._get_fw_data ()
File "/usr/share/system-config-printer/firewall.py", line 46, in _get_fw_data
raise RuntimeError
RuntimeError
Continuing anyway..