LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > antiX / MX Linux
User Name
Password
antiX / MX Linux This forum is for the discussion of antiX and MX Linux.

Notices


Reply
  Search this Thread
Old 07-27-2020, 03:35 AM   #1
LinWinux
Member
 
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 149

Rep: Reputation: Disabled
Wiped out my Lexmark CS417 printer function - No cups either


This has been my pet peeve with Linux since I started using Linux back in 2009. Getting printers to work properly and consistently can often be a major pain in the rear. I have a Lexmark CS417 color laser printer connected via USB to my machine. No matter what I've tried in the past, due to a lack of clear step by step instructions I've never been able to install this printer manually without a .deb file. Using the Start ---> System ---> Printer settings, the printer would be found, supposedly installed, but then fails to work properly. By that I mean to say that it literally works whenever the heck it feels like it. PDF files print more often than libreoffice files. But all files fail whenever they feel like it, just spitting out a page with errors on it. It's all totally irregular without rhyme nor reason.

Printing PDF files from the Browser has always worked in Chromium ... but not in Firefox or with Brave Browser.
So I've resorted to always turning new office docs into pdf before printing. How ridiculous is that?

Last week I wanted to connect the printer over network settings so my wife could print from it on her machine as well. Silly me, totally forgot that the network module had to be purchased separately which I opted not to do at the time (3 years ago). In order to connect the printer via network settings I went ahead and used above printer settings, then selected ----> SERVER ----> CONNECT ... and instantly wiped out my ability to print.
Now there's a window with PRINT SERVICE NOT AVAILABLE, then on the next line SELECT ANOTHER SERVICE.

I can not make this window change anything. I cannot cancel out of anything. I cannot quit the process. I cannot locate another network service (duh). And I can't even find the process within the task manager in order for me to cancel it out.
I have totally hosed my print ability.

I've been working on this issue since last week and there's no doubt in my mind that I've thoroughly screwed everything up even more since there's so little helpful information (that would make sense to me) avaialble. I don't want to re-install my system from scratch.

Can someone help me *PURGE* *EVERYTHING* *PRINTER* and *CUPS* related, followed by helping me to install all of the printer related functions with cups included, again? I would really appreciate it. Thank you.

.
 
Old 07-27-2020, 03:51 AM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,202

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Show us what is reported by the following command?
Code:
lpstat -t
That should report printer(s) queues configured and current status. The relevant printer config file is /etc/cups/printers.conf and any associated PPD files are located in the /etc/cups/ppd/ directory. These files can be editted/removed etc, but best to do that when CUPS is not running. The commands to start/stop cupsd depend on the distro.

Last edited by ferrari; 07-27-2020 at 03:52 AM.
 
Old 07-27-2020, 04:01 AM   #3
LinWinux
Member
 
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 149

Original Poster
Rep: Reputation: Disabled
Thanks. I'm getting ... (invalid file descriptor) ... It's a German MX Linux setup.

Code:
$ lpstat -t
scheduler is not running
no system default destination
lpstat: Ungültiger Dateideskriptor
lpstat: Ungültiger Dateideskriptor
lpstat: Ungültiger Dateideskriptor
lpstat: Ungültiger Dateideskriptor
lpstat: Ungültiger Dateideskriptor
.
 
Old 07-27-2020, 04:36 AM   #4
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,202

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Ok, CUPS is not active. Not familiar with MX Linux, but as it is based on Debian....I assume a recent version....MX19?. If so, please run
Code:
sudo systemctl status cups
and report back.
 
Old 07-27-2020, 04:56 AM   #5
LinWinux
Member
 
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 149

Original Poster
Rep: Reputation: Disabled
Thanks. Yeah, it's MX 19. Here's the output.

Quote:
● cups.service - CUPS Scheduler
Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2020-07-27 09:45:25 CEST; 2h 8min ago
Docs: man:cupsd(8)
Process: 10155 ExecStart=/usr/sbin/cupsd -l (code=exited, status=1/FAILURE)
Main PID: 10155 (code=exited, status=1/FAILURE)

Jul 27 09:45:25 Winblahblahblah systemd[1]: cups.service: Service RestartSec=100ms expired, scheduling restart.
Jul 27 09:45:25 Winblahblahblah systemd[1]: cups.service: Scheduled restart job, restart counter is at 5.
Jul 27 09:45:25 Winblahblahblah systemd[1]: Stopped CUPS Scheduler.
Jul 27 09:45:25 Winblahblahblah systemd[1]: cups.service: Start request repeated too quickly.
Jul 27 09:45:25 Winblahblahblah systemd[1]: cups.service: Failed with result 'exit-code'.
Jul 27 09:45:25 Winblahblahblah systemd[1]: Failed to start CUPS Scheduler.
.
 
Old 07-27-2020, 05:10 AM   #6
LinWinux
Member
 
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 149

Original Poster
Rep: Reputation: Disabled
I may have accidentally deleted a cups folder or two as well. That's why I figured wiping all printer/cups related items from the system and then starting over from scratch might be the wiser way to go perhaps?
 
Old 07-27-2020, 05:22 AM   #7
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,202

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Not sure why the failure, but you might be able to examine in more detail with
Code:
sudo journalctl -fu cups.service
It may be lengthy, so you can upload to https://pastebin.com/ and post the link to it here. The failure may well lie with a bad/missing config file I guess.

If you really want to get brutal, you can purge CUPS with
Code:
sudo apt-get purge cups
then install it again with
Code:
sudo apt-get install cups

Last edited by ferrari; 07-27-2020 at 05:24 AM.
 
Old 07-27-2020, 06:10 AM   #8
LinWinux
Member
 
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 149

Original Poster
Rep: Reputation: Disabled
Yup, just as I figured, it's totally messed up. I went for the gold and purged cups. Rebooted the system, then installed cups again. No errors during removal and no errors during installation. But when I opened up Chromium in order to print out a pdf file ... I only received the option to print to file (same as saving) or printing to google cloud drive. Nothing at all for using the local printer.
Then I checked ---> SYSTEM ---> PRINTER and the printer window still opens in the same (useless) mode as before.

The first command above wasn't able to complete either. I used that command around 5 - 10 minutes ago and this is all that I've received back. There's no user prompt at the end either, it just stopped in the terminal without a blinking cursor. It's actually still there like that right now ...

Quote:
$ sudo journalctl -fu cups.service
-- Logs begin at Thu 2020-05-28 18:16:57 CEST. --
Jul 27 12:43:42 Winblahblahblah systemd[1]: cups.service: Failed with result 'exit-code'.
Jul 27 12:43:42 Winblahblahblah systemd[1]: cups.service: Service RestartSec=100ms expired, scheduling restart.
Jul 27 12:43:42 Winblahblahblah systemd[1]: cups.service: Scheduled restart job, restart counter is at 5.
Jul 27 12:43:42 Winblahblahblah systemd[1]: Stopped CUPS Scheduler.
Jul 27 12:43:42 Winblahblahblah systemd[1]: cups.service: Start request repeated too quickly.
Jul 27 12:43:42 Winblahblahblah systemd[1]: cups.service: Failed with result 'exit-code'.
Jul 27 12:43:42 Winblahblahblah systemd[1]: Failed to start CUPS Scheduler.
Jul 27 12:43:42 Winblahblahblah systemd[1]: cups.service: Start request repeated too quickly.
Jul 27 12:43:42 Winblahblahblah systemd[1]: cups.service: Failed with result 'exit-code'.
Jul 27 12:43:42 Winblahblahblah systemd[1]: Failed to start CUPS Scheduler.
.

Last edited by LinWinux; 07-27-2020 at 06:27 AM.
 
Old 07-27-2020, 10:29 AM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,318

Rep: Reputation: 4007Reputation: 4007Reputation: 4007Reputation: 4007Reputation: 4007Reputation: 4007Reputation: 4007Reputation: 4007Reputation: 4007Reputation: 4007Reputation: 4007
MX does install systemd but it does not enable it by default. Did you enable systemd?

Have you verified the cups configurations files exist and are not empty? If cupsd.conf does not exist or only contains a few lines would be indicative of cups failing to start.

According to the on line specifications the printer should have a builtin Ethernet adapter. I didn't follow what network settings were changed. Can you still access your LAN or internet from MX?
 
Old 07-27-2020, 10:53 AM   #10
LinWinux
Member
 
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 149

Original Poster
Rep: Reputation: Disabled
Thanks for responding. I have MX boot into Systemd mode by default since that's the easiest way to have printers, vpn, and some other items working. I can't verify anything with cups because as stated, I believe the entire print-configuration is completely hosed. I can't even recall the many things that I've tried before posting here and since I used that last command, the terminal window remained active for almost 2 hours before I finally forced it to close. The output that I received in the terminal never changed beyond what I posted above.

Nothing else is affected. We don't use WiFi for security reasons so our whole house is wired LAN ... and all of it is working just fine. All of my applications such as LibreOffice, Gimp, Web-Browsers, Email, etc. is all working just fine. Only the printing function is totally hosed. I'm beginning to think that the damage is too severe to be fixed.
It's not just cups, because the System/Printer function is messed up as well. Printer displays but nothing reacts to any clicks.

Last edited by LinWinux; 07-27-2020 at 10:54 AM.
 
Old 07-27-2020, 11:02 AM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,318

Rep: Reputation: 4007Reputation: 4007Reputation: 4007Reputation: 4007Reputation: 4007Reputation: 4007Reputation: 4007Reputation: 4007Reputation: 4007Reputation: 4007Reputation: 4007
The system -> printer function is just a configuration setup wizard and you can do everything from the command line or cups web interface. However, if cups isn't running its not going to work either.

Have you checked the /etc/cups/cupsd.conf file?
 
Old 07-27-2020, 11:11 AM   #12
LinWinux
Member
 
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 149

Original Poster
Rep: Reputation: Disabled
Well, There's actually no cupsd.conf file to be found there. I have ...
/etc/cups/raw.convs
/etc/cups/raw.types
/etc/cups/snmp.conf
Those are the only 3 files there (yes, I have show hidden files enabled).
 
Old 07-27-2020, 11:21 AM   #13
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,318

Rep: Reputation: 4007Reputation: 4007Reputation: 4007Reputation: 4007Reputation: 4007Reputation: 4007Reputation: 4007Reputation: 4007Reputation: 4007Reputation: 4007Reputation: 4007
Your missing about 12 files/directories. Since your cupsd.conf file is missing cups will not start. Not much to lose, I might try a reinstall and see what happens...

apt-get --reinstall install cups
 
Old 07-27-2020, 11:31 AM   #14
LinWinux
Member
 
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 149

Original Poster
Rep: Reputation: Disabled
I did that, but there was no change whatsoever. /etc/cups still has those same 3 files there and nothing else. I could do a reboot, don't think that it would make a difference though.
 
Old 07-27-2020, 12:00 PM   #15
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,318

Rep: Reputation: 4007Reputation: 4007Reputation: 4007Reputation: 4007Reputation: 4007Reputation: 4007Reputation: 4007Reputation: 4007Reputation: 4007Reputation: 4007Reputation: 4007
I don't know why cups is not reinstalling correctly. Purging does not by default remove dependencies or configuration files. Installing should install everything from scratch as far as I know.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't get Lexmark Printer to work in Mint 17.3 x64 - CUPS Problem? LateLesley Linux - Software 22 05-12-2016 08:50 PM
Driver for Lexmark X6170 multi-function printer q6supvr Linux - Hardware 3 07-24-2005 09:38 PM
problems configuring lexmark 100 printer with cups gutman007 Linux - Newbie 0 04-18-2004 02:56 PM
Configuring CUPS with Lexmark printer Inexactitude Linux - Software 17 11-21-2003 10:09 AM
Im Doomed: Lindows install wiped out XP data ?? dark_light Linux - General 18 01-08-2003 09:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > antiX / MX Linux

All times are GMT -5. The time now is 11:24 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