Printer troubleshooting technician providing live chat help

Joe B.

Reviewed for technical accuracy

Specialities: Linux (Ubuntu/Fedora/Debian), CUPS, Printers, Networking, Office Equipment

Set up a printer on Linux — Ubuntu 22.04/24.04, Fedora 39/40, Debian — CUPS, IPP Everywhere, HPLIP, Gutenprint

Technician avatar Technician
Hey! Let’s get your Linux printer setup done correctly. Tell me your distro (Ubuntu, Fedora, Debian, etc.), the printer brand/model (HP, Epson, Canon, Brother), and how it connects (USB, Wi‑Fi, or Ethernet). We’ll decide whether to use IPP Everywhere (driverless) via CUPS or a vendor driver like HPLIP or Gutenprint.
Customer
Ubuntu 24.04 on a laptop. HP OfficeJet via Wi‑Fi. The printer appears in Settings → Printers but test page fails. I’m not sure if I need HPLIP or driverless printing.
Technician avatar Technician
Got it. On Ubuntu/Fedora, most modern printers support driverless printing using IPP Everywhere (sometimes called AirPrint). If the test page fails, common causes are:
• Missing or stopped CUPS service (systemctl status cups).
• Firewall blocking mDNS/IPP discovery (enable mdns, ipp, and ipp-client on Fedora firewalld or ufw allow mdns on Ubuntu).
• Wrong queue (e.g., added as IPP Everywhere but the device needs HPLIP).
• Stale PPD or old queue lingering from previous attempts.
Plan: verify CUPS, open discovery ports, try driverless first; if features like scanning/ink levels are needed, install HPLIP for HP or Gutenprint for Epson/Canon where appropriate.
Customer
How do I check and restart CUPS on Ubuntu? And which packages should I install for Linux printing?
Technician avatar Technician
Ubuntu printer setup (22.04/24.04):
1) Install core packages: sudo apt update && sudo apt install cups system-config-printer printer-driver-gutenprint avahi-daemon.
2) For HP devices add tools: sudo apt install hplip hplip-gui ipp-usb (enables USB & network HP support).
3) Start/enable CUPS: sudo systemctl enable --now cups → check with systemctl status cups.
4) Add your user to admin group so you can manage printers: sudo usermod -aG lpadmin $USER (log out/in).
5) Open the CUPS web UI at http://localhost:631 or use Settings → Printers → Add Printer to add via IPP Everywhere.
6) If discovery fails, allow mDNS: sudo ufw allow mdns; then sudo systemctl restart cups. Test with lpstat -p -d and print a test page.
Customer
What about Fedora? The printer shows up but prints garbage or not at all.
Technician avatar Technician
Fedora printer setup (39/40):
1) Install essentials: sudo dnf install cups cups-filters system-config-printer gutenprint hplip hplip-gui.
2) Start/enable: sudo systemctl enable --now cups.
3) Firewalld: sudo firewall-cmd --add-service=mdns --add-service=ipp --add-service=ipp-client --permanent && sudo firewall-cmd --reload.
4) In Settings → Printers, add via IPP Everywhere first. If output is garbled, remove the queue and re-add using the appropriate PPD (e.g., HPLIP for OfficeJet/LaserJet, Gutenprint for some Epson/Canon).
5) Verify with: lpinfo -v (devices) and lpoptions -p <printer> -l (driver options).
Customer
USB printing is flaky — the HP disconnects randomly. Any Linux‑specific fix?
Technician avatar Technician
Fix USB printer disconnects on Linux:
• Ensure ipp-usb is installed and running (Ubuntu): it exposes USB printers as driverless IPP locally. Check: systemctl status ipp-usb.
• Use a direct USB‑C/USB‑A port, avoid unpowered hubs; replace cable if intermittent.
• Power‑save: disable USB autosuspend for the printer or set Power Profiles to Balanced/Performance on laptops.
• Recreate the queue using the ipp URI from lpinfo -v, not the legacy usb backend.
Customer
Do I need vendor drivers, or can I stay with IPP Everywhere?
Technician avatar Technician
Driverless vs Vendor drivers:
• IPP Everywhere / AirPrint (driverless) is the best default for modern HP/Epson/Canon/Brother — simple and reliable in CUPS.
• Install HPLIP when you need ink levels, cleaning cycles, scanning (with xsane/simple-scan) or model‑specific color management.
• Gutenprint improves quality for many Epson/Canon photo printers.
• For legacy models, use a vendor PPD or the Generic PCL/PS drivers.
Customer
CUPS web interface is disabled here. How do I enable localhost:631?
Technician avatar Technician
Enable the CUPS web UI:
1) sudo cupsctl WebInterface=Yes
2) Restart: sudo systemctl restart cups
3) Go to http://localhost:631 → Administration → Add Printer → select Discovered Network Printers or provide ipp:// URI. Use Driverless when offered.
Customer
We’re in an office with firewalls and Fedora workstations. Printers don’t auto‑discover. Any policy‑friendly tips?
Technician avatar Technician
Enterprise/Linux office setup:
• Open mDNS/IPP on the client VLAN: firewalld services mdns, ipp, ipp-client.
• Add printers via IPP URI directly (e.g., ipp://printer.company.local/ipp/print) to bypass discovery.
• Centralize queues on a CUPS server (Avahi broadcasts) and let workstations point to it.
• With SELinux enforcing, keep defaults; avoid disabling — use proper ports/services instead.
Customer
How do I completely reset a broken Linux print setup and start clean?
Technician avatar Technician
Reset/repair CUPS:
1) Remove queues: lpstat -p to list → sudo lpadmin -x PRINTER for each.
2) Clear stale jobs: cancel -a and sudo rm -f /var/spool/cups/* (careful).
3) Recreate config: sudo systemctl stop cups → sudo mv /etc/cups/cupsd.conf /etc/cups/cupsd.conf.bak → sudo dpkg-reconfigure cups (Ubuntu) or reinstall cups on Fedora.
4) Start fresh: sudo systemctl start cups → add via IPP Everywhere or vendor driver.
Customer
Perfect — printed a test page. Any quick commands to verify status?
Technician avatar Technician
Summary & quick checks: lpstat -p -d (printers/default), lpinfo -v (devices), lpoptions -p PRN -l (driver options). If Linux printer not printing, restart CUPS, verify firewall for IPP/mDNS, and prefer driverless printing before vendor PPDs. Need help fine‑tuning color or duplex? Open the chat.

Quick answer: the accepted fix

Accepted fix for Linux printer setup (Ubuntu/Fedora): ensure CUPS is enabled, allow mDNS/IPP in the firewall, then add the printer via IPP Everywhere (driverless) in GNOME Settings or http://localhost:631. If features require it, install HPLIP (HP) or Gutenprint (Epson/Canon), recreate the queue, and print a test page.


Printer discovered but not printing on Linux (Ubuntu/Fedora)

If printer shows in Linux but won’t print, restart CUPS, open mDNS/IPP ports, and re-add using IPP Everywhere. For HP/Epson/Canon photo models, try HPLIP or Gutenprint and ensure the correct PPD is selected.

How to verify Linux printing works

Run lpstat -p -d to confirm the default queue, then print from CUPS web UI or lp /usr/share/cups/data/testprint. If output is faint/garbled, switch to a vendor driver (HPLIP/Gutenprint) or recreate the queue with driverless protocol.

Linux printing — troubleshooting tips

Most Linux printing issues come from disabled CUPS, blocked discovery, or a mismatched driver.

Quick path: verify CUPS service → allow mDNS/IPP → try IPP Everywhere → install HPLIP/Gutenprint if needed → test with lpstat and lpoptions. For USB devices, use ipp-usb and a good cable/port.

Disclaimer: This information is AI-generated and intended for general guidance only. For advice specific to your environment, please consult a verified expert on Whizz-Tech before making decisions.


Getting Started Is Easy

Ask for help, 24/7

Members enjoy round-the-clock access to 12,000+ verified Experts, including tech support, mechanics, vets, and more.

Expert will respond in minutes

We match you with an Expert who specializes in your situation. Talk, text, or chat — whichever you prefer.

Save time & money

No scheduling hassles or expensive consults. Membership can save you significant time and money each month.

FAQ

What is the best way to add a printer on Linux?

Use IPP Everywhere (driverless) through Settings → Printers → Add or http://localhost:631. It’s reliable for modern HP/Epson/Canon/Brother devices and avoids manual PPD selection.

When should I install HPLIP or Gutenprint?

Install HPLIP for HP features like ink levels and scanning; install Gutenprint for improved output on many Epson/Canon photo printers or when driverless output is poor.

Why does my printer not show up on Fedora/Ubuntu?

Usually CUPS isn’t running or the firewall blocks discovery. Enable CUPS and allow mDNS/IPP services. Then re-add the printer using driverless mode.

How do I enable the CUPS web interface?

Run sudo cupsctl WebInterface=Yes and restart CUPS with sudo systemctl restart cups, then open http://localhost:631.

Can I share printers from a Linux server?

Yes. Configure a CUPS print server, enable Avahi for service discovery, and point clients to the server via IPP.

Common Linux printing problems and quick fixes
SymptomLikely causeQuick fix
Printer discovered, not printing CUPS not running; firewall blocks IPP Enable CUPS; allow mdns/ipp; re-add as driverless
Garbled output Wrong PPD/driver Switch to IPP Everywhere or install HPLIP/Gutenprint
USB printer disconnects No ipp-usb; bad cable/hub Install ipp-usb; use direct port; recreate ipp:// queue
Can’t open CUPS UI WebInterface disabled sudo cupsctl WebInterface=Yes; restart CUPS

Step‑by‑step (Ubuntu)

  1. Install packages: sudo apt install cups system-config-printer avahi-daemon printer-driver-gutenprint hplip ipp-usb.
  2. Enable: sudo systemctl enable --now cups; add user to lpadmin.
  3. Add via Settings → Printers using IPP Everywhere or http://localhost:631.
  4. Test with lpstat -p -d and print a test page.

Step‑by‑step (Fedora)

  1. Install: sudo dnf install cups cups-filters system-config-printer gutenprint hplip.
  2. Enable: sudo systemctl enable --now cups; allow mdns, ipp, ipp-client in firewalld.
  3. Add the printer using IPP Everywhere or vendor PPD if needed.
  4. Verify with lpinfo -v, lpoptions -p PRN -l, and a test print.

Sources

Matt Verified Icon
Matt ● replies in < 1 min
Technician Expert
⭐⭐⭐⭐⭐ Trusted by 27,000+ customers
Avatar
Alex · Expert's Assistant