Canon ip7250 can't print from wifi

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
TeoKonte

Canon ip7250 can't print from wifi

Post by TeoKonte »

Hi everyone. I'm new on Linux Mint and i'm trying to solve a problem with my printer in over a week. I have successfully installed my printer which is a canon ip7250 through USB cable and i can print fine. The problem is when i try to print wireless. I have followed the instructions to add a network printer but i always receive an error from cups after the naming of the printer option which says "server error or internal error". Can anyone help?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
ClixTrix

Re: Canon ip7250 can't print from wifi

Post by ClixTrix »

Are you trying to install the printer to your local/home network or are you trying to do Wifi-Direct?
TeoKonte

Re: Canon ip7250 can't print from wifi

Post by TeoKonte »

Hi. Let me explain.
I start the application "printers" from the menu. When the window appears i see my printer which was configured through usb but it's not connected now . I press add button to add new printer. A new window appears called "new printer" and from the "select device" panel i choose "network printer". When the option expands it reveals the name and the ip of my printer. i choose it and i t gives me two more options. "IPP network printer via DNS-SD" and "Driverless IPP(ipp/print)". If i choose the first option (IPP network) it searches for drivers and opens a new window for naming the printer but when i press the apply button i receive a "CUPS Server Error". If i choose the second option (Driverless) it goes to the naming window and when i press the apply button i receive the same CUPS server error.
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Canon ip7250 can't print from wifi

Post by brian_p »

What name are you trying to give the printer?
--
Brian.
TeoKonte

Re: Canon ip7250 can't print from wifi

Post by TeoKonte »

i leave the default name that is suggested by the app.
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Canon ip7250 can't print from wifi

Post by brian_p »

I suggest another one. Try test7250.
--
Brian.
TeoKonte

Re: Canon ip7250 can't print from wifi

Post by TeoKonte »

Even though i am pretty sure that the naming of the printer isn't the problem here, i gave it a go. The same error message appeared.
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Canon ip7250 can't print from wifi

Post by brian_p »

TeoKonte wrote: Sun Jan 27, 2019 3:55 pm Even though i am pretty sure that the naming of the printer isn't the problem here, i gave it a go. The same error message appeared.
You were the one who said
....but i always receive an error from cups after the naming of the printer option...
Would you care to indicate where the issue resides?
--
Brian.
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Canon ip7250 can't print from wifi

Post by brian_p »

Would you care to indicate where the issue resides?
Additionally:

The iP7250 has an AirPrint service. It should be shown in the Printers app and by

Code: Select all

avahi-browse -art
--
Brian.
cantfind

Re: Canon ip7250 can't print from wifi

Post by cantfind »

I have the same problem:

avahi-browse -art

output is:

Code: Select all

$ avahi-browse -art
+ wlp5s0 IPv6 Canon iP7200 series                           Web Site             local
+ wlp5s0 IPv4 Canon iP7200 series                           Web Site             local
+ wlp5s0 IPv6 Canon iP7200 series                           Internet Printer     local
+ wlp5s0 IPv4 Canon iP7200 series                           Internet Printer     local
+ wlp5s0 IPv6 Canon iP7200 series                           _canon-bjnp1._tcp    local
+ wlp5s0 IPv4 Canon iP7200 series                           _canon-bjnp1._tcp    local
+ wlp5s0 IPv6 Canon iP7200 series                           UNIX Printer         local
+ wlp5s0 IPv4 Canon iP7200 series                           UNIX Printer         local
= wlp5s0 IPv6 Canon iP7200 series                           Internet Printer     local
   hostname = [411824000000.local]
   address = [fe80::9e32:ceff:fe41:1824]
   port = [631]
   txt = ["mac=9C:32:CE:41:18:24" "kind=document,envelope,photo" "PaperMax=legal-A4" "Fax=F" "Scan=F" "Duplex=T" "Color=T" "URF=V1.4,CP1,PQ4-5,RS600,SRGB24,W8,OB9,OFU0,DM3,IS20-21" "UUID=00000000-0000-1000-8000-9C32CE411824" "usb_CMD=URF" "usb_MDL=iP7200 series" "usb_MFG=Canon" "adminurl=http://411824000000.local./mainmenu.html" "pdl=application/octet-stream,image/urf,image/jpeg" "product=(Canon iP7200 series)" "ty=Canon iP7200 series" "priority=15" "qtotal=1" "note=" "rp=ipp/print" "txtvers=1"]
= wlp5s0 IPv4 Canon iP7200 series                           Internet Printer     local
   hostname = [411824000000.local]
   address = [192.168.2.221]
   port = [631]
   txt = ["mac=9C:32:CE:41:18:24" "kind=document,envelope,photo" "PaperMax=legal-A4" "Fax=F" "Scan=F" "Duplex=T" "Color=T" "URF=V1.4,CP1,PQ4-5,RS600,SRGB24,W8,OB9,OFU0,DM3,IS20-21" "UUID=00000000-0000-1000-8000-9C32CE411824" "usb_CMD=URF" "usb_MDL=iP7200 series" "usb_MFG=Canon" "adminurl=http://411824000000.local./mainmenu.html" "pdl=application/octet-stream,image/urf,image/jpeg" "product=(Canon iP7200 series)" "ty=Canon iP7200 series" "priority=15" "qtotal=1" "note=" "rp=ipp/print" "txtvers=1"]
= wlp5s0 IPv6 Canon iP7200 series                           _canon-bjnp1._tcp    local
   hostname = [411824000000.local]
   address = [fe80::9e32:ceff:fe41:1824]
   port = [8611]
   txt = ["mac=9C:32:CE:41:18:24" "Fax=F" "Scan=F" "Duplex=T" "Color=T" "UUID=00000000-0000-1000-8000-9C32CE411824" "usb_CMD=" "usb_MDL=iP7200 series" "usb_MFG=Canon" "adminurl=http://411824000000.local." "pdl=application/octet-stream" "product=(Canon iP7200 series)" "ty=Canon iP7200 series" "priority=20" "qtotal=1" "note=" "rp=auto" "txtvers=1"]
= wlp5s0 IPv4 Canon iP7200 series                           _canon-bjnp1._tcp    local
   hostname = [411824000000.local]
   address = [192.168.2.221]
   port = [8611]
   txt = ["mac=9C:32:CE:41:18:24" "Fax=F" "Scan=F" "Duplex=T" "Color=T" "UUID=00000000-0000-1000-8000-9C32CE411824" "usb_CMD=" "usb_MDL=iP7200 series" "usb_MFG=Canon" "adminurl=http://411824000000.local." "pdl=application/octet-stream" "product=(Canon iP7200 series)" "ty=Canon iP7200 series" "priority=20" "qtotal=1" "note=" "rp=auto" "txtvers=1"]
= wlp5s0 IPv4 Canon iP7200 series                           UNIX Printer         local
   hostname = [411824000000.local]
   address = [192.168.2.221]
   port = [515]
   txt = ["mac=9C:32:CE:41:18:24" "Fax=F" "Scan=F" "Duplex=T" "Color=T" "UUID=00000000-0000-1000-8000-9C32CE411824" "usb_CMD=" "usb_MDL=iP7200 series" "usb_MFG=Canon" "adminurl=http://411824000000.local." "pdl=application/octet-stream" "product=(Canon iP7200 series)" "ty=Canon iP7200 series" "priority=60" "qtotal=1" "note=" "rp=auto" "txtvers=1"]
= wlp5s0 IPv6 Canon iP7200 series                           UNIX Printer         local
   hostname = [411824000000.local]
   address = [192.168.2.221]
   port = [515]
   txt = ["mac=9C:32:CE:41:18:24" "Fax=F" "Scan=F" "Duplex=T" "Color=T" "UUID=00000000-0000-1000-8000-9C32CE411824" "usb_CMD=" "usb_MDL=iP7200 series" "usb_MFG=Canon" "adminurl=http://411824000000.local." "pdl=application/octet-stream" "product=(Canon iP7200 series)" "ty=Canon iP7200 series" "priority=60" "qtotal=1" "note=" "rp=auto" "txtvers=1"]
= wlp5s0 IPv6 Canon iP7200 series                           Web Site             local
   hostname = [411824000000.local]
   address = [192.168.2.221]
   port = [80]
   txt = ["mac=9C:32:CE:41:18:24" "txtvers=1"]
= wlp5s0 IPv4 Canon iP7200 series                           Web Site             local
   hostname = [411824000000.local]
   address = [192.168.2.221]
   port = [80]
   txt = ["mac=9C:32:CE:41:18:24" "txtvers=1"]
+ wlp5s0 IPv4 RT-AC68U-A910 [b0:6e:bf:3e:a9:10]             Workstation          local
= wlp5s0 IPv4 RT-AC68U-A910 [b0:6e:bf:3e:a9:10]             Workstation          local
   hostname = [RT-AC68U-A910.local]
   address = [192.168.2.1]
   port = [9]
   txt = []
There's a CUPS driver here: https://www.canon-europe.com/support/co ... N&os=LINUX

But when running install.sh I get:

Code: Select all

==================================================

Canon Inkjet Printer Driver
Version 3.80
Copyright CANON INC. 2001-2012
All Rights Reserved.

==================================================
Command executed = sudo dpkg -iG ./packages/cnijfilter-common_3.80-1_amd64.deb
Selecting previously unselected package cnijfilter-common.
(Reading database ... 500041 files and directories currently installed.)
Preparing to unpack .../cnijfilter-common_3.80-1_amd64.deb ...
Unpacking cnijfilter-common (3.80-1) ...
Setting up cnijfilter-common (3.80-1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Command executed = sudo dpkg -iG ./packages/cnijfilter-ip7200series_3.80-1_amd64.deb
Selecting previously unselected package cnijfilter-ip7200series.
(Reading database ... 500059 files and directories currently installed.)
Preparing to unpack .../cnijfilter-ip7200series_3.80-1_amd64.deb ...
Unpacking cnijfilter-ip7200series (3.80-1) ...
dpkg: dependency problems prevent configuration of cnijfilter-ip7200series:
 cnijfilter-ip7200series depends on libpango1.0-0 (>= 1.12.3); however:
  Package libpango1.0-0 is not installed.
 cnijfilter-ip7200series depends on libpng12-0 (>= 1.2.8rel); however:
  Package libpng12-0 is not installed.
 cnijfilter-ip7200series depends on libtiff4; however:
  Package libtiff4 is not installed.

dpkg: error processing package cnijfilter-ip7200series (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 cnijfilter-ip7200series
Command executed = sudo dpkg -P cnijfilter-ip7200series
(Reading database ... 500249 files and directories currently installed.)
Removing cnijfilter-ip7200series (3.80-1) ...
Purging configuration files for cnijfilter-ip7200series (3.80-1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Command executed = sudo dpkg -P cnijfilter-common
(Reading database ... 500058 files and directories currently installed.)
Removing cnijfilter-common (3.80-1) ...
Purging configuration files for cnijfilter-common (3.80-1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
There are no available packages by these names.. I'm going to try the source option.

Edit: the source version gives me trouble:

Installed prerequisits:

Code: Select all

sudo apt install autoconf automake libopt-dev libtiff-dev libpng-dev 
Then

Code: Select all

cd cnijfilter
./INSTALL 
failed with

Code: Select all

./INSTALL: line 1: To: command not found
./INSTALL: line 3: syntax error near unexpected token `newline'
./INSTALL: line 3: `        ./autogen.sh --program-suffix=<Printer Model Name>'
But

Code: Select all

$ ./autogen.sh --program-suffix=IP7250
worked - now

Code: Select all

make
failed with

Code: Select all

In file included from /usr/include/pngconf.h:50:0,
                 from /usr/include/png.h:366,
                 from bjfimage.c:42:
bjfimage.c:1577:19: error: dereferencing pointer to incomplete type ‘png_struct {aka struct png_struct_def}’
  if (setjmp (png_p->jmpbuf))
Last edited by cantfind on Fri Feb 08, 2019 8:32 am, edited 1 time in total.
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Canon ip7250 can't print from wifi

Post by brian_p »


= wlp5s0 IPv6 Canon iP7200 series Internet Printer local
hostname = [411824000000.local]
address = [fe80::9e32:ceff:fe41:1824]
port = [631]
txt = ["mac=9C:32:CE:41:18:24" "kind=document,envelope,photo" "PaperMax=legal-A4" "Fax=F" "Scan=F" "Duplex=T" "Color=T" "URF=V1.4,CP1,PQ4-5,RS600,SRGB24,W8,OB9,OFU0,DM3,IS20-21" "UUID=00000000-0000-1000-8000-9C32CE411824" "usb_CMD=URF" "usb_MDL=iP7200 series" "usb_MFG=Canon" "adminurl=http://411824000000.local./mainmenu.html" "pdl=application/octet-stream,image/urf,image/jpeg" "product=(Canon iP7200 series)" "ty=Canon iP7200 series" "priority=15" "qtotal=1" "note=" "rp=ipp/print" "txtvers=1"]
The "URF=" in the TXT record indicates an AirPrint device and makes the device a good fit for a driverless printing system on Mint 19.1. You should not require the Canon drivers in order to print.

What does

Code: Select all

lpstat -l -e
show?
--
Brian.
cantfind

Re: Canon ip7250 can't print from wifi

Post by cantfind »

Code: Select all

$ lpstat -l -e
Canon_iP7200_series network none ipp://Canon%20iP7200%20series._ipp._tcp.local/
Seems that Canon does require a driver even for airprint: viewtopic.php?t=275030
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Canon ip7250 can't print from wifi

Post by brian_p »

cantfind wrote: Fri Feb 08, 2019 8:18 am

Code: Select all

$ lpstat -l -e
Canon_iP7200_series network none ipp://Canon%20iP7200%20series._ipp._tcp.local/
That's your printer, isn't it? It is being seen by CUPS. Let's see if we can print to it:

Code: Select all

lp -d Canon_iP7200_series /etc/nsswitch.conf
--
Brian.
cantfind

Re: Canon ip7250 can't print from wifi

Post by cantfind »

Great! it prints now, and I can see it the printers panel (where it wasn't previously) - I wonder what's changed?

By the way, if I enable the firewall, I can no longer see the printer - what exceptions to I need to add?
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Canon ip7250 can't print from wifi

Post by brian_p »

Great! it prints now, and I can see it the printers panel (where it wasn't previously) - I wonder what's changed?
Which printer dialog do you see it in? That of Firefox? What name does it have?

Please, give the output of

Code: Select all

lpstat -a
By the way, if I enable the firewall, I can no longer see the printer - what exceptions to I need to add?
I do not use a firewall, so am not certain. Port 5353 is for mDNS, used by the printer to advertise itself.
--
Brian.
cantfind

Re: Canon ip7250 can't print from wifi

Post by cantfind »

Code: Select all

$ lpstat -a
lpstat: No destinations added.
I was too quick to conclude that it's working :(

the

Code: Select all

lp -d Canon_iP7200_series /etc/nsswitch.conf
command works, and while it prints, I can see the printer in the "Printers" control panel, and in firefox, etc.

But once it's done printing the printer is gone from these panels, and I can't add it back..

I've added some images to better show the situation: https://imgur.com/a/KdaruZP

While it prints I get

Code: Select all

lpstat -a
Canon_iP7200_series accepting requests since Sat 09 Feb 2019 00:21:14 IST
Sometimes it doesn't disappear right away - for now I can still see it in the Printers panel, a minute or two after that print command, but firefox is still stuck on getting information. Chrome sees it fine, though - but once I try to print to it - it doesn't do anything, the printer queue is shown as empty from the Mint Printer panel, and trying to open the printer properties from the Mint Printer panel get me an error message: "There was an error during CUPS operation: client-error-not-found"

Edit: I can print from Chromium right after the command line print, and I can see it in the queue, but after a minute or two, I can no longer print from Chromium (or from anywhere except for the CLI), even though it shows the printer in the application's dialog, since I assigned it as default from the Mint Printers panel - and that queue history is gone until I print using the CLI, and then the print job appears with all the previous jobs.

I was able to add the printer on my Mint 17.3 system and it works properly there, so it seems to be a regression in the more recent system.
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Canon ip7250 can't print from wifi

Post by brian_p »

cantfind wrote: Fri Feb 08, 2019 6:11 pm

Code: Select all

$ lpstat -a
lpstat: No destinations added.
I was too quick to conclude that it's working :(

the

Code: Select all

lp -d Canon_iP7200_series /etc/nsswitch.conf
command works, and while it prints, I can see the printer in the "Printers" control panel, and in firefox, etc.

But once it's done printing the printer is gone from these panels, and I can't add it back..
Of course there is a way to add it back!

Do

Code: Select all

lp -d Canon_iP7200_series /etc/nsswitch.conf
again to make it visible again in the Firefox dialog. I bet the printer still remains visible with

Code: Select all

lpstat -e
But rather than an explanation (which can come later), here is a solution.

Do

Code: Select all

lpadmin -p ip7200 -v ipp://Canon%20iP7200%20series._ipp._tcp.local/ -E -m everywhere
This permanent ip7200 queue should be visible in Firefox.
--
Brian.
cantfind

Re: Canon ip7250 can't print from wifi

Post by cantfind »

Code: Select all

$ lpadmin -p ip7200 -v ipp://Canon%20iP7200%20series._ipp._tcp.local/ -E -m everywhere
lpadmin: Unable to create PPD file: No such file or directory
It added a printer with a /dev/null URI...

But then I tried this:

In the Printers panel, choose ipp printer (instead of clicking iP2700 detected printer, which is what I've done previously), then use ipp://Canon%20iP7200%20series._ipp._tcp.local as device URI, and choose the printer manually: Canon->iP2700 Series - there are two optional drivers: "driverless, cups-filters (recommended)" and "CUPS+Gutenprint" - the recommended option ends up with the CUPS internal error which I was used to seeing - but the "CUPS+Gutenberg" (which is what I chose for the Mint 17.3 installation) worked! Now I can print, and it's not disappearing!

So I guess what was wrong with the GUI process of adding the printer is that it had two optional drivers, and it chose the bad one, which was flagged "recommended".

Although it's still not ideal - I see that my resolution is limited to 600dpi, but the printer is supposed to be able to print with a higher resolution...
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Canon ip7250 can't print from wifi

Post by brian_p »

cantfind wrote: Fri Feb 08, 2019 6:11 pm

Code: Select all

$ lpstat -a
lpstat: No destinations added.
I was too quick to conclude that it's working :(
It does work as intended but you have been led off the straight and narrow by the print dialog in Firefox (see below).
the

Code: Select all

lp -d Canon_iP7200_series /etc/nsswitch.conf
command works, and while it prints, I can see the printer in the "Printers" control panel, and in firefox, etc.

But once it's done printing the printer is gone from these panels, and I can't add it back..
A new feature of CUPS. But the printer can be added back to the dialog by printing to it again.

Code: Select all

lpstat -e
enumerates (lists) the printer. Only when you print to it does it establish a local, temporary queue. We know this because

Code: Select all

lpstat -a
gives the non-empty output shown below.
I've added some images to better show the situation: https://imgur.com/a/KdaruZP

While it prints I get

Code: Select all

lpstat -a
Canon_iP7200_series accepting requests since Sat 09 Feb 2019 00:21:14 IST
There you are. This is the temporary queue.
Sometimes it doesn't disappear right away - for now I can still see it in the Printers panel, a minute or two after that print command, but firefox is still stuck on getting information. Chrome sees it fine, though - but once I try to print to it - it doesn't do anything, the printer queue is shown as empty from the Mint Printer panel, and trying to open the printer properties from the Mint Printer panel get me an error message: "There was an error during CUPS operation: client-error-not-found"
The temporary queue exists for a minute and then disappears. The 'lpstat -a' output is now empty. The printer will still be enumerated by 'lpstat -e', waiting to be printed to.

Firefox enumerates the printer too (independently of CUPS) and lists it as "print". The naming is a bug in the GTK dialog which has been there for years. "print" doesn't work; that is also a bug in the GTK dialog which has been there for years. Chrome, which I do not use, appears to be subject to a similar bug.

The behaviour of Firefox is not a bug in CUPS. In fact, its print dialog doesn't even use CUPS to enumerate the printer. You can verify this with

Code: Select all

systemctl stop cups
The "print" entry is still shown. (BTW, all of this is in the context of Firefox enumerating a remote print queue or printer, not a local queue).

To continue the fun, look at the print dialog of LibreOffice. Unlike the GTK dialog, the LibreOffice one consults CUPS. What is seen there is what CUPS sees, so it will enumerate your printer correctly and a temporary queue will be formed (as it was with the CLI command) when the entry is printed to.
I was able to add the printer on my Mint 17.3 system and it works properly there, so it seems to be a regression in the more recent system.
Not a regression but simply changes to the printing system accomodating modern printer technology. Some users have difficulties adjusting to them.
--
Brian.
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Canon ip7250 can't print from wifi

Post by brian_p »

cantfind wrote: Fri Feb 08, 2019 8:18 am

Code: Select all

$ lpstat -l -e
Canon_iP7200_series network none ipp://Canon%20iP7200%20series._ipp._tcp.local/
Seems that Canon does require a driver even for airprint: viewtopic.php?t=275030
Unsubstantiated and not backed up by your avahi-browse output. Additionally, you printed from the CLI with

Code: Select all

lp -d ......
and said
Great! it prints now, and I can see it the printers panel (where it wasn't previously) - I wonder what's changed?
And not a Canon friver in sight!
--
Brian.
Locked

Return to “Printers & Scanners”