You are not logged in.
Pages: 1
Hi Guys,
I think a recent update has caused a problem with printing !
Everything was fine on Monday
Samsung_SCX-4200_Series gaffer 24 [17/Apr/2019:09:26:52 +0100] 1 1 - localhost Center slide End Plate.png - -
Then today trying to print anything just hangs. Doing "localhost:631" just returns "Waiting for localhost"
and "cupsdoprint" returns "No printers installed".
I've re-installed CUPS without success.
Thanks.
Best regards:
BaronJ.
Best Regards: BaronJ.
Offline
Another problem ! I've just tried to install an update to python, and I get these error messages.
Also I note that there has not been any response to my previous post !!!
Setting up python3.4 (3.4.2-1+deb8u3) ...
File "/usr/lib/python3.4/http/client.py", line 1014
raise InvalidURL(f"URL can't contain control characters. {url!r} "
^
SyntaxError: invalid syntax
dpkg: error processing package python3.4 (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
python3.4
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up bzip2 (1.0.6-7+deb8u1) ...
Setting up python3.4 (3.4.2-1+deb8u3) ...
File "/usr/lib/python3.4/http/client.py", line 1014
raise InvalidURL(f"URL can't contain control characters. {url!r} "
^
SyntaxError: invalid syntax
dpkg: error processing package python3.4 (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
python3.4
Best Regards: BaronJ.
Offline
I can't help specifically with your problem, but have you checked your network is functioning properly?
I do not understand this :-
Samsung_SCX-4200_Series gaffer 24 [17/Apr/2019:09:26:52 +0100] 1 1 - localhost Center slide End Plate.png - -
With the apt problem you could try running
sudo apt update
before trying to install anything in case the file has been updated on the server and so the old version can no longer be found which could cause this type of error.
EDIT:
I noticed the Debian (Q4OS) version of python3 is either 3.5.3-1 for Stretch (Scorpion) or 3.7.3-1 for Buster (Centaurus) so it seems you are trying to install a package that is not there.
EDIT2:
Sorry just noticed the Jessie tag in the file, Jessie (Orion) has version 3.4.2-2
Last edited by Dai_trying (2019-06-25 14:48)
Offline
Hi Dai_trying,
Thank you for your reply ! Yes I am running Q4OS Orion.
With regard to the print problem the message was from the last successful print done logfile.
Samsung_SCX-4200_Series gaffer 24 [17/Apr/2019:09:26:52 +0100] 1 1 - localhost Center slide End Plate.png
Which was a png image of some engineering work. I posted the whole line because it contains all the information about the printer, the time & date and what the file was. I still can't print anything !
Then today there was this update for "Python" and since then I cannot update anything. I copied and posted the error messages from the screen.
I'm now stuck ! Unable to print and unable to update anything. The red update icon keeps coming back and nothing updates, just the same error messages.
Thanks for your help getting this problem sorted, just tell me what I have to do.
Best Regards: BaronJ.
Offline
I ran "sudo apt update" and this is what came back...
5 packages can be upgraded. Run 'apt list --upgradable' to see them.
gaffer@castlelinux:~$ apt list --upgradable
Listing... Done
libpython3.4/oldstable 3.4.2-1+deb8u4 amd64 [upgradable from: 3.4.2-1+deb8u2]
libpython3.4-minimal/oldstable 3.4.2-1+deb8u4 amd64 [upgradable from: 3.4.2-1+deb8u3]
libpython3.4-stdlib/oldstable 3.4.2-1+deb8u4 amd64 [upgradable from: 3.4.2-1+deb8u3]
python3.4/oldstable 3.4.2-1+deb8u4 amd64 [upgradable from: 3.4.2-1+deb8u3]
python3.4-minimal/oldstable 3.4.2-1+deb8u4 amd64 [upgradable from: 3.4.2-1+deb8u3]
gaffer@castlelinux:~$
Thanks:
Best Regards: BaronJ.
Offline
Did you get any errors from the apt-update command, the Debian repositories have moved recently and I would have expected the output to show some errors...
Could you run apt update again and post the FULL output here. (Tip: if you use code blocks it will be easier to read)
Offline
You should remove the conflicting package first:
$ sudo dpkg -r --force-all python3.4
next fix apt system run:
$ sudo apt-get update
$ sudo apt-get install -f
Please post the complete output of all the commands.
Offline
Hi Guys,
I did "sudo dpkg -r --force-all python3.4" as requested
this is the output,
Gaffer@castlelinux:~$ sudo dpkg -r --force-all python3.4
dpkg: python3.4: dependency problems, but removing anyway as you requested:
python3-uno depends on python3.4.
python3 depends on python3.4 (>= 3.4.2-0).
(Reading database ... 142601 files and directories currently installed.)
Removing python3.4 (3.4.2-1+deb8u4) ...
Processing triggers for desktop-file-utils (0.22-1) ...
Processing triggers for mime-support (3.58) ...
Processing triggers for man-db (2.7.0.2-5) ...
gaffer@castlelinux:~$
Then I ran "$ sudo apt-get update"
Hit http://q4os.org q4os-1-0-cn InRelease
Hit http://security.debian.org jessie/updates InRelease
Hit http://q4os.org jessie InRelease
Ign http://deb.debian.org jessie InRelease
Hit http://q4os.org q4os-1-0-cn/main amd64 Packages
Hit http://deb.debian.org jessie Release.gpg
Hit http://security.debian.org jessie/updates/main amd64 Packages
Hit http://security.debian.org jessie/updates/contrib amd64 Packages
Hit http://security.debian.org jessie/updates/non-free amd64 Packages
Hit http://security.debian.org jessie/updates/contrib Translation-en
Hit http://deb.debian.org jessie Release
Hit http://security.debian.org jessie/updates/main Translation-en
Hit http://security.debian.org jessie/updates/non-free Translation-en
Hit http://q4os.org jessie/main amd64 Packages
Hit http://deb.debian.org jessie/main amd64 Packages
Hit http://deb.debian.org jessie/contrib amd64 Packages
Hit http://deb.debian.org jessie/non-free amd64 Packages
Hit http://deb.debian.org jessie/contrib Translation-en
Hit http://deb.debian.org jessie/main Translation-en
Hit http://deb.debian.org jessie/non-free Translation-en
Ign http://q4os.org q4os-1-0-cn/main Translation-en_GB
Ign http://q4os.org q4os-1-0-cn/main Translation-en
Ign http://q4os.org jessie/main Translation-en_GB
Ign http://q4os.org jessie/main Translation-en
Reading package lists... Done
gaffer@castlelinux:~$
Then I ran "$ sudo apt-get install -f"
gaffer@castlelinux:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
python3.4
Suggested packages:
python3.4-venv python3.4-doc
The following NEW packages will be installed:
python3.4
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/205 kB of archives.
After this operation, 344 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Selecting previously unselected package python3.4.
(Reading database ... 142583 files and directories currently installed.)
Preparing to unpack .../python3.4_3.4.2-1+deb8u4_amd64.deb ...
Unpacking python3.4 (3.4.2-1+deb8u4) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for desktop-file-utils (0.22-1) ...
Processing triggers for mime-support (3.58) ...
Setting up python3.4 (3.4.2-1+deb8u4) ...
gaffer@castlelinux:~$
That seems to have cleared bad python items and installed python 3.4 Ok.
Thank you for that, however I still can't print anything !
I still get "localhost contacted waiting for reply" when I try to print something
If I go and look at the error log I see "Max clients reached, holding new connections"
which makes no sense to me.
Best Regards: BaronJ.
Offline
Now run:
$ sudo apt-get dist-upgrade
check if the output is ok, reboot and try printing again.
Offline
Thank you for your reply,
As requested,
gaffer@castlelinux:~$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
gaffer@castlelinux:~$
No ! I still get the "localhost contacted. waiting for reply" message.
If I go and look at the error log I see "W [26/Jun/2019:10:40:47 +0100] Max clients reached, holding new connections..."
Best Regards: BaronJ.
Offline
Hi Guys,
Something has changed, after trying to print a pdf file this time.
From var/log/cups, Access log.
"localhost - - [26/Jun/2019:11:21:16 +0100] "POST /printers/Laser HTTP/1.1" 200 453 Create-Job successful-ok
localhost - - [26/Jun/2019:11:21:16 +0100] "POST /printers/Laser HTTP/1.1" 200 94681 Send-Document successful-ok"
and from var/cups, Error log.
"W [26/Jun/2019:11:29:29 +0100] Max clients reached, holding new connections..."
and from var/cups, page log. the same message, unchanged, as previously posted.
"Samsung_SCX-4200_Series gaffer 24 [17/Apr/2019:09:26:52 +0100] 1 1 - localhost Center slide End Plate.png - -"
However I still get the localhost contacted message, but after about 15 minutes the cups admin page appeared, clicking on "Printers" just hung.
Thanks guys.
Best Regards: BaronJ.
Offline
Have you tried restarting cup? I have not had to do it myself but the command should be
sudo service cups restart
I would hope this would kinda reset any current connections and at least allow you to start printing.
Also have you checked if there are any documents in the queue?
This Ubuntu link should give you some commands to get the information from the command line which might help as you cannot access the web interface.
Offline
Hi Guys,
I've managed to get a JPG to print ! The application seemed to have hung, but I had to go away and do something else for maybe an hour, when I came back the printer had produced a print of the picture that I had sent earlier.
I've tried all the suggestions made and followed several others without any success.
I don't understand the "Max clients reached, holding new connections" message and feel that Cups has some odd corruption.
What do I need to do to purge Cups and re install a clean version ?
Thanks Guys.
Best Regards: BaronJ.
Offline
It may be worth a look in /var/spool/cups - delete any jobs in there as root
Is this a wifi or USB connection? If wifi can you connect vis USB and see if that helps?
TBH I would suggest you look at a reinstall with a newer version as the underpinnings of Debian Jessie (Orion) are bit ancient.
Why not try Scorpion?
Offline
Why not try Scorpion?
Personally I would go for Centaurus as it will be "Stable" very soon, but obviously it is a matter of preference.
Offline
Hi Guys,
Problem solved ! See below.
{
Resolve.conf
# Generated by NetworkManager
#search lan This is an error.
nameserver 192.168.1.254
}
Commented out the second line ! Problem solved.
Best Regards: BaronJ.
Offline
Pages: 1