LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-23-2020, 08:07 AM   #1
shakespeare1
Member
 
Registered: Nov 2019
Location: Nokia, Finland.
Distribution: Xubuntu
Posts: 50

Rep: Reputation: Disabled
Borked linux printer driver


I've borked this one good.
To start I deleted some files that were apparently needed by the printer driver (Brother dcp9055cdn). I get

Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'dcp9055cdnlpr:i386' instead of '/home/shakespeare/dcp9055cdnlpr-1.1.1-5.i386.deb'
dcp9055cdnlpr:i386 is already the newest version (1.1.1-5).
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.

I'm using a 64-bit Xubuntu, and the 386 packages were updated recently. If anybody can help, I will be eternally in their debt.
 
Old 09-23-2020, 08:40 AM   #2
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Have you tried to download & reinstall printer drivers?
https://support.brother.com/g/b/down...n_eu_as&os=128
 
Old 09-23-2020, 10:45 AM   #3
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,177

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
What command are you running in your first post, you only posted the error.

Have you tried "apt -f install" to fix broken install files.

Last edited by uteck; 09-23-2020 at 10:46 AM. Reason: typo
 
Old 09-24-2020, 05:50 AM   #4
shakespeare1
Member
 
Registered: Nov 2019
Location: Nokia, Finland.
Distribution: Xubuntu
Posts: 50

Original Poster
Rep: Reputation: Disabled
I tried:
sudo apt -f install
I need the directories for installation.
 
Old 09-24-2020, 08:19 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,455

Rep: Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353
Ok. with apt, uninstall, purge autoremove, and any other apt commands that get rid of every last trace.

Then start over, read in advance and investigate any errors the small print.
 
Old 09-24-2020, 09:15 AM   #6
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,177

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
May have to force the uninstall then re-install:
Code:
dpkg -r --force-uninstall dcp9055cdnlp
dpkg -i /home/shakespeare/dcp9055cdnlpr-1.1.1-5.i386.deb
 
Old 09-24-2020, 01:53 PM   #7
shakespeare1
Member
 
Registered: Nov 2019
Location: Nokia, Finland.
Distribution: Xubuntu
Posts: 50

Original Poster
Rep: Reputation: Disabled
You are a genius, for suggesting this
sudo dpkg -r --force-all dcp9055cdnlpr
sudo dpkg -i --force-all /home/shakespeare/dcp9055cdnlpr-1.1.1-5.i386.deb

shakespeare@RYZEN:~$ sudo dpkg -i --force-all dcp9055cdnlpr-1.1.1-5.i386.deb
Selecting previously unselected package dcp9055cdnlpr-1.1.1-5.i386.deb
(Reading database ... 768649 files and directories currently installed.)
Preparing to unpack dcp9055cdnlpr-1.1.1-5.i386.deb ...
Unpacking dcp9055cdnlpr:i386 (1.1.1-5) ...
Setting up dcp9055cdnlpr:i386 (1.1.1-5) ...
shakespeare@RYZEN:~$ sudo dpkg -i --force-all dcp9055cdncupswrapper-1.1.1-5.i386.deb
(Reading database ... 768677 files and directories currently installed.)
Preparing to unpack dcp9055cdncupswrapper-1.1.1-5.i386.deb ...
lpadmin: The printer or class does not exist.
[ ok ] Restarting cups (via systemctl): cups.service.
Unpacking dcp9055cdncupswrapper:i386 (1.1.1-5) over (1.1.1-5) ...
Setting up dcp9055cdncupswrapper:i386 (1.1.1-5) ...

Is there something which would make the thing fail?
 
Old 09-24-2020, 02:08 PM   #8
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,177

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
Why do you think it failed? I don't see any critical errors.
Although you did install the file twice and did not remove it first, but it looks like it worked.

Can you add the printer in your printer settings or from http://locahost:631?
 
Old 09-25-2020, 01:01 AM   #9
shakespeare1
Member
 
Registered: Nov 2019
Location: Nokia, Finland.
Distribution: Xubuntu
Posts: 50

Original Poster
Rep: Reputation: Disabled
The message from Xubuntu is:

[Settings]
Description: DCP9055CDN
Location: In the office.
Device URI: dnssd://Brother%20DCP-9055CDN._pdl-datastream._tcp.local/
Make and Model: Brother DCP-9055CDN CUPS
Printer State: Processing - Unable to locate printer.

The "Printer State" is the serious one.
Which "Device URI" do you have?
 
Old 09-25-2020, 01:06 PM   #10
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,177

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
Did you delete the printer from CUPS and re-add it?
I don't have that printer, so not sure what protocol it is expecting, so you might have to try a few.
 
Old 09-25-2020, 11:44 PM   #11
shakespeare1
Member
 
Registered: Nov 2019
Location: Nokia, Finland.
Distribution: Xubuntu
Posts: 50

Original Poster
Rep: Reputation: Disabled
I have deleted it many times. The message is:
[Settings]
Description: DCP9055CDN
Location: In the office.
Device URI: dnssd://Brother%20DCP-9055CDN._pdl-datastream._tcp.local/
Make and Model: Brother DCP-9055CDN CUPS
Printer State: Processing - Unable to locate printer.

Is there something in the Device URI?
 
Old 09-26-2020, 01:41 AM   #12
cordx
Member
 
Registered: Oct 2018
Location: texas
Distribution: bodhi 5.1.0
Posts: 797

Rep: Reputation: 184Reputation: 184
cups should have a couple of logs in /var/log/cups (error and access). is there anything either of those that might provide more detail?
 
Old 09-26-2020, 03:37 AM   #13
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,842

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
Quote:
I have deleted it many times. The message is:
[Settings]
Description: DCP9055CDN
Location: In the office.
Device URI: dnssd://Brother%20DCP-9055CDN._pdl-datastream._tcp.local/
Make and Model: Brother DCP-9055CDN CUPS
Printer State: Processing - Unable to locate printer.

Is there something in the Device URI?
The device URI is currently using the CUPS DNS-SD backend, which relies on mDNS to be working. Is Avahi hostname resolution working?

Something like...
Code:
ping printer_name.local
Check the hostname resolution configuration....
Code:
cat /etc/nsswitch.conf
 
1 members found this post helpful.
Old 09-27-2020, 11:42 AM   #14
shakespeare1
Member
 
Registered: Nov 2019
Location: Nokia, Finland.
Distribution: Xubuntu
Posts: 50

Original Poster
Rep: Reputation: Disabled
shakespeare@RYZEN:/$ cat /etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd: compat systemd
group: compat systemd
shadow: compat
gshadow: files

hosts: files mdns4_minimal [NOTFOUND=return] dns myhostname
networks: files

protocols: db files
services: db files
ethers: db files
rpc: db files

netgroup: nis
shakespeare@RYZEN:/$
 
Old 09-27-2020, 01:14 PM   #15
shakespeare1
Member
 
Registered: Nov 2019
Location: Nokia, Finland.
Distribution: Xubuntu
Posts: 50

Original Poster
Rep: Reputation: Disabled
There is an [unknown] error in the IP addresses.
99 becomes 109. Is this related to the CUPS-SD which relies on mDNS to work.
shakespeare@RYZEN:~$ ping 192.168.2.99
PING 192.168.2.99 (192.168.2.99) 56(84) bytes of data.
From 192.168.2.109 icmp_seq=1 Destination Host Unreachable
From 192.168.2.109 icmp_seq=2 Destination Host Unreachable
From 192.168.2.109 icmp_seq=3 Destination Host Unreachable
From 192.168.2.109 icmp_seq=4 Destination Host Unreachable
^C
--- 192.168.2.99 ping statistics ---
4 packets transmitted, 0 received, +4 errors, 100% packet loss, time 4525ms
pipe 4
shakespeare@RYZEN:~$
 
  


Reply

Tags
printer driver



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
VI & VIM are borked! d33pdream Linux - Software 4 11-15-2004 02:57 AM
x is borked Enigma Linux - Newbie 3 01-18-2003 07:45 PM
I've borked over a superblock...uh oh Null Linux - Hardware 8 01-08-2003 12:52 PM
Samba - it got borked good bkeating Linux - Networking 2 09-15-2002 03:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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