Posted inInformation Technology

Fixing Ubuntu Duplicate Printers

Duplicate printers are annoying. Many times I feel Canonical long ago abandoned the “Just Works” slogan for “Just Ship It!” What makes it worse is the duplicate entries don’t work.

Duplicate printers are happening on every system in my office. Doesn’t matter if the system started with Ubuntu 20.04 LTS minimal beta/pre-release or a full install from the current ISO.

At the very best it is sloppy. At the very worst it is a complete lack of testing. You can’t test an OS with automated test scripts; especially if those automated test scripts are simply there to check a box in the AGILE development process.

Close all of your applications.

Open a terminal and type the following:

sudo apt remove cups
sudo apt autoremove

ls /etc/cups/*

sudo rm -rf /etc/cups
ls /etc/cups/*

The last ls command is just so you can verify everything went bye-bye.

Reboot.

Open a terminal window and type the following:

sudo apt install cups

sudo apt install cups-pdf

Reboot.

All should be right with the world now.

When all else fails

systemctl stop cups-browsed

You need to reboot then open a terminal again. If you don’t you will get permission errors trying the next step.

systemctl disable cups-browsed

reboot one last time.

Now you have to manually remove the trash Ubuntu added to printers. Click “Activities” and type “printer” without quotes.

Select the “Printers” item in Settings. Click on the gear button and choose “Details” for each printer. The garbage printers will have address of (null).

Click on the gear button for them again and choose “Remove printer.” Reboot one last time to make certain all the bad stuff is gone.

Thermal Nuclear Strike

Canonical has gotten rather good at creating viruses. There really is no other way to describe them. Anyone who has tried to kill unattended-upgrades and keep it killed has found what must have been the original inspiration for the Halloween movie franchise. This printer debacle isn’t much different.

For those of you who think AGILE and TDD are valid software development methodologies, take a good look at this printer debacle. When you are done with that take a good look at trying to use the Faxmodem software in Ubuntu. You can only develop software like this using actual Software Engineering (AGILE is just hacking on the fly, not software engineering) and actual Software Engineering requires a QA group actually testing the software. This was a bunch of TDD operating in a vacuum.

Depending on where you are at with your upgrade/updating process, all of the above suggestions won’t work. You need a thermal nuclear strike. Warning: you will have to install actual printer drivers after this. You will have to know or find IP addresses of printers you want to use, assuming you don’t have them directly connected to your printer.

Moral of this story? Whenever Canonical comes up with its own idea about how to do things, it is usually a bad one. If some other distro actually tested NVIDIA drivers with their desktop, it would be the largest in Linux.

sudo nano /etc/cups/cups-browsed.conf

Exit and save.

sudo nano /etc/avahi/avahi-daemon.conf

change use-ipv4 and use-ipv6 to no

Exit and save.

Reboot.

Scrounge the Internet to find driver packages for the printers you want to use. If you happen to have a Brother MFC-L3770CDW you can find the driver here. Most of the driver vs PPD packages will actually search on the network to find your printer.

Now I have “just the printers I have” showing up. I’ve also eliminated that annoying series of “notifications” about printers being added, especially ones that don’t really exist.

Roland Hughes started his IT career in the early 1980s. He quickly became a consultant and president of Logikal Solutions, a software consulting firm specializing in OpenVMS application and C++/Qt touchscreen/embedded Linux development. Early in his career he became involved in what is now called cross platform development. Given the dearth of useful books on the subject he ventured into the world of professional author in 1995 writing the first of the "Zinc It!" book series for John Gordon Burke Publisher, Inc.

A decade later he released a massive (nearly 800 pages) tome "The Minimum You Need to Know to Be an OpenVMS Application Developer" which tried to encapsulate the essential skills gained over what was nearly a 20 year career at that point. From there "The Minimum You Need to Know" book series was born.

Three years later he wrote his first novel "Infinite Exposure" which got much notice from people involved in the banking and financial security worlds. Some of the attacks predicted in that book have since come to pass. While it was not originally intended to be a trilogy, it became the first book of "The Earth That Was" trilogy:
Infinite Exposure
Lesedi - The Greatest Lie Ever Told
John Smith - Last Known Survivor of the Microsoft Wars

When he is not consulting Roland Hughes posts about technology and sometimes politics on his blog. He also has regularly scheduled Sunday posts appearing on the Interesting Authors blog.