LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-15-2021, 08:59 AM   #1
Herve5
Member
 
Registered: Oct 2016
Location: Europe
Distribution: Debian & Ubuntu Mate
Posts: 107

Rep: Reputation: Disabled
Testing, cups update prevents printing


Hello,
I'm on Debian 5.10.13-1 ; I recently agreed to update a range of cups packages (versions below), and since then, no way to print.
I do see the printers on my network, I can create new ones and even print test pages, but once that is done, whenever I try a 'normal' print, nothing happens. This applies to both my two printers.
There is an utility that triggers and tries to solve the issue ('select your printer', etc.) but its log, below, is for me difficult to understand (server not starting at boot maybe?) -anyway, I see the following :
Code:
Page 1 (<troubleshoot.SchedulerNotRunning.SchedulerNotRunning object at 0x7f1de37f7d60>):
{'cups_connection_failure': False}
Page 2 (<troubleshoot.ChoosePrinter.ChoosePrinter object at 0x7f1de37f7c10>):
{'cups_dest': <cups.Dest laser_Cannes_15Fev21>,
 'cups_instance': None,
 'cups_queue': 'laser_Cannes_15Fev21',
 'cups_queue_listed': True}
Any clue as to what is happening?
TIA!!
Hervé

My cups versions :
https://i.imgur.com/tyLrx5K.png
 
Old 02-15-2021, 09:11 AM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,677

Rep: Reputation: Disabled
Does debbug #976361 ring a bell?
 
1 members found this post helpful.
Old 02-15-2021, 09:33 AM   #3
Herve5
Member
 
Registered: Oct 2016
Location: Europe
Distribution: Debian & Ubuntu Mate
Posts: 107

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by shruggy View Post
Does debbug #976361 ring a bell?
Indeed!
Thanks Shruggy!
Do you think I could easily get back to the previous version?
 
Old 02-15-2021, 09:53 AM   #4
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,677

Rep: Reputation: Disabled
https://wiki.debian.org/RollbackUpdate

Additionally to what is described in the Debian Wiki article linked above, try
Code:
apt-cache policy cups
to see what CUPS versions are available.

Last edited by shruggy; 02-15-2021 at 09:56 AM.
 
Old 02-15-2021, 10:28 AM   #5
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Quote:
Originally Posted by Herve5 View Post
easily
It's the "testing" branch and there is the assumption the user knows what they are doing / the risks involved.

That output tells us very little and doesn't describe the error.

Examine the log for the actual error:
https://wiki.debian.org/CUPSDebuggin...CUPS_Error_Log

Alternatively, you could do a purge and clean install of cups. A purge removes configuration files, and the problem may lie there.

If you really want to downgrade to a previous version, you'll have to find a snapshot from before that particular version migrated to testing, add the repository, update the sources, purge cups and attempt to install the older versions:

http://snapshot.debian.org/
 
Old 02-15-2021, 10:53 AM   #6
Herve5
Member
 
Registered: Oct 2016
Location: Europe
Distribution: Debian & Ubuntu Mate
Posts: 107

Original Poster
Rep: Reputation: Disabled
Thank you for these quick reactions!

Quote:
Originally Posted by shruggy View Post
(...) try
Code:
apt-cache policy cups
to see what CUPS versions are available.
Alas, only the last version, apparently :
Code:
~$ apt-cache policy cups
cups:
  Installé : 2.3.3op2-2
  Candidat : 2.3.3op2-2
 Table de version :
 *** 2.3.3op2-2 500
        500 http://ftp.fr.debian.org/debian bullseye/main amd64 Packages
        100 /var/lib/dpkg/status
Checking the logs following cynwulf link : it seems cups indeed doesn't even start, as in the bug report :
Code:
~$ cupsctl --debug-logging
bash: cupsctl : commande introuvable
I also use to run a small utility named 'Timeshift' that creates snapshots of my system regularly ; I have one fro before the cups update for sure, but I'm a bit afraid because that specific upgrade did also upgrade the Linux kernel. And the only time where regressing that way broke everything here was once on Ubuntu around a kernel upgrade too...

Last edited by Herve5; 02-15-2021 at 11:01 AM.
 
Old 02-15-2021, 10:59 AM   #7
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,677

Rep: Reputation: Disabled
You have to enable stable Debian repositories in your /etc/apt/sources.list then.

Command not found means the package providing that command is not installed. In this case, the package cups-client.

Last edited by shruggy; 02-15-2021 at 11:02 AM.
 
Old 02-15-2021, 11:10 AM   #8
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Code:
$ whereis cupsctl
cupsctl: /usr/sbin/cupsctl /usr/share/man/man8/cupsctl.8.gz
I would advise against adding stable repositories to a testing system, as that would create a frankensystem. Look at the snapshots page in the link I provided - that's the correct way to downgrade.

Do a purge of cups next and reinstall it again.

Last edited by cynwulf; 02-15-2021 at 11:11 AM.
 
Old 02-15-2021, 11:37 AM   #9
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,677

Rep: Reputation: Disabled
discard it.

Last edited by shruggy; 02-15-2021 at 11:39 AM.
 
Old 02-15-2021, 11:52 AM   #10
Herve5
Member
 
Registered: Oct 2016
Location: Europe
Distribution: Debian & Ubuntu Mate
Posts: 107

Original Poster
Rep: Reputation: Disabled
Thank you cynwulf!
on my system your command gives the very same output :
Code:
~$ whereis cupsctl
cupsctl: /usr/sbin/cupsctl /usr/share/man/man8/cupsctl.8.gz
I am going to look at these snapshots.

[edit] I just discovered that in http://snapshot.debian.org/binary/cups/ there is a newer package than the one I have, 2.3.3op2-3, with mine (2.3.3op2-2) just below in the list.
Still this version does not appear here for instance when updating Synaptic.
Does this mean it's from Unstable, perhaps? Or could I just download it and install it 'by hand' here??
[re-edit] As there are 25 versions of it when I click on the name, obviously it's not just a matter of downloading 'the .deb file' :-)

Thanks again!

Last edited by Herve5; 02-15-2021 at 12:06 PM.
 
Old 02-15-2021, 11:59 AM   #11
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,677

Rep: Reputation: Disabled
So /usr/sbin is not in your PATH. It's an administrative command. You should run it as root.
 
Old 02-15-2021, 12:16 PM   #12
Herve5
Member
 
Registered: Oct 2016
Location: Europe
Distribution: Debian & Ubuntu Mate
Posts: 107

Original Poster
Rep: Reputation: Disabled
@shruggy : even as root,
Code:
 root@LinuxHerve:/home/herve# cupsctl --debug-logging
bash: cupsctl : commande introuvable
 
Old 02-15-2021, 12:17 PM   #13
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
As I will now say for the third time: You could purge and reinstall cups.

That will also clear out configuration files. Then when you reinstall you will get a clean start. It's worth doing because its a lot easier than downgrading.

What command did you use to become root?

Last edited by cynwulf; 02-15-2021 at 12:18 PM.
 
Old 02-15-2021, 12:23 PM   #14
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,677

Rep: Reputation: Disabled
Quote:
Originally Posted by Herve5 View Post
Code:
root@LinuxHerve:/home/herve# cupsctl --debug-logging
bash: cupsctl : commande introuvable
The highlighted part says me that you used su to become root. Use su - instead.
 
Old 02-15-2021, 01:28 PM   #15
Herve5
Member
 
Registered: Oct 2016
Location: Europe
Distribution: Debian & Ubuntu Mate
Posts: 107

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by shruggy View Post
The highlighted part says me that you used su to become root. Use su - instead.
You are right. Thank you; now it works. I get an enormous log just for the last minutes, because I asked for debug-logging; I'm searching for something like a pasteboard in order not to create a gigantic post here!

[edit] I pasted the log here

Last edited by Herve5; 02-15-2021 at 01:33 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FC22 Update To Mate Panel And Mate-desktop Prevents Logout beschmid12 Fedora 8 12-20-2020 10:59 AM
latest mesa update prevents firefox, links, others from working staus Slackware 8 05-11-2019 02:34 PM
phpmyadmin prevents being able to update yum NotionCommotion Linux - Newbie 5 03-12-2019 05:15 AM
[SOLVED] Fedora 17 yum update prevents system from booting or reinstalling linuxguy7820 Linux - Laptop and Netbook 7 12-07-2012 08:58 AM
gnome update prevents logging in stoughto Linux - Laptop and Netbook 0 08-15-2004 04:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration