인쇄 서비스를 이용할 수 없습니다


19

이 질문이 익숙해지면 죄송합니다. Google 검색에서 제안한 솔루션을 시도했지만 작동하지 않거나 너무 기술적 인 것입니다.

나는 며칠 전에 컵을 엉망으로 만들었습니다. 어떻게 왜 이유를 기억하지 못하지만 컵 파일을 삭제했습니다.

소프트웨어 센터와 터미널을 사용하여 컵을 여러 번 설치 제거하고 다시 설치했으며 컵 데몬을 다시 설치했지만 아무런 변화가 없습니다.

이제 로컬 프린터가 작동하지 않습니다. "인쇄 서비스를 사용할 수 없습니다.이 컴퓨터에서 서비스를 시작하거나 다른 서버에 연결하십시오"라는 메시지가 나타납니다. "서비스 시작"버튼이 "회색으로 표시됨" 여기에 이미지 설명을 입력하십시오

터미널을 통해 서비스를 다시 시작하려고했습니다.

sudo service cups restart

쉘이 응답하는

cups stop/waiting

쉘이 무언가를 기다리고있는 것처럼 아무 일도 일어나지 않습니다. 프롬프트를 다시 받으려면 ctrl-c를 수행해야합니다.

도움말 메뉴에서 문제 해결 지침을 시도했는데 "CUPS 인쇄 스풀러가 실행되고 있지 않은 것 같습니다.이 문제를 해결하려면 기본 메뉴에서"시스템-> 관리-> 서비스 "를 선택하고"컵 "서비스를 찾으십시오. "

이 "시스템-> 관리-> 서비스"가 Ubuntu 14.04 lts에 있는지 모르겠습니다.

나는 또한 시도했다 :

sudo /etc/init.d/cups start

그 결과

cupsd: Child exited with status 1

휴지통이나 백업에서 삭제 한 파일을 복원하려고 했습니까?
— Geek

아니요.이 파일은 cups 폴더에 있었으므로 다시 설치하여 다시 작성했다고 가정했습니다.
— frepie

삭제 한 것을 알고 있으므로 다시 설치하기 전에 논리적으로 첫 번째 방법이되었을 것입니다. 다시 설치하기 전에 컵을 완전히 제거하려고 했습니까?
— Geek

1
syslog :Jan 17 12:15:33 Inspiron-1501 cupsd: Unable to open "/etc/cups/cupsd.conf": No such file or directory Jan 17 12:15:33 Inspiron-1501 kernel: [80564.409920] init: cups main process (18868) terminated with status 1 Jan 17 12:15:33 Inspiron-1501 kernel: [80564.409977] init: cups main process ended, respawning
— frepie

1
더 없다 /etc/cups/cupsd.conf폴더 내가 컵을 여러 번 설치에도 불구하고 있음을,
— frepie을

답변:


18

'인쇄 서비스를 사용할 수 없습니다'와 비슷한 문제 (lubuntu 16.04)가있었습니다. 이 조건으로 인해 시스템이 선택할 로컬 USB 프린터를 나열하지 못했습니다. 이것은 CUPS 설치 를 극복했습니다 .

sudo apt-get install cups

다음으로 서비스를 반송하십시오.

sudo /etc/init.d/cups restart

마지막으로 컴퓨터를 다시 시작하십시오.

Ubuntu 16.04 인스턴스에 CUPS를 설치할 필요가 없었습니다.


5

해결책을 찾았습니다. 포럼에서 cupsd.conf의 처녀 내용을 발견했습니다. 그래서 다음을 수행하여 새로운 cupsd.conf 파일을 만들었습니다.

gksudo gedit /etc/cups/cupsd.conf

아래 cupsd.conf 처녀 내용을 복사했습니다.

#
#
# Sample configuration file for the CUPS scheduler. See "man cupsd.conf" for a
# complete description of this file.
#

# Log general information in error_log - change "warn" to "debug"
# for troubleshooting...
LogLevel warn

# Deactivate CUPS' internal logrotating, as we provide a better one, especially
# LogLevel debug2 gets usable now
MaxLogSize 0

# Administrator user group...
SystemGroup lpadmin

# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/run/cups/cups.sock

# Show shared printers on the local network.
Browsing Off
BrowseOrder allow,deny
BrowseAllow all
BrowseLocalProtocols CUPS dnssd
BrowseAddress @LOCAL

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Restrict access to the server...
<Location />
  Order allow,deny
</Location>

# Restrict access to the admin pages...
<Location /admin>
  Order allow,deny
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
</Location>

# Set the default printer/job policies...
<Policy default>
  # Job-related operations must be done by the owner or an administrator...
  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Get-Document>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # All printer operations require a printer operator to authenticate...
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # Only the owner or an administrator can cancel or authenticate a job...
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

# Set the authenticated printer/job policies...
<Policy authenticated>
  # Job-related operations must be done by the owner or an administrator...
  <Limit Create-Job Print-Job Print-URI>
    AuthType Default
    Order deny,allow
  </Limit>

  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Get-Document>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # All printer operations require a printer operator to authenticate...
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # Only the owner or an administrator can cancel or authenticate a job...
  <Limit Cancel-Job CUPS-Authenticate-Job>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

#
#

저장 한 다음 서비스를 다시 시작했습니다.

sudo service cups restart

그 트릭을했다.


기본 cupsd.conf에 백만 감사합니다. 빈 복사본을 교체하고 모든 원래 프린터 설정을 복원했습니다. cupsd.conf의 내용이 어떻게 지워 졌는지 모릅니다. 최근 CUPS 업데이트였습니까?
— user31301
당사 사이트를 사용함과 동시에 당사의 쿠키 정책과 개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.