Printer configuration on Ubuntu 24.04 involves multiple layers—from drivers and CUPS (the Common Unix Printing System) to kernel modules, network settings, and permissions.
This comprehensive guide explains common printer issues and provides step-by-step solutions to fix printer issues on Ubuntu 24.04.
Ubuntu 24.04 brings many improvements, but configuring printers can remain challenging. Whether your printer is connected via USB, network, or accessed through Snap applications, this guide provides basic and advanced solutions. Follow these clear steps—with command examples, checklists, and expected outputs—to resolve issues and create a reliable printing environment on Ubuntu 24.04.
Symptoms: The printer is missing from Settings > Printers or fails to appear when adding a new device.
Causes:
Basic Solutions:
Expected Output: Running lsusb
should list your printer. Example output:
$ lsusb
Bus 003 Device 004: ID 03f0:XXXX HP Inc.
hplip
suite and run hp-plugin
to install proprietary firmware. sudo apt install hplip hplip-gui
hp-plugin
.deb
packages with repository packages.lpinfo -v
to verify printer detection.sudo apt-get install system-config-printer
Read: How to set up a printer on Ubuntu
Symptoms: Documents print as raw PostScript code or output is incomplete (e.g., only text prints, images missing).
Causes:
Basic Solutions:
sudo apt-get install evince
Read: How to resolve WiFi Issues on Ubuntu 24.04
Symptoms: Print jobs appear in the CUPS queue (accessible via http://localhost:631) but remain “Pending” or “Stopped.” Error messages such as “Filter failed” or “Unsupported format” may be present, and sometimes only partial prints occur.
Solutions:
usb://Make/Model?serial=XXX
ipp:///ipp/print
or socket://:9100
cupsctl LogLevel=debug
sudo systemctl restart cups
tail -f /var/log/cups/error_log
echo "Test print" > test.txt
lp -d -o raw test.txt
Symptoms: Errors such as “Unable to locate package hplip” or broken dependency messages. The printer works on Windows/macOS but not on Ubuntu.
Solutions:
sudo apt install hplip hplip-gui
hp-plugin
Note: hplip
is HP’s open-source driver suite, while hp-plugin
installs proprietary firmware.
sudo dpkg -i epson-*.deb
sudo apt --fix-broken install
sudo apt clean
sudo apt update
sudo apt install -f
Symptoms: Network printers are not discovered or fail to connect properly; errors like “Client error not found” or “Connection refused” appear; printing may be slow over Wi-Fi.
Solutions:
ping
avahi-browse -rt _ipp._tcp
nmap -p 631,9100
sudo ufw allow from 192.168.1.0/24 to any port 631/tcp
sudo ufw allow from 192.168.1.0/24 to any port 9100/tcp
sudo hp-probe
lpadmin -p -v socket://:9100
Symptoms: The printer appears in lsusb
but /dev/usb/lp0
is missing; errors like “Access denied” occur.
Solutions:
sudo modprobe usblp
echo "usblp" | sudo tee -a /etc/modules
lsusb
Example Output: Bus 003 Device 004: ID 03f0:XXXX HP Inc.
(Vendor ID: 03f0, Product ID: XXXX)
sudo nano /etc/udev/rules.d/99-printer.rules
Add the following (adjusting IDs as needed):
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="03f0", ATTR{idProduct}=="XXXX", MODE="0660", GROUP="lp"
sudo udevadm control --reload
Symptoms: Snap apps (e.g., Firefox, Chromium) show no printers or display “No destinations available.”
Solutions:
sudo snap connect firefox:cups-control
sudo snap connect chromium:cups-control
snap interfaces
.deb
package: sudo snap remove firefox
sudo apt install firefox
Symptoms: Printers that worked in Ubuntu 20.04 fail after upgrading to 24.04; broken dependencies or misconfigured settings occur.
Solutions:
sudo systemctl stop cups
sudo rm -rf /etc/cups/ppd/ /etc/cups/printers.conf
sudo systemctl start cups
grub-customizer
. Note: Downgrading kernels may impact other hardware; check for linux-restricted-modules
for legacy support first.Read: How to fix Bluetooth connection issues on Ubuntu
Symptoms: Documents always print in black & white even when color is selected.
Causes: Outdated or misconfigured drivers; incorrect color management profiles.
Solutions:
lpadmin -p -o print-color-mode-default=color
colord
service manages ICC profiles correctly in your printing application.lpoptions -l
Symptoms: Printing stops unexpectedly with no hardware changes.
Causes: System updates affecting driver functionality, misconfigured firewall rules, or driver corruption.
Solutions:
sudo apt purge hplip && sudo apt autoremove && sudo apt update && sudo apt install hplip
/var/log/syslog
and CUPS logs for hidden errors.Symptoms: Bluetooth-connected printers are not detected or fail to print.
Solutions:
bluetoothctl
rfkill list
Firmware Updates: Regularly check the manufacturer’s website for firmware updates to resolve compatibility issues, especially for network printers.
Virtualization Workarounds: If your printer lacks Linux support, consider using a Windows virtual machine with USB passthrough temporarily.
lpstat -t # Shows overall printer status and queued jobs
tail -f /var/log/cups/error_log # Monitors CUPS logs in real time
lsusb # Lists connected USB devices
usb-devices # Provides a detailed USB device tree
ping
avahi-browse -rt _ipp._tcp
nmap -p 631,9100
lpoptions -l
By methodically addressing printer issues—from verifying hardware connections and configuring CUPS correctly to updating drivers and troubleshooting network and USB connectivity—you can resolve most printer issues on Ubuntu 24.04. Begin with basic steps (ensuring correct device URIs, checking logs, and testing raw printing) and progress to advanced solutions for persistent problems like driver conflicts, Snap application limitations, or Bluetooth issues.
Best Practices:
ufw
rules).lp
group instead of global settings.This comprehensive Ubuntu printer troubleshooting guide combines both basic and advanced solutions, detailed checklists, command explanations, and security tips to help you build a reliable and secure printing environment on Ubuntu 24.04.
The post Ubuntu 24.04 Printer Troubleshooting Guide: Fix USB, Network, and Driver Issues appeared first on net2.
Welcome to the Ubuntu Weekly Newsletter, Issue 881 for the week of February 23 –…
Welcome back, data scientists! In my previous post, we explored how easy it is to…
In this article, we will see how to install vLLM on Linux using 4 easy…
Welcome to the Ubuntu Weekly Newsletter, Issue 880 for the week of February 16 –…
Welcome to the Ubuntu Weekly Newsletter, Issue 880 for the week of February 16 –…
The Ubuntu team is pleased to announce the release of Ubuntu 24.04.2 LTS (Long-Term Support)…