Unable to add hl3170cdw printer in Centos 7 after some updates

Issues related to applications and software problems
Post Reply
abhijit
Posts: 14
Joined: 2017/11/09 04:27:22

Unable to add hl3170cdw printer in Centos 7 after some updates

Post by abhijit » 2020/02/06 04:27:53

[root@localhost abhijit]# rpm -ihv --nodeps hl3170cdwlpr-1.1.2-1.i386.rpm
Preparing... ################################# [100%]
Updating / installing...
1:hl3170cdwlpr-1.1.2-1 ################################# [100%]
[root@localhost abhijit]# rpm -ihv --nodeps hl3170cdwcupswrapper-1.1.4-0.i386.rpm
Preparing... ################################# [100%]
Updating / installing...
1:hl3170cdwcupswrapper-1.1.4-0 ################################# [100%]
/opt/brother/Printers/hl3170cdw/cupswrapper/cupswrapperhl3170cdw: line 307: lpinfo: command not found
lpadmin -p HL3170CDW -E -v usb://dev/usb/lp0 -P /usr/share/cups/model/Brother/brother_hl3170cdw_printer_en.ppd
/opt/brother/Printers/hl3170cdw/cupswrapper/cupswrapperhl3170cdw: line 353: lpadmin: command not found

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Unable to add hl3170cdw printer in Centos 7 after some updates

Post by TrevorH » 2020/02/06 13:21:10

Use yum not rpm. And that package is bad as it has a dependency on lpinfo being installed but does not say so, so the install does not pull in the dependency. Run yum provides '*/lpinfo' to discover the correct package and install that first.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

abhijit
Posts: 14
Joined: 2017/11/09 04:27:22

Re: Unable to add hl3170cdw printer in Centos 7 after some updates

Post by abhijit » 2020/02/07 02:03:22

Tried but it doest not work either. Output is given as below:

[root@localhost abhijit]# yum provides '*/lpinfo'
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: ftp.jaist.ac.jp
* elrepo: ftp.ne.jp
* extras: ftp.jaist.ac.jp
* nux-dextop: mirror.li.nux.ro
* updates: ftp.jaist.ac.jp
1:cups-1.6.3-40.el7.x86_64 : CUPS printing system
Repo : base
Matched from:
Filename : /usr/sbin/lpinfo



[root@localhost abhijit]# yum install 1:cups-1.6.3-40.el7.x86_64
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: ftp.jaist.ac.jp
* elrepo: ftp.ne.jp
* extras: ftp.jaist.ac.jp
* nux-dextop: mirror.li.nux.ro
* updates: ftp.jaist.ac.jp
Resolving Dependencies
--> Running transaction check
---> Package cups.x86_64 1:1.6.3-40.el7 will be installed
--> Processing Dependency: cups-filesystem = 1:1.6.3-40.el7 for package: 1:cups-1.6.3-40.el7.x86_64
--> Processing Dependency: ghostscript-cups for package: 1:cups-1.6.3-40.el7.x86_64
--> Running transaction check
---> Package cups-filesystem.noarch 1:1.6.3-40.el7 will be installed
--> Processing Dependency: cups-filters for package: 1:cups-filesystem-1.6.3-40.el7.noarch
---> Package ghostscript-cups.x86_64 0:9.25-2.el7_7.3 will be installed
--> Running transaction check
---> Package cups-filters.x86_64 0:1.0.35-26.el7_7.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================
Package Arch Version Repository Size
============================================================================================================================
Installing:
cups x86_64 1:1.6.3-40.el7 base 1.3 M
Installing for dependencies:
cups-filesystem noarch 1:1.6.3-40.el7 base 96 k
cups-filters x86_64 1.0.35-26.el7_7.1 updates 336 k
ghostscript-cups x86_64 9.25-2.el7_7.3 updates 61 k

Transaction Summary
============================================================================================================================
Install 1 Package (+3 Dependent packages)

Total download size: 1.8 M
Installed size: 5.6 M
Is this ok [y/d/N]: y
Downloading packages:
(1/4): cups-filters-1.0.35-26.el7_7.1.x86_64.rpm | 336 kB 00:00:00
(2/4): ghostscript-cups-9.25-2.el7_7.3.x86_64.rpm | 61 kB 00:00:00
(3/4): cups-filesystem-1.6.3-40.el7.noarch.rpm | 96 kB 00:00:00
(4/4): cups-1.6.3-40.el7.x86_64.rpm | 1.3 MB 00:00:00
----------------------------------------------------------------------------------------------------------------------------
Total 8.8 MB/s | 1.8 MB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : 1:cups-filesystem-1.6.3-40.el7.noarch 1/4
Installing : cups-filters-1.0.35-26.el7_7.1.x86_64 2/4
Installing : ghostscript-cups-9.25-2.el7_7.3.x86_64 3/4
Installing : 1:cups-1.6.3-40.el7.x86_64 4/4
Verifying : 1:cups-1.6.3-40.el7.x86_64 1/4
Verifying : ghostscript-cups-9.25-2.el7_7.3.x86_64 2/4
Verifying : cups-filters-1.0.35-26.el7_7.1.x86_64 3/4
Verifying : 1:cups-filesystem-1.6.3-40.el7.noarch 4/4

Installed:
cups.x86_64 1:1.6.3-40.el7

Dependency Installed:
cups-filesystem.noarch 1:1.6.3-40.el7 cups-filters.x86_64 0:1.0.35-26.el7_7.1 ghostscript-cups.x86_64 0:9.25-2.el7_7.3

Complete!
[root@localhost abhijit]# yum install hl3170cdwlpr-1.1.2-1.i386.rpm
Loaded plugins: fastestmirror, langpacks
Examining hl3170cdwlpr-1.1.2-1.i386.rpm: hl3170cdwlpr-1.1.2-1.i386
Marking hl3170cdwlpr-1.1.2-1.i386.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package hl3170cdwlpr.i386 0:1.1.2-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================
Package Arch Version Repository Size
============================================================================================================================
Installing:
hl3170cdwlpr i386 1.1.2-1 /hl3170cdwlpr-1.1.2-1.i386 3.2 M

Transaction Summary
============================================================================================================================
Install 1 Package

Total size: 3.2 M
Installed size: 3.2 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : hl3170cdwlpr-1.1.2-1.i386 1/1
Verifying : hl3170cdwlpr-1.1.2-1.i386 1/1

Installed:
hl3170cdwlpr.i386 0:1.1.2-1

Complete!
[root@localhost abhijit]# yum install hl3170cdwcupswrapper-1.1.4-0.i386.rpm
Loaded plugins: fastestmirror, langpacks
Examining hl3170cdwcupswrapper-1.1.4-0.i386.rpm: hl3170cdwcupswrapper-1.1.4-0.i386
Marking hl3170cdwcupswrapper-1.1.4-0.i386.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package hl3170cdwcupswrapper.i386 0:1.1.4-0 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================
Package Arch Version Repository Size
============================================================================================================================
Installing:
hl3170cdwcupswrapper i386 1.1.4-0 /hl3170cdwcupswrapper-1.1.4-0.i386 49 k

Transaction Summary
============================================================================================================================
Install 1 Package

Total size: 49 k
Installed size: 49 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : hl3170cdwcupswrapper-1.1.4-0.i386 1/1
lpinfo: Transport endpoint is not connected
lpadmin -p HL3170CDW -E -v usb://dev/usb/lp0 -P /usr/share/cups/model/Brother/brother_hl3170cdw_printer_en.ppd
lpadmin: Unable to connect to server: Transport endpoint is not connected
Verifying : hl3170cdwcupswrapper-1.1.4-0.i386 1/1

Installed:
hl3170cdwcupswrapper.i386 0:1.1.4-0

Complete!
[root@localhost abhijit]#

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Unable to add hl3170cdw printer in Centos 7 after some updates

Post by TrevorH » 2020/02/07 14:49:27

At a guess, you didn't start cups.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply