Avoid CUPS upgrade hell

No Comments

Okay, its been a long while since I upgraded one of my partitions, running ubuntu 12:04, and so the need to get closer to 18:04 meant, I had to upgrade one step at a time, and you know the problem, nobody figured an easier way to skip past a decade of neglect.
Trouble is, I don’t want to upgrade too far, since its old hardware. And there lies the rub.
After experiencing a cups log inflation story from hell, see here.
I then ran into this problem, no working CUPS panel
solution
sudo apt remove --purge cups
apt autoremove
apt remove cups*
cd /etc/cups & rm *
cd /usr/share/cups & rm *

apt install cups
apt install lsb

service cups restart
check permissions
first check if the log is kicking up a fuss:
tail /var/log/cups/error_log
E [01/Apr/2019:17:07:50 +0200] [CGI] Directory \"/usr/lib/cups/backend\" has insecure permissions (040755/uid=1000/gid=1000)

which gives us an indication, to make certain
ls -al /usr/lib/cups/backend
then
sudo chmod 755 /usr/lib/cups/backend
sudo chown root:root /usr/lib/cups/backend

and if that fails, try this trick:
sudo cp /usr/share/cups/cupsd.conf.default /etc/cups/cupsd.conf
sudo service cups restart

Categories: Uncategorized

Leave a Reply

Your email address will not be published. Required fields are marked *