Eu tenho o Ubuntu 16.04 que foi perfeito até agora.
Ele foi impresso perfeitamente desde o primeiro dia, mas no outro dia recebi um erro que eu estupidamente falhei em escrever e não olhei para /var/log/syslog
.
O erro foi algo sobre um diretório de cups desaparecido. Neste ponto eu não estava mexendo com nenhuma configuração, ela simplesmente quebrou sozinha.
Eu pensei em vez de criar manualmente o que estava faltando, vou corrigir isso removendo e reinstalando o software.
Eu removi e reinstalei o software de impressão HP "hplip" e "cups". Isso parece ter destruído completamente os copos. Não começa mais.
Abaixo está a saída systemctl status
para cups
, antes e depois de um comando de início:
$ systemctl status cups
cups.service - CUPS Scheduler
Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2016-11-06 10:06:50 GMT; 55min ago
Docs: man:cupsd(8)
Process: 1029 ExecStart=/usr/sbin/cupsd -l (code=exited, status=1/FAILURE)
Main PID: 1029 (code=exited, status=1/FAILURE)
Nov 06 10:06:50 vw-desk2 systemd[1]: Started CUPS Scheduler.
Nov 06 10:06:50 vw-desk2 systemd[1]: cups.service: Main process exited, code=exited, status=1/FAILURE
Nov 06 10:06:50 vw-desk2 systemd[1]: cups.service: Unit entered failed state.
Nov 06 10:06:50 vw-desk2 systemd[1]: cups.service: Failed with result 'exit-code'.
Nov 06 10:06:50 vw-desk2 systemd[1]: cups.service: Start request repeated too quickly.
Nov 06 10:06:50 vw-desk2 systemd[1]: Failed to start CUPS Scheduler.
Nov 06 10:06:52 vw-desk2 systemd[1]: cups.service: Start request repeated too quickly.
Nov 06 10:06:52 vw-desk2 systemd[1]: Failed to start CUPS Scheduler.
vince@vw-desk2:~$
vince@vw-desk2:~$ systemctl start cups
vince@vw-desk2:~$
vince@vw-desk2:~$ systemctl status cups
cups.service - CUPS Scheduler
Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2016-11-06 11:03:42 GMT; 24s ago
Docs: man:cupsd(8)
Process: 3664 ExecStart=/usr/sbin/cupsd -l (code=exited, status=1/FAILURE)
Main PID: 3664 (code=exited, status=1/FAILURE)
Nov 06 11:03:42 vw-desk2 systemd[1]: Started CUPS Scheduler.
Nov 06 11:03:42 vw-desk2 systemd[1]: cups.service: Main process exited, code=exited, status=1/FAILURE
Nov 06 11:03:42 vw-desk2 systemd[1]: cups.service: Unit entered failed state.
Nov 06 11:03:42 vw-desk2 systemd[1]: cups.service: Failed with result 'exit-code'.
/var/log/syslog
não diz nada que pula para mim:
Nov 6 10:11:54 vw-desk2 anacron[786]: Job 'cron.daily' terminated
Nov 6 10:11:54 vw-desk2 anacron[786]: Normal exit (1 job run)
Nov 6 10:17:01 vw-desk2 CRON[3371]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Nov 6 10:19:11 vw-desk2 AptDaemon: INFO: Quitting due to inactivity
Nov 6 10:19:11 vw-desk2 AptDaemon: INFO: Quitting was requested
Nov 6 10:19:11 vw-desk2 org.debian.apt[843]: 10:19:11 AptDaemon [INFO]: Quitting due to inactivity
Nov 6 10:19:11 vw-desk2 org.debian.apt[843]: 10:19:11 AptDaemon [INFO]: Quitting was requested
Nov 6 10:21:52 vw-desk2 systemd[1]: Starting Cleanup of Temporary Directories...
Nov 6 10:21:52 vw-desk2 systemd-tmpfiles[3435]: [/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log", ignoring.
Nov 6 10:21:52 vw-desk2 systemd[1]: Started Cleanup of Temporary Directories.
Nov 6 10:28:01 vw-desk2 CRON[3481]: (root) CMD ( test -x /etc/cron.daily/popularity-contest && /etc/cron.daily/popularity-contest --crond)
Nov 6 10:30:29 vw-desk2 systemd-timesyncd[409]: Timed out waiting for reply from 91.189.94.4:123 (ntp.ubuntu.com).
Nov 6 10:30:29 vw-desk2 systemd-timesyncd[409]: Synchronized to time server 91.189.89.198:123 (ntp.ubuntu.com).
Nov 6 11:03:37 vw-desk2 gnome-session[2312]: Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
Nov 6 11:03:42 vw-desk2 systemd[1]: Started CUPS Scheduler.
Nov 6 11:03:42 vw-desk2 systemd[1]: cups.service: Main process exited, code=exited, status=1/FAILURE
Nov 6 11:03:42 vw-desk2 systemd[1]: cups.service: Unit entered failed state.
Nov 6 11:03:42 vw-desk2 systemd[1]: cups.service: Failed with result 'exit-code'.
Nov 6 11:03:42 vw-desk2 kernel: [ 3413.846764] audit_printk_skb: 84 callbacks suppressed
Nov 6 11:03:42 vw-desk2 kernel: [ 3413.846767] audit: type=1400 audit(1478430222.644:39): apparmor="DENIED" operation="sendmsg" profile="/usr/sbin/cupsd" name="/run/systemd/journal/socket" pid=3664 comm="cupsd" requested_mask="w" denied_mask="w" fsuid=0 ouid=0
Em segundo lugar, a última linha parece ser relevante.
Como posso fazer a impressão voltar a funcionar?