Upgrade 42.3 --> 15 can no longer print

(background…) I’ve been working with Linux since the 1990s. At that time, I decided to set my networking up using static IP addresses…and I continued using static IP addresses until I changed ISPs at the beginning of 2019, and now I am using dynamic IPs. DHCP is supposed to be “easy,” (the phrase “what could possibly go wrong?” crosses my mind) and I guess most of the time it is, but changing CUPS was problematic. I was going to upgrade 42.3 to 15 before the upgrade, but decided to first get the new ISP and networking working properly before the upgrade.So, I did get everything working under 42.3, and then took a deep breath and upgraded to 15.

After the upgrade, my desktops connected and everything seemed to work properly except printing. Printing is administered by CUPS, and the settings for CUPS are managed through YAST. No matter what I try, I have not been able to print from my openSUSE box. (note: the Windows pc on the network can print just fine) I’m using the same “.ppd” configuration files that I used with 42.3. Clearly I have not tried the right things.

So, what do I have to do in order to make printing work in OpenSUSE 15? I’ll gladly provide diagnostic information and try anything to get printing to work.

Thanks for any help,

You mention that you’re using DHCP (not uncommon in a LAN), but if the printer is also using a DHCP-assigned address, then you should employ address reservation in the router so that the printer is effectively given a static IP address (reserved only for its use). Anyway, do you know the printer’s assigned address ie Can you ping the printer successfully?

Show us the output from

sudo /usr/sbin/lpinfo -v
lpstat -t

If you have nmap installed, you can scan the entire LAN subnet using something like

nmap 192.168.1.0/24

*Change the subnet to suit your network.

The output should find your printer if it has a valid IP address.

Interesting. Here is the output…all commands run as root except nmap which is run as mark…

mark:~ # lpinfo -v

network socket
network http
network ipps
network https
network ipp
network lpd
network beh
direct hp
network smb
direct parallel:/dev/lp0
network dnssd://Canon%20MF5900%20Series._pdl-datastream._tcp.local/
network socket://192.168.1.158 #

mark:~ # lpstat -t
scheduler is running
system default destination: Canon
device for Canon: http://192.168.1.158
device for Canon_MF5900_UFRII_LT: socket://192.168.1.158:9100
Canon accepting requests since Mon Mar 25 14:09:09 2019
Canon_MF5900_UFRII_LT accepting requests since Mon Apr 1 13:32:11 2019
printer Canon is idle. enabled since Mon Mar 25 14:09:09 2019
printer Canon_MF5900_UFRII_LT is idle. enabled since Mon Apr 1 13:32:11 2019

mark@mark:~> nmap 192.168.1.0/24
Starting Nmap 7.70 ( https://nmap.org ) at 2019-04-01 15:25 EDT
Nmap scan report for FIOS_Quantum_Gateway.fios-router.home (192.168.1.1)
Host is up (0.012s latency).
Not shown: 992 closed ports
PORT STATE SERVICE
22/tcp filtered ssh
53/tcp open domain
80/tcp open http
443/tcp open https
4567/tcp filtered tram
8022/tcp filtered oa-system
8080/tcp open http-proxy
8443/tcp open https-alt

Nmap scan report for Mark.fios-router.home (192.168.1.102)
Host is up (0.0033s latency).
Not shown: 994 closed ports
PORT STATE SERVICE
80/tcp open http
443/tcp open https
8080/tcp open http-proxy
8081/tcp open blackice-icecap
9090/tcp open zeus-admin
9091/tcp open xmltec-xmlmail

Nmap scan report for Merribn.fios-router.home (192.168.1.103)
Host is up (0.0029s latency).
Not shown: 994 closed ports
PORT STATE SERVICE
80/tcp open http
443/tcp open https
8080/tcp open http-proxy
8081/tcp open blackice-icecap
9090/tcp open zeus-admin
9091/tcp open xmltec-xmlmail

Nmap scan report for mark.fios-router.home (192.168.1.155)
Host is up (0.000067s latency).
Not shown: 997 closed ports
PORT STATE SERVICE
22/tcp open ssh
631/tcp open ipp
5901/tcp open vnc-1

Nmap scan report for android-c3606d836487fa3a.fios-router.home (192.168.1.157)
Host is up (0.0038s latency).
All 1000 scanned ports on android-c3606d836487fa3a.fios-router.home (192.168.1.157) are closed

Nmap scan report for Canon0b1c29.fios-router.home (192.168.1.158)
Host is up (0.0014s latency).
Not shown: 997 closed ports
PORT STATE SERVICE
80/tcp open http
515/tcp open printer
9100/tcp open jetdirect

Nmap scan report for RE450.fios-router.home (192.168.1.220)
Host is up (0.0048s latency).
Not shown: 998 closed ports
PORT STATE SERVICE
22/tcp open ssh
80/tcp open http

Nmap done: 256 IP addresses (7 hosts up) scanned in 4.22 seconds

Thanks for any help.

Mark

Funny…I thought that surrounding a block of text with # and # would display the block as code. Doesn’t seem to be working. no big deal.

For future reference, please use CODE tags when posting output to preserve formatting (the ‘#’ button in the forum editor).

Ok, the printer is detected and I note that you have two printer configurations defined in /etc/cups/printers.conf…


network dnssd://Canon%20MF5900%20Series._pdl-datastream._tcp.local/
network socket://192.168.1.158 #

The first URI uses the dnssd backend (relying on Avahi/Bonjour discovery. The second is probably the one you made manually.

The printer is detected as being online and available for printing…

mark:~ # lpstat -t
scheduler is running
system default destination: Canon
device for Canon: http://192.168.1.158
device for Canon_MF5900_UFRII_LT: socket://192.168.1.158:9100
Canon accepting requests since Mon Mar 25 14:09:09 2019
Canon_MF5900_UFRII_LT accepting requests since Mon Apr  1 13:32:11 2019
printer Canon is idle.  enabled since Mon Mar 25 14:09:09 2019
printer Canon_MF5900_UFRII_LT is idle.  enabled since Mon Apr  1 13:32:11 2019

The nmap output confirms that the Canon printer is listening on port 9100 (Raw port used for socket:// printing)

Nmap scan report for Canon0b1c29.fios-router.home (192.168.1.158)
Host is up (0.0014s latency).
Not shown: 997 closed ports
PORT     STATE SERVICE
80/tcp   open  http
515/tcp  open  printer
9100/tcp open  jetdirect

So, this checks out as expected, but if you copied only your PPD across, you’re likely missing the required filters for this printer.

Reinstall the ‘UFR II/UFRII LT Printer Driver for Linux V3.70’ for your printer from the Canon site.

Thanks. I will try that and report back in a day or so.

On Mon, 01 Apr 2019 19:46:03 +0000, MarkNei wrote:

> Funny…I thought that surrounding a block of text with # and # would
> display the block as code. Doesn’t seem to be working. no big deal.

There’s a button in the editor that’s shown as “#” - that adds the
appropriate ‘code’ tags.

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

Sorry, “life got in the way”. I’m back and still trying to configure printing.
I downloaded the latest driver from Cannon site: “linux-UFRII-drv-v331-usen” unpacked and ran install.
Seems that I’m missing a lot of libraries. I tried finding these in yast and couldn’t. Is there a repo (or 4) that I need to add? Here’s the output (sorry: it is a long list):


This installer is recommended for Fedora or Ubuntu distributions that are currently supported as of the release of this installer.

If this installer is run under earlier or later distributions, the installation of additional system libraries may be necessary after driver installation is complete.

Note that an internet connection is required for installation.

Do you want to continue with installation? (y/n) y

#----------------------------------------------------#
# Install Start
#----------------------------------------------------#
Machine Type = x86_64
Package Type = rpm
Package list =  
    ./64-bit_Driver/RPM/cndrvcups-common-3.71-1.x86_64.rpm
    ./64-bit_Driver/RPM/cndrvcups-ufr2-us-3.31-1.x86_64.rpm

#----------------------------------------------------#
# dnf upgrade
#----------------------------------------------------#
libxml2
./install.sh: line 223: dnf: command not found

libxml2.i686
./install.sh: line 223: dnf: command not found

glibc
./install.sh: line 223: dnf: command not found

glibc.i686
./install.sh: line 223: dnf: command not found
                                                                                                                                                                
libstdc++                                                                                                                                                       
./install.sh: line 223: dnf: command not found                                                                                                                  
                                                                                                                                                                
libstdc++.i686                                                                                                                                                  
./install.sh: line 223: dnf: command not found                                                                                                                                                                                                                            
libjpeg-turbo
./install.sh: line 223: dnf: command not found

libjpeg-turbo.i686
./install.sh: line 223: dnf: command not found

beecrypt
./install.sh: line 223: dnf: command not found

beecrypt.i686
./install.sh: line 223: dnf: command not found

beecrypt-devel.i686
./install.sh: line 223: dnf: command not found

libglade2
./install.sh: line 223: dnf: command not found


#----------------------------------------------------#
# dnf install
#----------------------------------------------------#
./install.sh: line 236: dnf: command not found

#----------------------------------------------------#
# Install Package Check
#----------------------------------------------------#
 OK: libxml2

#----------------------------------------------------#
# dnf install
#----------------------------------------------------#
./install.sh: line 236: dnf: command not found

#----------------------------------------------------#
# Install Package Check
#----------------------------------------------------#
** NG: libxml2.i686**

#----------------------------------------------------#
# dnf install
#----------------------------------------------------#
./install.sh: line 236: dnf: command not found

#----------------------------------------------------#
# Install Package Check
#----------------------------------------------------#
 OK: glibc

#----------------------------------------------------#
# dnf install
#----------------------------------------------------#
./install.sh: line 236: dnf: command not found

#----------------------------------------------------#
# Install Package Check
#----------------------------------------------------#
** NG: glibc.i686**

#----------------------------------------------------#
# dnf install
#----------------------------------------------------#
./install.sh: line 236: dnf: command not found

#----------------------------------------------------#
# Install Package Check
#----------------------------------------------------#
 OK: libstdc++

#----------------------------------------------------#
# dnf install
#----------------------------------------------------#
./install.sh: line 236: dnf: command not found

#----------------------------------------------------#
# Install Package Check
#----------------------------------------------------#
** NG: libstdc++.i686**

#----------------------------------------------------#
# dnf install
#----------------------------------------------------#
./install.sh: line 236: dnf: command not found

#----------------------------------------------------#
# Install Package Check
#----------------------------------------------------#
 OK: libjpeg-turbo

#----------------------------------------------------#
# dnf install
#----------------------------------------------------#
./install.sh: line 236: dnf: command not found

#----------------------------------------------------#
# Install Package Check
#----------------------------------------------------#
** NG: libjpeg-turbo.i686**

#----------------------------------------------------#
# dnf install
#----------------------------------------------------#
./install.sh: line 236: dnf: command not found

#----------------------------------------------------#
# Install Package Check
#----------------------------------------------------#
** Replace: beecrypt -> libgcrypt**

#----------------------------------------------------#
# dnf upgrade
#----------------------------------------------------#
libgcrypt
./install.sh: line 223: dnf: command not found


#----------------------------------------------------#
# dnf install
#----------------------------------------------------#
./install.sh: line 236: dnf: command not found

#----------------------------------------------------#
# Install Package Check
#----------------------------------------------------#
 OK: libgcrypt

#----------------------------------------------------#
# dnf install
#----------------------------------------------------#
./install.sh: line 236: dnf: command not found

#----------------------------------------------------#
# Install Package Check
#----------------------------------------------------#
** Replace: beecrypt.i686 -> libgcrypt.i686**

#----------------------------------------------------#
# dnf upgrade
#----------------------------------------------------#
libgcrypt.i686
./install.sh: line 223: dnf: command not found


#----------------------------------------------------#
# dnf install
#----------------------------------------------------#
./install.sh: line 236: dnf: command not found

#----------------------------------------------------#
# Install Package Check
#----------------------------------------------------#
** NG: libgcrypt.i686**

#----------------------------------------------------#
# dnf install
#----------------------------------------------------#
./install.sh: line 236: dnf: command not found

#----------------------------------------------------#
# Install Package Check
#----------------------------------------------------#
** Replace: beecrypt-devel.i686 -> libgcrypt-devel.i686**

#----------------------------------------------------#
# dnf upgrade
#----------------------------------------------------#
libgcrypt-devel.i686
./install.sh: line 223: dnf: command not found


#----------------------------------------------------#
# dnf install
#----------------------------------------------------#
./install.sh: line 236: dnf: command not found

#----------------------------------------------------#
# Install Package Check
#----------------------------------------------------#
** NG: libgcrypt-devel.i686**

#----------------------------------------------------#
# dnf install
#----------------------------------------------------#
./install.sh: line 236: dnf: command not found

#----------------------------------------------------#
# Install Package Check
#----------------------------------------------------#
** NG: libglade2**

Some system libraries could not be installed.
Refer to the online manual for more information.
Do you want to continue with installation? (y/n) n

Thanks for any pointers on where to get the missing packages…

Mark

Your script was written for Fedora and uses the command “dnf”

Open your install script in a text editor that can “find and replace” and replace all dnf instances with zypper.

Or, use sed.

That might be all that’s needed for your install to run successfully but if you need to find missing packages or files, I wrote a Wiki page what steps to take

https://en.opensuse.org/User:Tsu2/Missing_Files_Dependencies

TSU

No need to hack scripts. The easier method is just to navigate to the RPM directory (eg ~/Downloads/linux-UFRII-drv-v370-usen/64-bit_Driver/RPM/) and install the RPM files (cndrvcups-common-4.10-1.x86_64.rpm cndrvcups-ufr2-us-3.70-1.x86_64.rpm, cndrvcups-utility-1.10-1.x86_64.rpm) using the package manager, then configure CUPS using the web interface. In fact, I installed only the cndrvcups-common and cndrvcups-ufr20-us RPMs, and after that the relevant printer models are available to choose from for configuration.

Thank you.

I notice that you mention “linux-UFRII-drv-v370-usen/64-bit_Driver/RPM”. Do you recall where you got the v370 driver file? I could not fine the “v370” file. The file I found is “v331” (downloaded from Canon site).

Much appreciated,
Mark

That version should be fine for your MF5900 model (mentioned in this debian wiki page). I likely downloaded mine from a Canon site while helping a user install and configure for a newer model which is only supported by the 3.70 driver version eg https://www.usa.canon.com/internet/portal/us/home/support/details/printers/laser-single-function/imageclass/color-imageclass-lbp612cdw?tab=drivers_downloads or https://asia.canon/support/imageCLASS%20MF229dw/model