Showing posts with label cups. Show all posts
Showing posts with label cups. Show all posts

Tuesday, 24 June 2025

Nonaktifkan Printer (CUPS) atau Hidupkan

 

2. 🚫 Nonaktifkan Printer (CUPS):

Kalau kamu tidak pakai printer:

sudo systemctl disable --now cups.service

$ sudo systemctl disable --now cups.service
[sudo] password for dhwan:
Synchronizing state of cups.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install disable cups
Removed "/etc/systemd/system/multi-user.target.wants/cups.path".
Removed "/etc/systemd/system/multi-user.target.wants/cups.service".
Removed "/etc/systemd/system/printer.target.wants/cups.service".
Removed "/etc/systemd/system/sockets.target.wants/cups.socket".
Disabling 'cups.service', but its triggering units are still active:
cups.path, cups.socket



❗ Jika kamu menjalankan sudo systemctl disable --now cups.service, maka fitur mencetak dokumen (print) di sistem kamu akan nonaktif.
 

📌 Penjelasan:

cups.service adalah CUPS (Common UNIX Printing System) — sistem backend utama yang menangani:

  • Deteksi printer (USB, jaringan, Bluetooth)

  • Driver printer

  • Antrian cetak (print queue)

  • Komunikasi dengan aplikasi (LibreOffice, PDF viewer, browser, dll)

Jika cups.service dimatikan:

  • Printer tidak akan terdeteksi oleh sistem

  • Aplikasi tidak akan menampilkan opsi “Print”

  • Bahkan lpstat atau lpadmin akan gagal


✅ Jadi:

SituasiLakukan
🖨️ Kamu masih mencetak dokumenBiarkan cups.service aktif
🚫 Kamu tidak pernah mencetak, atau printer sudah tidak dipakaiAman dimatikan untuk mempercepat boot
 
 
 

🔁 Jika nanti ingin mencetak lagi:

Cukup aktifkan kembali:

sudo systemctl enable --now cups.service 

 

Thursday, 14 December 2023

cups enable printer backend

printer

Backend /usr/lib/cups/backend/usb does not exist

Get status and printer name from

Code:
lpstat -p

then

Code:
cupsenable <printername>


 Get status and printer name from

Code:
lpstat -p
then
Code:
cupsenable <printername>

purge cups then install cups

 $ sudo apt-get purge cups && sudo apt-get autoremove

[sudo] password for dhwan: 

Reading package lists... Done

Building dependency tree... Done

Reading state information... Done

The following packages were automatically installed and are no longer required:

  cups-browsed cups-core-drivers cups-daemon cups-server-common

  libgutenprint-common libgutenprint9 ssl-cert

Use 'sudo apt autoremove' to remove them.

The following packages will be REMOVED:

  cups* printer-driver-gutenprint*

0 upgraded, 0 newly installed, 2 to remove and 5 not upgraded.

After this operation, 2.078 kB disk space will be freed.

Do you want to continue? [Y/n] y

(Reading database ... 323164 files and directories currently installed.)

Removing printer-driver-gutenprint (5.3.3-9) ...

Job for cups.service failed because a timeout was exceeded.

See "systemctl status cups.service" and "journalctl -xeu cups.service" for details.

invoke-rc.d: initscript cups, action "force-reload" failed.

Removing cups (2.4.1op1-1ubuntu4.7) ...

Processing triggers for man-db (2.10.2-1) ...

(Reading database ... 323082 files and directories currently installed.)

Purging configuration files for cups (2.4.1op1-1ubuntu4.7) ...

Purging configuration files for printer-driver-gutenprint (5.3.3-9) ...

Reading package lists... Done

Building dependency tree... Done

Reading state information... Done

The following packages will be REMOVED:

  cups-browsed cups-core-drivers cups-daemon cups-server-common

  libgutenprint-common libgutenprint9 ssl-cert

0 upgraded, 0 newly installed, 7 to remove and 5 not upgraded.

After this operation, 13,2 MB disk space will be freed.

Do you want to continue? [Y/n] y

(Reading database ... 323081 files and directories currently installed.)

Removing cups-browsed (1.28.15-0ubuntu1.2) ...

Removing cups-core-drivers (2.4.1op1-1ubuntu4.7) ...

Removing cups-daemon (2.4.1op1-1ubuntu4.7) ...

Removing cups-server-common (2.4.1op1-1ubuntu4.7) ...

Removing libgutenprint9 (5.3.3-9) ...

Removing libgutenprint-common (5.3.3-9) ...

Removing ssl-cert (1.1.2) ...

Processing triggers for man-db (2.10.2-1) ...

Processing triggers for libc-bin (2.35-0ubuntu3.5) ...

dhwan@dhwan-A514-51K-31XM:~$ sudo apt-get update && sudo apt-get install cups

Hit:1 https://dl.google.com/linux/chrome/deb stable InRelease

Hit:2 http://id.archive.ubuntu.com/ubuntu jammy InRelease                      

Hit:3 https://packages.microsoft.com/repos/edge stable InRelease               

Hit:4 http://security.ubuntu.com/ubuntu jammy-security InRelease               

Hit:5 http://id.archive.ubuntu.com/ubuntu jammy-updates InRelease              

Hit:6 http://id.archive.ubuntu.com/ubuntu jammy-backports InRelease            

Hit:7 https://ppa.launchpadcontent.net/cappelikan/ppa/ubuntu jammy InRelease   

Hit:8 https://ppa.launchpadcontent.net/costales/folder-color/ubuntu jammy InRelease

Hit:9 https://ppa.launchpadcontent.net/danielrichter2007/grub-customizer/ubuntu jammy InRelease

Hit:10 https://ppa.launchpadcontent.net/inkscape.dev/stable/ubuntu jammy InRelease

Hit:11 https://ppa.launchpadcontent.net/kdenlive/kdenlive-stable/ubuntu jammy InRelease

Hit:12 https://shop.softmaker.com/repo/apt stable InRelease

Reading package lists... Done

Reading package lists... Done

Building dependency tree... Done

Reading state information... Done

The following additional packages will be installed:

  cups-browsed cups-core-drivers cups-daemon cups-server-common ssl-cert

Suggested packages:

  cups-pdf smbclient

The following NEW packages will be installed:

  cups cups-browsed cups-core-drivers cups-daemon cups-server-common ssl-cert

0 upgraded, 6 newly installed, 0 to remove and 5 not upgraded.

Need to get 46,5 kB/1.159 kB of archives.

After this operation, 5.284 kB of additional disk space will be used.

Do you want to continue? [Y/n] y

Get:1 http://id.archive.ubuntu.com/ubuntu jammy/main amd64 ssl-cert all 1.1.2 [17,4 kB]

Get:2 http://id.archive.ubuntu.com/ubuntu jammy-updates/main amd64 cups-core-drivers amd64 2.4.1op1-1ubuntu4.7 [29,1 kB]

Fetched 46,5 kB in 2s (30,7 kB/s)       

Preconfiguring packages ...

Selecting previously unselected package ssl-cert.

(Reading database ... 321989 files and directories currently installed.)

Preparing to unpack .../0-ssl-cert_1.1.2_all.deb ...

Unpacking ssl-cert (1.1.2) ...

Selecting previously unselected package cups-daemon.

Preparing to unpack .../1-cups-daemon_2.4.1op1-1ubuntu4.7_amd64.deb ...

Unpacking cups-daemon (2.4.1op1-1ubuntu4.7) ...

Selecting previously unselected package cups-browsed.

Preparing to unpack .../2-cups-browsed_1.28.15-0ubuntu1.2_amd64.deb ...

Unpacking cups-browsed (1.28.15-0ubuntu1.2) ...

Selecting previously unselected package cups-core-drivers.

Preparing to unpack .../3-cups-core-drivers_2.4.1op1-1ubuntu4.7_amd64.deb ...

Unpacking cups-core-drivers (2.4.1op1-1ubuntu4.7) ...

Selecting previously unselected package cups-server-common.

Preparing to unpack .../4-cups-server-common_2.4.1op1-1ubuntu4.7_all.deb ...

Unpacking cups-server-common (2.4.1op1-1ubuntu4.7) ...

Selecting previously unselected package cups.

Preparing to unpack .../5-cups_2.4.1op1-1ubuntu4.7_amd64.deb ...

Unpacking cups (2.4.1op1-1ubuntu4.7) ...

Setting up cups-server-common (2.4.1op1-1ubuntu4.7) ...

Setting up ssl-cert (1.1.2) ...

Setting up cups-daemon (2.4.1op1-1ubuntu4.7) ...

cups.path is a disabled or a static unit not running, not starting it.

cups.service is a disabled or a static unit not running, not starting it.

cups.socket is a disabled or a static unit not running, not starting it.

Setting up cups-browsed (1.28.15-0ubuntu1.2) ...

Setting up cups-core-drivers (2.4.1op1-1ubuntu4.7) ...

Setting up cups (2.4.1op1-1ubuntu4.7) ...

Updating PPD files for cups ...

Processing triggers for man-db (2.10.2-1) ...

Processing triggers for ufw (0.36.1-4ubuntu0.1) ...

WARN: /etc/default/ufw is world writable!

WARN: /etc/default is world writable!

WARN: /etc is world writable!

WARN: /etc/ufw/ufw.conf is world writable!

WARN: /etc/ufw is world writable!

WARN: /etc/ufw/applications.d is world writable!

WARN: /etc/ufw/user.rules is world writable!

WARN: /etc/ufw/before.rules is world writable!

WARN: /etc/ufw/after.rules is world writable!

WARN: /etc/ufw/user6.rules is world writable!

WARN: /etc/ufw/before6.rules is world writable!

WARN: /etc/ufw/after6.rules is world writable!

WARN: /lib/ufw/ufw-init is world writable!

WARN: /lib/ufw is world writable!

WARN: /lib is world writable!

WARN: /usr/sbin/ufw is world writable!

WARN: /usr/sbin is world writable!

WARN: /usr is world writable!

WARN: /etc/ufw/applications.d/cups is world writable!


Reinstall cups

 $ sudo apt-get install --reinstall cups cups-browsed cups-client cups-common cups-daemon cups-server-common

Reading package lists... Done

Building dependency tree... Done

Reading state information... Done

0 upgraded, 0 newly installed, 6 reinstalled, 0 to remove and 5 not upgraded.

Need to get 1.492 kB of archives.

After this operation, 0 B of additional disk space will be used.

Get:1 http://id.archive.ubuntu.com/ubuntu jammy-updates/main amd64 cups-browsed amd64 1.28.15-0ubuntu1.2 [114 kB]

Get:2 http://id.archive.ubuntu.com/ubuntu jammy-updates/main amd64 cups-daemon amd64 2.4.1op1-1ubuntu4.7 [327 kB]

Get:3 http://id.archive.ubuntu.com/ubuntu jammy-updates/main amd64 cups amd64 2.4.1op1-1ubuntu4.7 [270 kB]

Get:4 http://id.archive.ubuntu.com/ubuntu jammy-updates/main amd64 cups-client amd64 2.4.1op1-1ubuntu4.7 [127 kB]

Get:5 http://id.archive.ubuntu.com/ubuntu jammy-updates/main amd64 cups-common all 2.4.1op1-1ubuntu4.7 [253 kB]

Get:6 http://id.archive.ubuntu.com/ubuntu jammy-updates/main amd64 cups-server-common all 2.4.1op1-1ubuntu4.7 [401 kB]

Fetched 1.492 kB in 10s (151 kB/s)                                             

Preconfiguring packages ...

(Reading database ... 323164 files and directories currently installed.)

Preparing to unpack .../0-cups-browsed_1.28.15-0ubuntu1.2_amd64.deb ...

Unpacking cups-browsed (1.28.15-0ubuntu1.2) over (1.28.15-0ubuntu1.2) ...

Preparing to unpack .../1-cups-daemon_2.4.1op1-1ubuntu4.7_amd64.deb ...

Unpacking cups-daemon (2.4.1op1-1ubuntu4.7) over (2.4.1op1-1ubuntu4.7) ...

Preparing to unpack .../2-cups_2.4.1op1-1ubuntu4.7_amd64.deb ...

Unpacking cups (2.4.1op1-1ubuntu4.7) over (2.4.1op1-1ubuntu4.7) ...

Preparing to unpack .../3-cups-client_2.4.1op1-1ubuntu4.7_amd64.deb ...

Unpacking cups-client (2.4.1op1-1ubuntu4.7) over (2.4.1op1-1ubuntu4.7) ...

Preparing to unpack .../4-cups-common_2.4.1op1-1ubuntu4.7_all.deb ...

Unpacking cups-common (2.4.1op1-1ubuntu4.7) over (2.4.1op1-1ubuntu4.7) ...

Preparing to unpack .../5-cups-server-common_2.4.1op1-1ubuntu4.7_all.deb ...

Unpacking cups-server-common (2.4.1op1-1ubuntu4.7) over (2.4.1op1-1ubuntu4.7) ...

Setting up cups-server-common (2.4.1op1-1ubuntu4.7) ...

Setting up cups-common (2.4.1op1-1ubuntu4.7) ...

Setting up cups-client (2.4.1op1-1ubuntu4.7) ...

Setting up cups-daemon (2.4.1op1-1ubuntu4.7) ...

cups.path is a disabled or a static unit not running, not starting it.

cups.service is a disabled or a static unit not running, not starting it.

Could not execute systemctl:  at /usr/bin/deb-systemd-invoke line 142.

Setting up cups-browsed (1.28.15-0ubuntu1.2) ...

Setting up cups (2.4.1op1-1ubuntu4.7) ...

lpinfo: Success

Processing triggers for man-db (2.10.2-1) ...

Processing triggers for ufw (0.36.1-4ubuntu0.1) ...

WARN: /etc/default/ufw is world writable!

WARN: /etc/default is world writable!

WARN: /etc is world writable!

WARN: /etc/ufw/ufw.conf is world writable!

WARN: /etc/ufw is world writable!

WARN: /etc/ufw/applications.d is world writable!

WARN: /etc/ufw/user.rules is world writable!

WARN: /etc/ufw/before.rules is world writable!

WARN: /etc/ufw/after.rules is world writable!

WARN: /etc/ufw/user6.rules is world writable!

WARN: /etc/ufw/before6.rules is world writable!

WARN: /etc/ufw/after6.rules is world writable!

WARN: /lib/ufw/ufw-init is world writable!

WARN: /lib/ufw is world writable!

WARN: /lib is world writable!

WARN: /usr/sbin/ufw is world writable!

WARN: /usr/sbin is world writable!

WARN: /usr is world writable!

WARN: /etc/ufw/applications.d/cups is world writable!


sudo cupsd -t

 L3210: Directory "/opt/epson-inkjet-printer-202101w/cups/lib/filter" has insecure permissions (040777/uid=0/gid=0).

MP280: Directory "/usr/lib/cups/filter" has insecure permissions (040777/uid=0/gid=0).

Printer drivers are deprecated and will stop working in a future version of CUPS. See https://github.com/OpenPrinting/cups/issues/103

"/etc/cups/cups-files.conf" is OK.

"/etc/cups/cupsd.conf" is OK.

Monday, 3 October 2022

membuat server printer di Debian server

 # apt-get install cups
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  bc cups-browsed cups-client cups-common cups-core-drivers cups-daemon cups-filters cups-filters-core-drivers cups-ipp-utils cups-ppdc
  cups-server-common ghostscript gsfonts libfontembed1 libgutenprint-common libgutenprint9 liblouisutdml-bin liblouisutdml-data liblouisutdml8
  libqpdf21 poppler-utils printer-driver-gutenprint ssl-cert
Suggested packages:
  cups-bsd foomatic-db-compressed-ppds | foomatic-db printer-driver-hpcups hplip cups-pdf smbclient antiword docx2txt imagemagick ghostscript-x
  gutenprint-locales ooo2dbk rtf2xml gutenprint-doc openssl-blacklist
The following NEW packages will be installed:
  bc cups cups-browsed cups-client cups-common cups-core-drivers cups-daemon cups-filters cups-filters-core-drivers cups-ipp-utils cups-ppdc
  cups-server-common ghostscript gsfonts libfontembed1 libgutenprint-common libgutenprint9 liblouisutdml-bin liblouisutdml-data liblouisutdml8
  libqpdf21 poppler-utils printer-driver-gutenprint ssl-cert
0 upgraded, 24 newly installed, 0 to remove and 9 not upgraded.
Need to get 9408 kB of archives.
After this operation, 31.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://deb.debian.org/debian buster/main amd64 bc amd64 1.07.1-2+b1 [109 kB]
Get:2 http://deb.debian.org/debian buster/main amd64 ssl-cert all 1.0.39 [20.8 kB]
Err:3 http://deb.debian.org/debian buster/main amd64 cups-daemon amd64 2.2.10-6+deb10u4
  404  Not Found [IP: 199.232.46.132 80]
Get:4 http://deb.debian.org/debian buster/main amd64 libqpdf21 amd64 8.4.0-2 [435 kB]
Get:5 http://deb.debian.org/debian buster/main amd64 poppler-utils amd64 0.71.0-5 [184 kB]
Err:6 http://deb.debian.org/debian buster/main amd64 cups-ipp-utils amd64 2.2.10-6+deb10u4
  404  Not Found [IP: 199.232.46.132 80]
Get:7 http://deb.debian.org/debian buster/main amd64 cups-filters-core-drivers amd64 1.21.6-5 [237 kB]
Err:8 http://deb.debian.org/debian buster/main amd64 cups-core-drivers amd64 2.2.10-6+deb10u4
  404  Not Found [IP: 199.232.46.132 80]
Ign:9 http://deb.debian.org/debian buster/main amd64 ghostscript amd64 9.27~dfsg-2+deb10u4
Err:10 http://deb.debian.org/debian buster/main amd64 cups-common all 2.2.10-6+deb10u4
  404  Not Found [IP: 199.232.46.132 80]
Err:9 http://deb.debian.org/debian buster/main amd64 ghostscript amd64 9.27~dfsg-2+deb10u4
  404  Not Found [IP: 199.232.46.132 80]
Err:11 http://deb.debian.org/debian buster/main amd64 cups-server-common all 2.2.10-6+deb10u4
  404  Not Found [IP: 199.232.46.132 80]
Err:12 http://deb.debian.org/debian buster/main amd64 cups-client amd64 2.2.10-6+deb10u4
  404  Not Found [IP: 199.232.46.132 80]
Err:13 http://deb.debian.org/debian buster/main amd64 cups-ppdc amd64 2.2.10-6+deb10u4
  404  Not Found [IP: 199.232.46.132 80]
Get:14 http://deb.debian.org/debian buster/main amd64 libfontembed1 amd64 1.21.6-5 [114 kB]
Get:15 http://deb.debian.org/debian buster/main amd64 cups-filters amd64 1.21.6-5 [569 kB]
Err:16 http://deb.debian.org/debian buster/main amd64 cups amd64 2.2.10-6+deb10u4
  404  Not Found [IP: 199.232.46.132 80]
Get:17 http://deb.debian.org/debian buster/main amd64 cups-browsed amd64 1.21.6-5 [177 kB]
Get:18 http://deb.debian.org/debian buster/main amd64 gsfonts all 1:8.11+urwcyr1.0.7~pre44-4.4 [3125 kB]
Get:19 http://deb.debian.org/debian buster/main amd64 libgutenprint-common all 5.3.1-7 [608 kB]
Get:20 http://deb.debian.org/debian buster/main amd64 libgutenprint9 amd64 5.3.1-7 [502 kB]
Get:21 http://deb.debian.org/debian buster/main amd64 liblouisutdml-data all 2.7.0-5 [38.5 kB]
Get:22 http://deb.debian.org/debian buster/main amd64 liblouisutdml8 amd64 2.7.0-5+b1 [86.9 kB]
Get:23 http://deb.debian.org/debian buster/main amd64 liblouisutdml-bin amd64 2.7.0-5+b1 [14.6 kB]
Get:24 http://deb.debian.org/debian buster/main amd64 printer-driver-gutenprint amd64 5.3.1-7 [467 kB]
Fetched 6690 kB in 4s (1758 kB/s)               
E: Failed to fetch http://deb.debian.org/debian/pool/main/c/cups/cups-daemon_2.2.10-6+deb10u4_amd64.deb  404  Not Found [IP: 199.232.46.132 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/c/cups/cups-ipp-utils_2.2.10-6+deb10u4_amd64.deb  404  Not Found [IP: 199.232.46.132 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/c/cups/cups-core-drivers_2.2.10-6+deb10u4_amd64.deb  404  Not Found [IP: 199.232.46.132 80]
E: Failed to fetch http://security.debian.org/debian-security/pool/updates/main/g/ghostscript/ghostscript_9.27~dfsg-2+deb10u4_amd64.deb  404  Not Found [IP: 199.232.46.132 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/c/cups/cups-common_2.2.10-6+deb10u4_all.deb  404  Not Found [IP: 199.232.46.132 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/c/cups/cups-server-common_2.2.10-6+deb10u4_all.deb  404  Not Found [IP: 199.232.46.132 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/c/cups/cups-client_2.2.10-6+deb10u4_amd64.deb  404  Not Found [IP: 199.232.46.132 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/c/cups/cups-ppdc_2.2.10-6+deb10u4_amd64.deb  404  Not Found [IP: 199.232.46.132 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/c/cups/cups_2.2.10-6+deb10u4_amd64.deb  404  Not Found [IP: 199.232.46.132 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
root@debianweb:~# apt-get update
Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
Get:2 http://deb.debian.org/debian buster-updates InRelease [56.6 kB]                                                    
Get:3 http://security.debian.org/debian-security buster/updates InRelease [34.8 kB]                           
Get:4 https://packages.sury.org/php buster InRelease [6837 B]
Get:5 http://deb.debian.org/debian buster/main Sources [7852 kB]     
Get:6 http://deb.debian.org/debian buster-updates/main Sources.diff/Index [12.1 kB]
Get:7 http://deb.debian.org/debian buster-updates/main amd64 Packages.diff/Index [12.1 kB]
Get:8 http://deb.debian.org/debian buster-updates/main Translation-en.diff/Index [6148 B]
Get:9 https://packages.sury.org/php buster/main amd64 Packages [364 kB]
Get:10 http://deb.debian.org/debian buster-updates/main Sources 2022-01-13-2008.29.pdiff [560 B]
Get:11 http://deb.debian.org/debian buster-updates/main Sources 2022-01-24-2024.03.pdiff [257 B]
Get:12 http://deb.debian.org/debian buster-updates/main Sources 2022-03-26-2012.00.pdiff [186 B]
Get:13 http://deb.debian.org/debian buster-updates/main Sources 2022-05-28-1407.13.pdiff [239 B]
Get:14 http://deb.debian.org/debian buster-updates/main Sources 2022-06-11-2007.01.pdiff [185 B]
Get:15 http://deb.debian.org/debian buster-updates/main Sources 2022-08-18-2019.35.pdiff [397 B]
Get:16 http://deb.debian.org/debian buster-updates/main amd64 Packages 2022-01-13-2008.29.pdiff [566 B]
Get:15 http://deb.debian.org/debian buster-updates/main Sources 2022-08-18-2019.35.pdiff [397 B]
Get:17 http://deb.debian.org/debian buster-updates/main amd64 Packages 2022-01-24-2024.03.pdiff [1124 B]
Get:18 http://deb.debian.org/debian buster-updates/main amd64 Packages 2022-03-26-2012.00.pdiff [168 B]
Get:19 http://deb.debian.org/debian buster-updates/main amd64 Packages 2022-05-28-1407.13.pdiff [1094 B]
Get:20 http://deb.debian.org/debian buster-updates/main amd64 Packages 2022-06-11-2007.01.pdiff [169 B]
Get:21 http://deb.debian.org/debian buster-updates/main amd64 Packages 2022-08-18-2019.35.pdiff [283 B]
Get:21 http://deb.debian.org/debian buster-updates/main amd64 Packages 2022-08-18-2019.35.pdiff [283 B]
Get:22 http://security.debian.org/debian-security buster/updates/main Sources [270 kB]
Get:23 http://deb.debian.org/debian buster-updates/main Translation-en 2022-01-13-2008.29.pdiff [421 B]
Get:24 http://deb.debian.org/debian buster-updates/main Translation-en 2022-01-24-2024.03.pdiff [50 B]
Get:24 http://deb.debian.org/debian buster-updates/main Translation-en 2022-01-24-2024.03.pdiff [50 B]
Get:25 http://security.debian.org/debian-security buster/updates/main amd64 Packages [365 kB]
Get:26 http://deb.debian.org/debian buster/main amd64 Packages [7909 kB]   
Get:27 http://security.debian.org/debian-security buster/updates/main Translation-en [197 kB]
Get:28 http://deb.debian.org/debian buster/main Translation-en [5969 kB]                   
Fetched 23.2 MB in 10s (2267 kB/s)                                                                                                                   
Reading package lists... Done
N: Repository 'http://deb.debian.org/debian buster InRelease' changed its 'Version' value from '10.11' to '10.13'
root@debianweb:~# apt-get install cups
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  bc cups-browsed cups-client cups-common cups-core-drivers cups-daemon cups-filters cups-filters-core-drivers cups-ipp-utils cups-ppdc
  cups-server-common ghostscript gsfonts libcups2 libcupsimage2 libfontembed1 libgs9 libgs9-common libgutenprint-common libgutenprint9
  liblouisutdml-bin liblouisutdml-data liblouisutdml8 libpoppler-glib8 libpoppler82 libqpdf21 poppler-utils printer-driver-gutenprint ssl-cert
Suggested packages:
  cups-bsd foomatic-db-compressed-ppds | foomatic-db printer-driver-hpcups hplip cups-pdf smbclient antiword docx2txt imagemagick ghostscript-x
  gutenprint-locales ooo2dbk rtf2xml gutenprint-doc openssl-blacklist
The following NEW packages will be installed:
  bc cups cups-browsed cups-client cups-common cups-core-drivers cups-daemon cups-filters cups-filters-core-drivers cups-ipp-utils cups-ppdc
  cups-server-common ghostscript gsfonts libfontembed1 libgutenprint-common libgutenprint9 liblouisutdml-bin liblouisutdml-data liblouisutdml8
  libqpdf21 poppler-utils printer-driver-gutenprint ssl-cert
The following packages will be upgraded:
  libcups2 libcupsimage2 libgs9 libgs9-common libpoppler-glib8 libpoppler82
6 upgraded, 24 newly installed, 0 to remove and 169 not upgraded.
Need to get 12.3 MB/18.8 MB of archives.
After this operation, 31.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://deb.debian.org/debian buster/main amd64 libcupsimage2 amd64 2.2.10-6+deb10u6 [133 kB]
Get:2 http://security.debian.org/debian-security buster/updates/main amd64 libpoppler-glib8 amd64 0.71.0-5+deb10u1 [125 kB]
Get:3 http://deb.debian.org/debian buster/main amd64 libcups2 amd64 2.2.10-6+deb10u6 [325 kB]
Get:4 http://security.debian.org/debian-security buster/updates/main amd64 libpoppler82 amd64 0.71.0-5+deb10u1 [1506 kB]
Get:5 http://deb.debian.org/debian buster/main amd64 cups-daemon amd64 2.2.10-6+deb10u6 [425 kB]
Get:6 http://deb.debian.org/debian buster/main amd64 cups-ipp-utils amd64 2.2.10-6+deb10u6 [325 kB]
Get:7 http://deb.debian.org/debian buster/main amd64 cups-core-drivers amd64 2.2.10-6+deb10u6 [142 kB]
Get:8 http://deb.debian.org/debian buster/main amd64 cups-common all 2.2.10-6+deb10u6 [318 kB]
Get:9 http://security.debian.org/debian-security buster/updates/main amd64 poppler-utils amd64 0.71.0-5+deb10u1 [184 kB]
Get:10 http://security.debian.org/debian-security buster/updates/main amd64 libgs9 amd64 9.27~dfsg-2+deb10u6 [2197 kB]
Get:11 http://deb.debian.org/debian buster/main amd64 cups-server-common all 2.2.10-6+deb10u6 [582 kB]
Get:12 http://deb.debian.org/debian buster/main amd64 cups-client amd64 2.2.10-6+deb10u6 [253 kB]
Get:13 http://deb.debian.org/debian buster/main amd64 cups-ppdc amd64 2.2.10-6+deb10u6 [205 kB]
Get:14 http://security.debian.org/debian-security buster/updates/main amd64 libgs9-common all 9.27~dfsg-2+deb10u6 [5137 kB]
Get:15 http://deb.debian.org/debian buster/main amd64 cups amd64 2.2.10-6+deb10u6 [375 kB]
Get:16 http://security.debian.org/debian-security buster/updates/main amd64 ghostscript amd64 9.27~dfsg-2+deb10u6 [95.2 kB]
Fetched 12.3 MB in 1s (20.6 MB/s)       
apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
Reading changelogs... Done
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = "en_US:en",
    LC_ALL = (unset),
    LC_TIME = "id_ID.UTF-8",
    LC_MONETARY = "id_ID.UTF-8",
    LC_ADDRESS = "id_ID.UTF-8",
    LC_TELEPHONE = "id_ID.UTF-8",
    LC_NAME = "id_ID.UTF-8",
    LC_MEASUREMENT = "id_ID.UTF-8",
    LC_IDENTIFICATION = "id_ID.UTF-8",
    LC_NUMERIC = "id_ID.UTF-8",
    LC_PAPER = "id_ID.UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_ALL to default locale: No such file or directory
Preconfiguring packages ...
Selecting previously unselected package bc.
(Reading database ... 129054 files and directories currently installed.)
Preparing to unpack .../00-bc_1.07.1-2+b1_amd64.deb ...
Unpacking bc (1.07.1-2+b1) ...
Preparing to unpack .../01-libcupsimage2_2.2.10-6+deb10u6_amd64.deb ...
Unpacking libcupsimage2:amd64 (2.2.10-6+deb10u6) over (2.2.10-6+deb10u4) ...
Preparing to unpack .../02-libcups2_2.2.10-6+deb10u6_amd64.deb ...
Unpacking libcups2:amd64 (2.2.10-6+deb10u6) over (2.2.10-6+deb10u4) ...
Selecting previously unselected package ssl-cert.
Preparing to unpack .../03-ssl-cert_1.0.39_all.deb ...
Unpacking ssl-cert (1.0.39) ...
Selecting previously unselected package cups-daemon.
Preparing to unpack .../04-cups-daemon_2.2.10-6+deb10u6_amd64.deb ...
Unpacking cups-daemon (2.2.10-6+deb10u6) ...
Preparing to unpack .../05-libpoppler-glib8_0.71.0-5+deb10u1_amd64.deb ...
Unpacking libpoppler-glib8:amd64 (0.71.0-5+deb10u1) over (0.71.0-5) ...
Preparing to unpack .../06-libpoppler82_0.71.0-5+deb10u1_amd64.deb ...
Unpacking libpoppler82:amd64 (0.71.0-5+deb10u1) over (0.71.0-5) ...
Selecting previously unselected package libqpdf21:amd64.
Preparing to unpack .../07-libqpdf21_8.4.0-2_amd64.deb ...
Unpacking libqpdf21:amd64 (8.4.0-2) ...
Selecting previously unselected package poppler-utils.
Preparing to unpack .../08-poppler-utils_0.71.0-5+deb10u1_amd64.deb ...
Unpacking poppler-utils (0.71.0-5+deb10u1) ...
Selecting previously unselected package cups-ipp-utils.
Preparing to unpack .../09-cups-ipp-utils_2.2.10-6+deb10u6_amd64.deb ...
Unpacking cups-ipp-utils (2.2.10-6+deb10u6) ...
Selecting previously unselected package cups-filters-core-drivers.
Preparing to unpack .../10-cups-filters-core-drivers_1.21.6-5_amd64.deb ...
Unpacking cups-filters-core-drivers (1.21.6-5) ...
Selecting previously unselected package cups-core-drivers.
Preparing to unpack .../11-cups-core-drivers_2.2.10-6+deb10u6_amd64.deb ...
Unpacking cups-core-drivers (2.2.10-6+deb10u6) ...
Preparing to unpack .../12-libgs9_9.27~dfsg-2+deb10u6_amd64.deb ...
Unpacking libgs9:amd64 (9.27~dfsg-2+deb10u6) over (9.27~dfsg-2+deb10u4) ...
Preparing to unpack .../13-libgs9-common_9.27~dfsg-2+deb10u6_all.deb ...
Unpacking libgs9-common (9.27~dfsg-2+deb10u6) over (9.27~dfsg-2+deb10u4) ...
Selecting previously unselected package ghostscript.
Preparing to unpack .../14-ghostscript_9.27~dfsg-2+deb10u6_amd64.deb ...
Unpacking ghostscript (9.27~dfsg-2+deb10u6) ...
Selecting previously unselected package cups-common.
Preparing to unpack .../15-cups-common_2.2.10-6+deb10u6_all.deb ...
Unpacking cups-common (2.2.10-6+deb10u6) ...
Selecting previously unselected package cups-server-common.
Preparing to unpack .../16-cups-server-common_2.2.10-6+deb10u6_all.deb ...
Unpacking cups-server-common (2.2.10-6+deb10u6) ...
Selecting previously unselected package cups-client.
Preparing to unpack .../17-cups-client_2.2.10-6+deb10u6_amd64.deb ...
Unpacking cups-client (2.2.10-6+deb10u6) ...
Selecting previously unselected package cups-ppdc.
Preparing to unpack .../18-cups-ppdc_2.2.10-6+deb10u6_amd64.deb ...
Unpacking cups-ppdc (2.2.10-6+deb10u6) ...
Selecting previously unselected package libfontembed1:amd64.
Preparing to unpack .../19-libfontembed1_1.21.6-5_amd64.deb ...
Unpacking libfontembed1:amd64 (1.21.6-5) ...
Selecting previously unselected package cups-filters.
Preparing to unpack .../20-cups-filters_1.21.6-5_amd64.deb ...
Unpacking cups-filters (1.21.6-5) ...
Selecting previously unselected package cups.
Preparing to unpack .../21-cups_2.2.10-6+deb10u6_amd64.deb ...
Unpacking cups (2.2.10-6+deb10u6) ...
Selecting previously unselected package cups-browsed.
Preparing to unpack .../22-cups-browsed_1.21.6-5_amd64.deb ...
Unpacking cups-browsed (1.21.6-5) ...
Selecting previously unselected package gsfonts.
Preparing to unpack .../23-gsfonts_1%3a8.11+urwcyr1.0.7~pre44-4.4_all.deb ...
Unpacking gsfonts (1:8.11+urwcyr1.0.7~pre44-4.4) ...
Selecting previously unselected package libgutenprint-common.
Preparing to unpack .../24-libgutenprint-common_5.3.1-7_all.deb ...
Unpacking libgutenprint-common (5.3.1-7) ...
Selecting previously unselected package libgutenprint9.
Preparing to unpack .../25-libgutenprint9_5.3.1-7_amd64.deb ...
Unpacking libgutenprint9 (5.3.1-7) ...
Selecting previously unselected package liblouisutdml-data.
Preparing to unpack .../26-liblouisutdml-data_2.7.0-5_all.deb ...
Unpacking liblouisutdml-data (2.7.0-5) ...
Selecting previously unselected package liblouisutdml8:amd64.
Preparing to unpack .../27-liblouisutdml8_2.7.0-5+b1_amd64.deb ...
Unpacking liblouisutdml8:amd64 (2.7.0-5+b1) ...
Selecting previously unselected package liblouisutdml-bin.
Preparing to unpack .../28-liblouisutdml-bin_2.7.0-5+b1_amd64.deb ...
Unpacking liblouisutdml-bin (2.7.0-5+b1) ...
Selecting previously unselected package printer-driver-gutenprint.
Preparing to unpack .../29-printer-driver-gutenprint_5.3.1-7_amd64.deb ...
Unpacking printer-driver-gutenprint (5.3.1-7) ...
Setting up libgs9-common (9.27~dfsg-2+deb10u6) ...
Setting up liblouisutdml-data (2.7.0-5) ...
Setting up cups-server-common (2.2.10-6+deb10u6) ...
Setting up libfontembed1:amd64 (1.21.6-5) ...
Setting up libgutenprint-common (5.3.1-7) ...
Setting up cups-common (2.2.10-6+deb10u6) ...
Setting up libpoppler82:amd64 (0.71.0-5+deb10u1) ...
Setting up bc (1.07.1-2+b1) ...
Setting up liblouisutdml8:amd64 (2.7.0-5+b1) ...
Setting up libqpdf21:amd64 (8.4.0-2) ...
Setting up liblouisutdml-bin (2.7.0-5+b1) ...
Setting up ssl-cert (1.0.39) ...
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up gsfonts (1:8.11+urwcyr1.0.7~pre44-4.4) ...
Setting up libcups2:amd64 (2.2.10-6+deb10u6) ...
Setting up poppler-utils (0.71.0-5+deb10u1) ...
Setting up libgutenprint9 (5.3.1-7) ...
Setting up cups-ipp-utils (2.2.10-6+deb10u6) ...
Setting up cups-ppdc (2.2.10-6+deb10u6) ...
Setting up libpoppler-glib8:amd64 (0.71.0-5+deb10u1) ...
Setting up libcupsimage2:amd64 (2.2.10-6+deb10u6) ...
Setting up cups-daemon (2.2.10-6+deb10u6) ...
Adding group `lpadmin' (GID 125) ...
Done.
Created symlink /etc/systemd/system/multi-user.target.wants/cups.path → /lib/systemd/system/cups.path.
Created symlink /etc/systemd/system/printer.target.wants/cups.service → /lib/systemd/system/cups.service.
Created symlink /etc/systemd/system/sockets.target.wants/cups.socket → /lib/systemd/system/cups.socket.
Setting up cups-browsed (1.21.6-5) ...
Created symlink /etc/systemd/system/multi-user.target.wants/cups-browsed.service → /lib/systemd/system/cups-browsed.service.
Setting up libgs9:amd64 (9.27~dfsg-2+deb10u6) ...
Setting up ghostscript (9.27~dfsg-2+deb10u6) ...
Setting up cups-filters-core-drivers (1.21.6-5) ...
Setting up cups-client (2.2.10-6+deb10u6) ...
Setting up cups-filters (1.21.6-5) ...
Setting up cups-core-drivers (2.2.10-6+deb10u6) ...
Setting up cups (2.2.10-6+deb10u6) ...
locale: Cannot set LC_ALL to default locale: No such file or directory
Updating PPD files for cups ...
Updating PPD files for cups-filters ...
Updating PPD files for gutenprint ...
Setting up printer-driver-gutenprint (5.3.1-7) ...
Processing triggers for libc-bin (2.28-10) ...
Processing triggers for systemd (241-7~deb10u8) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for fontconfig (2.13.1-2) ...
root@debianweb:~#



Nah Setelah itu edit konfigurasi file Cups yang terletak di bagian "cupsd.conf", Silahkan Ketikka perintah Berikut

#nano /etc/cups/cupsd.conf


Setelah itu scrool kebawah dan cari bagian
<Location /admin>
Tambahkan "Allow from all"

Setelah tu cari juga bagian
<Location /admin/conf>
Tambahkan Juga "Allow from all"


Nah Setelah selesai silahkan restart cups dengan cara
#systemctl restart cups

 

 Kemudian cek apakah cups sudah aktif atau belum untuk cara ceknya sebagai berikut

#systemctl status cups.service
Jika muncul seperti ini berwarna Hijau maka cups sudah aktif

 


masih gagal ini:


Stelah itu kita akses lewat web browser dengan cara Ketikka Ip server anda dan port default adalah 631
sebagai contoh

192.168.100.15:631
Setelah itu Enter