[Touch-packages] [Bug 1988583] Re: ubuntu 18.04 cups network printer not working

2022-09-06 Thread Terrence Buckey
added information, the gui is seeing a canon printer in one of the
"adds", it does not see any network printer if you you a find network
printer.

Using the "Add" at the top of the printer gui, I was able to add the
Canon printer, and printer.conf has all the info.

The gui adds a MG3600 printer instead of the Canon_MG3600_series that
the qt qpinfo sees.

Looks like none of the command line commands can be used to add default
printer which breaks my embedded qt app.

Thanks,

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to cups in Ubuntu.
https://bugs.launchpad.net/bugs/1988583

Title:
  ubuntu 18.04 cups network printer not working

Status in cups package in Ubuntu:
  New

Bug description:
  all debug info from the ubuntu cup help page looks correct except that
  none of the snmp command work.

   netstat -rn
  Kernel IP routing table
  Destination Gateway Genmask Flags   MSS Window  irtt Iface
  0.0.0.0 192.168.1.254   0.0.0.0 UG0 0  0 wlo1
  10.0.0.0192.168.168.54  255.255.0.0 UG0 0  0 ppp0
  10.0.0.00.0.0.0 255.255.0.0 U 0 0  0 eno2
  66.196.209.178  192.168.1.254   255.255.255.255 UGH   0 0  0 wlo1
  169.254.0.0 0.0.0.0 255.255.0.0 U 0 0  0 eno2
  172.16.0.0  192.168.168.54  255.255.0.0 UG0 0  0 ppp0
  192.0.2.1   0.0.0.0 255.255.255.255 UH0 0  0 ppp0
  192.168.1.0 0.0.0.0 255.255.255.0   U 0 0  0 wlo1
  192.168.1.254   0.0.0.0 255.255.255.255 UH0 0  0 wlo1
  tbuckley@tbuckley-OptiPlex-7070:/mnt/sda/tbuckley/imxDevopment/sources$ ping 
1892.168.1.102
  ^C
  tbuckley@tbuckley-OptiPlex-7070:/mnt/sda/tbuckley/imxDevopment/sources$ ping 
192.168.1.102
  PING 192.168.1.102 (192.168.1.102) 56(84) bytes of data.
  64 bytes from 192.168.1.102: icmp_seq=1 ttl=64 time=50.6 ms
  64 bytes from 192.168.1.102: icmp_seq=2 ttl=64 time=5.60 ms
  64 bytes from 192.168.1.102: icmp_seq=3 ttl=64 time=5.75 ms
  ^C
  --- 192.168.1.102 ping statistics ---
  3 packets transmitted, 3 received, 0% packet loss, time 2003ms
  rtt min/avg/max/mdev = 5.603/20.676/50.675/21.212 ms
  tbuckley@tbuckley-OptiPlex-7070:/mnt/sda/tbuckley/imxDevopment/sources$ nmap 
192.168.1.102

  Starting Nmap 7.60 ( https://nmap.org ) at 2022-09-02 10:11 CDT
  Nmap scan report for 192.168.1.102
  Host is up (0.035s latency).
  Not shown: 996 closed ports
  PORTSTATE SERVICE
  80/tcp  open  http
  443/tcp open  https
  515/tcp open  printer
  631/tcp open  ipp

  lpinfo -v gives
  network ipp
  file cups-brf:/
  network https
  network beh
  serial serial:/dev/ttyS0?baud=115200
  serial serial:/dev/ttyS4?baud=115200
  serial serial:/dev/ttyUSB0?baud=230400
  serial serial:/dev/ttyUSB1?baud=230400
  serial serial:/dev/ttyUSB2?baud=230400
  network lpd
  network http
  direct hp
  network socket
  network ipps
  direct hpfax
  network 
dnssd://Canon%20MG3600%20series._ipp._tcp.local/?uuid=--1000-8000-F4A997389B3C
  network ipp://389B3C00.local:631/ipp/print
  network cnijbe2://Canon/?port=net=F4-A9-97-38-9B-3C

  lpoptions -d Canon_MG3600_series
  device-uri=ipps://Canon%20MG3600%20series._ipps._tcp.local/ 
printer-info='Canon MG3600 series' printer-location 
printer-make-and-model='Canon MG3600 series' printer-type=83890204
  tbuckley@tbuckley-OptiPlex-7070:/tmp$ lpoptions
  device-uri=ipps://Canon%20MG3600%20series._ipps._tcp.local/ 
printer-info='Canon MG3600 series' printer-location 
printer-make-and-model='Canon MG3600 series' printer-type=83890204
  tbuckley@tbuckley-OptiPlex-7070:/tmp$ lpoptions -l
  lpoptions: Unable to get PPD file for Canon_MG3600_series: The printer or 
class does not exist.
  tbuckley@tbuckley-OptiPlex-7070:/tmp$ lpq
  lpq: Error - no default destination available.
  tbuckley@tbuckley-OptiPlex-7070:/tmp$ 

  this use to work but now it seems that cups is not setting the default
  printer using lpoption or something is failing in the setup.

  This is happening on a product and on my person ubuntu 18.04 home
  machine

  Thanks,
  Terry

  972-814-9422(c)

  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: cups 2.2.7-1ubuntu2.9
  ProcVersionSignature: Ubuntu 5.4.0-124.140~18.04.1-generic 5.4.195
  Uname: Linux 5.4.0-124-generic x86_64
  ApportVersion: 2.20.9-0ubuntu7.28
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  Date: Fri Sep  2 10:13:02 2022
  DistributionChannelDescriptor:
   # This is the distribution channel descriptor for the OEM CDs
   # For more information see 
http://wiki.ubuntu.com/DistributionChannelDescriptor
   canonical-oem-somerville-bionic-amd64-20180608-47+bison-elk-cougar-mlk+X53
  InstallationDate: Installed on 2019-10-16 (1051 days ago)
  InstallationMedia: Ubuntu 18.04 "Bionic" - Build amd64 LIVE Binary 
20180608-09:38
  Lpstat:
   

[Touch-packages] [Bug 1988583] Re: ubuntu 18.04 cups network printer not working

2022-09-02 Thread Terrence Buckey
also seems that /etc/cups/printer.conf is not being populated with Canon
printer info.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to cups in Ubuntu.
https://bugs.launchpad.net/bugs/1988583

Title:
  ubuntu 18.04 cups network printer not working

Status in cups package in Ubuntu:
  New

Bug description:
  all debug info from the ubuntu cup help page looks correct except that
  none of the snmp command work.

   netstat -rn
  Kernel IP routing table
  Destination Gateway Genmask Flags   MSS Window  irtt Iface
  0.0.0.0 192.168.1.254   0.0.0.0 UG0 0  0 wlo1
  10.0.0.0192.168.168.54  255.255.0.0 UG0 0  0 ppp0
  10.0.0.00.0.0.0 255.255.0.0 U 0 0  0 eno2
  66.196.209.178  192.168.1.254   255.255.255.255 UGH   0 0  0 wlo1
  169.254.0.0 0.0.0.0 255.255.0.0 U 0 0  0 eno2
  172.16.0.0  192.168.168.54  255.255.0.0 UG0 0  0 ppp0
  192.0.2.1   0.0.0.0 255.255.255.255 UH0 0  0 ppp0
  192.168.1.0 0.0.0.0 255.255.255.0   U 0 0  0 wlo1
  192.168.1.254   0.0.0.0 255.255.255.255 UH0 0  0 wlo1
  tbuckley@tbuckley-OptiPlex-7070:/mnt/sda/tbuckley/imxDevopment/sources$ ping 
1892.168.1.102
  ^C
  tbuckley@tbuckley-OptiPlex-7070:/mnt/sda/tbuckley/imxDevopment/sources$ ping 
192.168.1.102
  PING 192.168.1.102 (192.168.1.102) 56(84) bytes of data.
  64 bytes from 192.168.1.102: icmp_seq=1 ttl=64 time=50.6 ms
  64 bytes from 192.168.1.102: icmp_seq=2 ttl=64 time=5.60 ms
  64 bytes from 192.168.1.102: icmp_seq=3 ttl=64 time=5.75 ms
  ^C
  --- 192.168.1.102 ping statistics ---
  3 packets transmitted, 3 received, 0% packet loss, time 2003ms
  rtt min/avg/max/mdev = 5.603/20.676/50.675/21.212 ms
  tbuckley@tbuckley-OptiPlex-7070:/mnt/sda/tbuckley/imxDevopment/sources$ nmap 
192.168.1.102

  Starting Nmap 7.60 ( https://nmap.org ) at 2022-09-02 10:11 CDT
  Nmap scan report for 192.168.1.102
  Host is up (0.035s latency).
  Not shown: 996 closed ports
  PORTSTATE SERVICE
  80/tcp  open  http
  443/tcp open  https
  515/tcp open  printer
  631/tcp open  ipp

  lpinfo -v gives
  network ipp
  file cups-brf:/
  network https
  network beh
  serial serial:/dev/ttyS0?baud=115200
  serial serial:/dev/ttyS4?baud=115200
  serial serial:/dev/ttyUSB0?baud=230400
  serial serial:/dev/ttyUSB1?baud=230400
  serial serial:/dev/ttyUSB2?baud=230400
  network lpd
  network http
  direct hp
  network socket
  network ipps
  direct hpfax
  network 
dnssd://Canon%20MG3600%20series._ipp._tcp.local/?uuid=--1000-8000-F4A997389B3C
  network ipp://389B3C00.local:631/ipp/print
  network cnijbe2://Canon/?port=net=F4-A9-97-38-9B-3C

  lpoptions -d Canon_MG3600_series
  device-uri=ipps://Canon%20MG3600%20series._ipps._tcp.local/ 
printer-info='Canon MG3600 series' printer-location 
printer-make-and-model='Canon MG3600 series' printer-type=83890204
  tbuckley@tbuckley-OptiPlex-7070:/tmp$ lpoptions
  device-uri=ipps://Canon%20MG3600%20series._ipps._tcp.local/ 
printer-info='Canon MG3600 series' printer-location 
printer-make-and-model='Canon MG3600 series' printer-type=83890204
  tbuckley@tbuckley-OptiPlex-7070:/tmp$ lpoptions -l
  lpoptions: Unable to get PPD file for Canon_MG3600_series: The printer or 
class does not exist.
  tbuckley@tbuckley-OptiPlex-7070:/tmp$ lpq
  lpq: Error - no default destination available.
  tbuckley@tbuckley-OptiPlex-7070:/tmp$ 

  this use to work but now it seems that cups is not setting the default
  printer using lpoption or something is failing in the setup.

  This is happening on a product and on my person ubuntu 18.04 home
  machine

  Thanks,
  Terry

  972-814-9422(c)

  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: cups 2.2.7-1ubuntu2.9
  ProcVersionSignature: Ubuntu 5.4.0-124.140~18.04.1-generic 5.4.195
  Uname: Linux 5.4.0-124-generic x86_64
  ApportVersion: 2.20.9-0ubuntu7.28
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  Date: Fri Sep  2 10:13:02 2022
  DistributionChannelDescriptor:
   # This is the distribution channel descriptor for the OEM CDs
   # For more information see 
http://wiki.ubuntu.com/DistributionChannelDescriptor
   canonical-oem-somerville-bionic-amd64-20180608-47+bison-elk-cougar-mlk+X53
  InstallationDate: Installed on 2019-10-16 (1051 days ago)
  InstallationMedia: Ubuntu 18.04 "Bionic" - Build amd64 LIVE Binary 
20180608-09:38
  Lpstat:
   device for SMT300i: bluetooth://00150ee747b7
   device for Woosim-WSP-i450: bluetooth://00150ee8b0a7
  MachineType: Dell Inc. OptiPlex 7070
  PpdFiles:
   Error: command ['fgrep', '-H', '*NickName', '/etc/cups/ppd/SMT300i.ppd', 
'/etc/cups/ppd/Woosim-WSP-i450.ppd'] failed with exit code 2: grep: 
/etc/cups/ppd/SMT300i.ppd: Permission denied
   grep: /etc/cups/ppd/Woosim-WSP-i450.ppd: Permission