[Desktop-packages] [Bug 1397750] Re: Not able to install packages using the PackageKit D-Bus API

2015-09-29 Thread Sebastien Bacher
that has been fixed in
https://launchpad.net/ubuntu/+source/aptdaemon/1.1.1+bzr982-0ubuntu9

** Changed in: aptdaemon (Ubuntu)
   Status: New => Fix Released

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to system-config-printer in Ubuntu.
https://bugs.launchpad.net/bugs/1397750

Title:
  Not able to install packages using the PackageKit D-Bus API

Status in aptdaemon package in Ubuntu:
  Fix Released
Status in system-config-printer package in Ubuntu:
  Fix Released
Status in aptdaemon source package in Utopic:
  New
Status in system-config-printer source package in Utopic:
  Fix Released

Bug description:
  I am on Ubuntu Utopic (14.10) and want to do the following, preferably
  with a Python script.

  I want to install a printer driver package from Epson (which is
  available as both DEB and RPM) through its apt or yum repository so that
  future updates get installed automatically through the distro's update
  mechanism. I also want to assure by means of a key fingerprint that
  repository and package are really from Epson.

  The package name for example is

  epson-inkjet-printer-escpr

  The key fingerprint is

  E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56

  and the Debian package repository is

  deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main

  This data is polled from OpenPrinting:

  
https://www.openprinting.org/query.cgi?moreinfo=1=1=0=amd64=1=0=0=1=deb=0=xml=drivers=MFG:EPSON;MDL
  :EP-801A%20Series;DES:EPSON%20EP-801A%20Series;CLS:PRINTER;

  One can replace the packagesystem=deb in the URL by packagesystem=rpm
  for RPM-based distros.

  Now I run a script of system-config-printer,
  /usr/share/system-config-printer/install-printerdriver.py via the command

  install-printerdriver 'epson-inkjet-printer-escpr' 'deb
  http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main'
  'E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56'

  Or by pasting the commands at the python prompt:

  till@till-twist:~$ python3
  Python 3.4.2 (default, Oct  8 2014, 13:08:17) 
  [GCC 4.9.1] on linux
  Type "help", "copyright", "credits" or "license" for more information.
  >>> from gi.repository import GLib, PackageKitGlib
  >>> import sys
  >>> def progress(progress, type, user_data):
  ...pass
  ... 
  >>> package = 'epson-inkjet-printer-escpr'
  >>> repo = 'deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 
main'
  >>> repo_gpg_id = 'E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56'
  >>> pk = PackageKitGlib.Client()
  >>> res = pk.install_signature(PackageKitGlib.SigTypeEnum.GPG, repo_gpg_id, 
'', None, progress, None)
  >>> res.get_exit_code()
  
  >>> res = pk.resolve(PackageKitGlib.FilterEnum.NONE, [package], None, lambda 
p, t, d: True, None)
  Traceback (most recent call last):
File "", line 1, in 
  GLib.Error: pk_client_error: Package name epson-inkjet-printer-escpr could 
not be resolved. (263)
  >>> res = pk.repo_enable(repo, True, None, progress, None)
  >>> res = pk.refresh_cache(False, None, progress, None)
  >>> res = pk.resolve(PackageKitGlib.FilterEnum.NONE, [package], None, lambda 
p, t, d: True, None)
  >>> package_ids = res.get_package_array()
  >>> package_id = package_ids[0].get_id()
  >>> package_id
  'epson-inkjet-printer-escpr;1.4.1-1lsb3.2;amd64;printdriver'
  >>> package_ids[0].get_info() & PackageKitGlib.InfoEnum.INSTALLED
  0
  >>> res = pk.install_packages(True, [package_id], None, progress, None)
  Traceback (most recent call last):
File "", line 1, in 
  GLib.Error: pk_client_error: The version 1.4.1-1lsb3.2/printdriver of 
epson-inkjet-printer-escpr isn't available. (263)
  >>> res = pk.install_packages(True, 
['epson-inkjet-printer-escpr;1.4.1-1lsb3.2;amd64;'], None, progress, None)
  >>> res = pk.get_files([package_id], None, progress, None)
  >>> files = res.get_files_array()
  >>>

  The problem is that the step of actually installing the package ("res
  = pk.install_packages(..)") errors. It says:

  The version 1.4.1-1lsb3.2/printdriver of epson-inkjet-printer-escpr
  isn't available.

  So the version number is messed up ("/printdriver" added) and
  therefore the package not found. If I manipulate the package ID
  somewhat, removing the "printdriver" in the end, the package
  installation works (I have checked in another terminal that the
  package got actually installed).

  The same error occurs with "pkcon install epson-inkjet-printer-escpr"
  on the command line.

  The problem seems not to be caused by the transition from Python 2 to
  Python3. I can paste the command sequence above also into Python 2 and
  get the same results.

  Please check whether this is really caused by aptdemon, perhaps it can
  also be the PackageKit client.

  Yje bug makes the automatic printer driver installation by system-
  config-printer not working any more, therefore i set its importance to
  "High".

To manage notifications about this bug go to:

[Desktop-packages] [Bug 1397750] Re: Not able to install packages using the PackageKit D-Bus API

2015-09-29 Thread Till Kamppeter
*** This bug is a duplicate of bug 1352654 ***
https://bugs.launchpad.net/bugs/1352654

The aptdaemon problem mentioned here is the same as bug 1352654. Marking
as duplicate.

** This bug has been marked a duplicate of bug 1352654
   No longer able to install packages with PackageKit

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to system-config-printer in Ubuntu.
https://bugs.launchpad.net/bugs/1397750

Title:
  Not able to install packages using the PackageKit D-Bus API

Status in aptdaemon package in Ubuntu:
  Fix Released
Status in system-config-printer package in Ubuntu:
  Fix Released
Status in aptdaemon source package in Utopic:
  New
Status in system-config-printer source package in Utopic:
  Fix Released

Bug description:
  I am on Ubuntu Utopic (14.10) and want to do the following, preferably
  with a Python script.

  I want to install a printer driver package from Epson (which is
  available as both DEB and RPM) through its apt or yum repository so that
  future updates get installed automatically through the distro's update
  mechanism. I also want to assure by means of a key fingerprint that
  repository and package are really from Epson.

  The package name for example is

  epson-inkjet-printer-escpr

  The key fingerprint is

  E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56

  and the Debian package repository is

  deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main

  This data is polled from OpenPrinting:

  
https://www.openprinting.org/query.cgi?moreinfo=1=1=0=amd64=1=0=0=1=deb=0=xml=drivers=MFG:EPSON;MDL
  :EP-801A%20Series;DES:EPSON%20EP-801A%20Series;CLS:PRINTER;

  One can replace the packagesystem=deb in the URL by packagesystem=rpm
  for RPM-based distros.

  Now I run a script of system-config-printer,
  /usr/share/system-config-printer/install-printerdriver.py via the command

  install-printerdriver 'epson-inkjet-printer-escpr' 'deb
  http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main'
  'E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56'

  Or by pasting the commands at the python prompt:

  till@till-twist:~$ python3
  Python 3.4.2 (default, Oct  8 2014, 13:08:17) 
  [GCC 4.9.1] on linux
  Type "help", "copyright", "credits" or "license" for more information.
  >>> from gi.repository import GLib, PackageKitGlib
  >>> import sys
  >>> def progress(progress, type, user_data):
  ...pass
  ... 
  >>> package = 'epson-inkjet-printer-escpr'
  >>> repo = 'deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 
main'
  >>> repo_gpg_id = 'E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56'
  >>> pk = PackageKitGlib.Client()
  >>> res = pk.install_signature(PackageKitGlib.SigTypeEnum.GPG, repo_gpg_id, 
'', None, progress, None)
  >>> res.get_exit_code()
  
  >>> res = pk.resolve(PackageKitGlib.FilterEnum.NONE, [package], None, lambda 
p, t, d: True, None)
  Traceback (most recent call last):
File "", line 1, in 
  GLib.Error: pk_client_error: Package name epson-inkjet-printer-escpr could 
not be resolved. (263)
  >>> res = pk.repo_enable(repo, True, None, progress, None)
  >>> res = pk.refresh_cache(False, None, progress, None)
  >>> res = pk.resolve(PackageKitGlib.FilterEnum.NONE, [package], None, lambda 
p, t, d: True, None)
  >>> package_ids = res.get_package_array()
  >>> package_id = package_ids[0].get_id()
  >>> package_id
  'epson-inkjet-printer-escpr;1.4.1-1lsb3.2;amd64;printdriver'
  >>> package_ids[0].get_info() & PackageKitGlib.InfoEnum.INSTALLED
  0
  >>> res = pk.install_packages(True, [package_id], None, progress, None)
  Traceback (most recent call last):
File "", line 1, in 
  GLib.Error: pk_client_error: The version 1.4.1-1lsb3.2/printdriver of 
epson-inkjet-printer-escpr isn't available. (263)
  >>> res = pk.install_packages(True, 
['epson-inkjet-printer-escpr;1.4.1-1lsb3.2;amd64;'], None, progress, None)
  >>> res = pk.get_files([package_id], None, progress, None)
  >>> files = res.get_files_array()
  >>>

  The problem is that the step of actually installing the package ("res
  = pk.install_packages(..)") errors. It says:

  The version 1.4.1-1lsb3.2/printdriver of epson-inkjet-printer-escpr
  isn't available.

  So the version number is messed up ("/printdriver" added) and
  therefore the package not found. If I manipulate the package ID
  somewhat, removing the "printdriver" in the end, the package
  installation works (I have checked in another terminal that the
  package got actually installed).

  The same error occurs with "pkcon install epson-inkjet-printer-escpr"
  on the command line.

  The problem seems not to be caused by the transition from Python 2 to
  Python3. I can paste the command sequence above also into Python 2 and
  get the same results.

  Please check whether this is really caused by aptdemon, perhaps it can
  also be the PackageKit client.

  Yje bug makes the automatic printer driver installation by system-
  config-printer not working any more, 

[Desktop-packages] [Bug 1397750] Re: Not able to install packages using the PackageKit D-Bus API

2015-02-04 Thread dominik sladek
** Changed in: aptdaemon (Ubuntu)
 Assignee: (unassigned) = dominik sladek (domdeejay)

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to system-config-printer in Ubuntu.
https://bugs.launchpad.net/bugs/1397750

Title:
  Not able to install packages using the PackageKit D-Bus API

Status in aptdaemon package in Ubuntu:
  New
Status in system-config-printer package in Ubuntu:
  Fix Released
Status in aptdaemon source package in Utopic:
  New
Status in system-config-printer source package in Utopic:
  Fix Released

Bug description:
  I am on Ubuntu Utopic (14.10) and want to do the following, preferably
  with a Python script.

  I want to install a printer driver package from Epson (which is
  available as both DEB and RPM) through its apt or yum repository so that
  future updates get installed automatically through the distro's update
  mechanism. I also want to assure by means of a key fingerprint that
  repository and package are really from Epson.

  The package name for example is

  epson-inkjet-printer-escpr

  The key fingerprint is

  E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56

  and the Debian package repository is

  deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main

  This data is polled from OpenPrinting:

  
https://www.openprinting.org/query.cgi?moreinfo=1showprinterid=1onlynewestdriverpackages=0architectures=amd64noobsoletes=1onlyfree=0onlymanufacturer=0onlydownload=1packagesystem=debonlysigneddriverpackages=0format=xmltype=driversprinter=MFG:EPSON;MDL
  :EP-801A%20Series;DES:EPSON%20EP-801A%20Series;CLS:PRINTER;

  One can replace the packagesystem=deb in the URL by packagesystem=rpm
  for RPM-based distros.

  Now I run a script of system-config-printer,
  /usr/share/system-config-printer/install-printerdriver.py via the command

  install-printerdriver 'epson-inkjet-printer-escpr' 'deb
  http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main'
  'E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56'

  Or by pasting the commands at the python prompt:

  till@till-twist:~$ python3
  Python 3.4.2 (default, Oct  8 2014, 13:08:17) 
  [GCC 4.9.1] on linux
  Type help, copyright, credits or license for more information.
   from gi.repository import GLib, PackageKitGlib
   import sys
   def progress(progress, type, user_data):
  ...pass
  ... 
   package = 'epson-inkjet-printer-escpr'
   repo = 'deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 
main'
   repo_gpg_id = 'E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56'
   pk = PackageKitGlib.Client()
   res = pk.install_signature(PackageKitGlib.SigTypeEnum.GPG, repo_gpg_id, 
'', None, progress, None)
   res.get_exit_code()
  enum PK_EXIT_ENUM_SUCCESS of type PkExitEnum
   res = pk.resolve(PackageKitGlib.FilterEnum.NONE, [package], None, lambda 
p, t, d: True, None)
  Traceback (most recent call last):
File stdin, line 1, in module
  GLib.Error: pk_client_error: Package name epson-inkjet-printer-escpr could 
not be resolved. (263)
   res = pk.repo_enable(repo, True, None, progress, None)
   res = pk.refresh_cache(False, None, progress, None)
   res = pk.resolve(PackageKitGlib.FilterEnum.NONE, [package], None, lambda 
p, t, d: True, None)
   package_ids = res.get_package_array()
   package_id = package_ids[0].get_id()
   package_id
  'epson-inkjet-printer-escpr;1.4.1-1lsb3.2;amd64;printdriver'
   package_ids[0].get_info()  PackageKitGlib.InfoEnum.INSTALLED
  0
   res = pk.install_packages(True, [package_id], None, progress, None)
  Traceback (most recent call last):
File stdin, line 1, in module
  GLib.Error: pk_client_error: The version 1.4.1-1lsb3.2/printdriver of 
epson-inkjet-printer-escpr isn't available. (263)
   res = pk.install_packages(True, 
['epson-inkjet-printer-escpr;1.4.1-1lsb3.2;amd64;'], None, progress, None)
   res = pk.get_files([package_id], None, progress, None)
   files = res.get_files_array()
  

  The problem is that the step of actually installing the package (res
  = pk.install_packages(..)) errors. It says:

  The version 1.4.1-1lsb3.2/printdriver of epson-inkjet-printer-escpr
  isn't available.

  So the version number is messed up (/printdriver added) and
  therefore the package not found. If I manipulate the package ID
  somewhat, removing the printdriver in the end, the package
  installation works (I have checked in another terminal that the
  package got actually installed).

  The same error occurs with pkcon install epson-inkjet-printer-escpr
  on the command line.

  The problem seems not to be caused by the transition from Python 2 to
  Python3. I can paste the command sequence above also into Python 2 and
  get the same results.

  Please check whether this is really caused by aptdemon, perhaps it can
  also be the PackageKit client.

  Yje bug makes the automatic printer driver installation by system-
  config-printer not working any more, therefore i set its importance to
  High.

To manage notifications about this bug 

[Desktop-packages] [Bug 1397750] Re: Not able to install packages using the PackageKit D-Bus API

2015-01-20 Thread Till Kamppeter
If you still have problems with package installation by system-config-
printer, please have a look at bug 1412722 and bug 1412729 and as soon
as the proposed fixed packages get available there, test them and tell
in that bug reports whether they solve your problem.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to system-config-printer in Ubuntu.
https://bugs.launchpad.net/bugs/1397750

Title:
  Not able to install packages using the PackageKit D-Bus API

Status in aptdaemon package in Ubuntu:
  New
Status in system-config-printer package in Ubuntu:
  Fix Released
Status in aptdaemon source package in Utopic:
  New
Status in system-config-printer source package in Utopic:
  Fix Released

Bug description:
  I am on Ubuntu Utopic (14.10) and want to do the following, preferably
  with a Python script.

  I want to install a printer driver package from Epson (which is
  available as both DEB and RPM) through its apt or yum repository so that
  future updates get installed automatically through the distro's update
  mechanism. I also want to assure by means of a key fingerprint that
  repository and package are really from Epson.

  The package name for example is

  epson-inkjet-printer-escpr

  The key fingerprint is

  E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56

  and the Debian package repository is

  deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main

  This data is polled from OpenPrinting:

  
https://www.openprinting.org/query.cgi?moreinfo=1showprinterid=1onlynewestdriverpackages=0architectures=amd64noobsoletes=1onlyfree=0onlymanufacturer=0onlydownload=1packagesystem=debonlysigneddriverpackages=0format=xmltype=driversprinter=MFG:EPSON;MDL
  :EP-801A%20Series;DES:EPSON%20EP-801A%20Series;CLS:PRINTER;

  One can replace the packagesystem=deb in the URL by packagesystem=rpm
  for RPM-based distros.

  Now I run a script of system-config-printer,
  /usr/share/system-config-printer/install-printerdriver.py via the command

  install-printerdriver 'epson-inkjet-printer-escpr' 'deb
  http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main'
  'E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56'

  Or by pasting the commands at the python prompt:

  till@till-twist:~$ python3
  Python 3.4.2 (default, Oct  8 2014, 13:08:17) 
  [GCC 4.9.1] on linux
  Type help, copyright, credits or license for more information.
   from gi.repository import GLib, PackageKitGlib
   import sys
   def progress(progress, type, user_data):
  ...pass
  ... 
   package = 'epson-inkjet-printer-escpr'
   repo = 'deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 
main'
   repo_gpg_id = 'E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56'
   pk = PackageKitGlib.Client()
   res = pk.install_signature(PackageKitGlib.SigTypeEnum.GPG, repo_gpg_id, 
'', None, progress, None)
   res.get_exit_code()
  enum PK_EXIT_ENUM_SUCCESS of type PkExitEnum
   res = pk.resolve(PackageKitGlib.FilterEnum.NONE, [package], None, lambda 
p, t, d: True, None)
  Traceback (most recent call last):
File stdin, line 1, in module
  GLib.Error: pk_client_error: Package name epson-inkjet-printer-escpr could 
not be resolved. (263)
   res = pk.repo_enable(repo, True, None, progress, None)
   res = pk.refresh_cache(False, None, progress, None)
   res = pk.resolve(PackageKitGlib.FilterEnum.NONE, [package], None, lambda 
p, t, d: True, None)
   package_ids = res.get_package_array()
   package_id = package_ids[0].get_id()
   package_id
  'epson-inkjet-printer-escpr;1.4.1-1lsb3.2;amd64;printdriver'
   package_ids[0].get_info()  PackageKitGlib.InfoEnum.INSTALLED
  0
   res = pk.install_packages(True, [package_id], None, progress, None)
  Traceback (most recent call last):
File stdin, line 1, in module
  GLib.Error: pk_client_error: The version 1.4.1-1lsb3.2/printdriver of 
epson-inkjet-printer-escpr isn't available. (263)
   res = pk.install_packages(True, 
['epson-inkjet-printer-escpr;1.4.1-1lsb3.2;amd64;'], None, progress, None)
   res = pk.get_files([package_id], None, progress, None)
   files = res.get_files_array()
  

  The problem is that the step of actually installing the package (res
  = pk.install_packages(..)) errors. It says:

  The version 1.4.1-1lsb3.2/printdriver of epson-inkjet-printer-escpr
  isn't available.

  So the version number is messed up (/printdriver added) and
  therefore the package not found. If I manipulate the package ID
  somewhat, removing the printdriver in the end, the package
  installation works (I have checked in another terminal that the
  package got actually installed).

  The same error occurs with pkcon install epson-inkjet-printer-escpr
  on the command line.

  The problem seems not to be caused by the transition from Python 2 to
  Python3. I can paste the command sequence above also into Python 2 and
  get the same results.

  Please check whether this is really caused by aptdemon, perhaps it can
  also be the PackageKit client.

  Yje bug 

[Desktop-packages] [Bug 1397750] Re: Not able to install packages using the PackageKit D-Bus API

2015-01-14 Thread Launchpad Bug Tracker
This bug was fixed in the package system-config-printer -
1.5.1+20141010-0ubuntu2.2

---
system-config-printer (1.5.1+20141010-0ubuntu2.2) utopic-proposed; 
urgency=medium

  * debian/patches/70_package-download-fixes.patch: Fixed several bugs to
make automatic printer driver download working again (LP: #1401835):
 o Use pyrequests instead of pycurl for secure (verified certificate)
   downloads. pycurl stopped working after the OpenPrinting web server
   has moved from Ubuntu 10.04 to 12.04 (LP: #1394244).
 o In the install-printerdriver script improved the check for the
   necessity of adding the driver's Debian repository and added a
   workaround for a bug in aptdaemon interpreting PackageKit's package
   IDs wrongly when installing a package (LP: #1397750).
 o In fillDriverList() use .hasattr() to check presence of
   attributes.
 o Python3 transition bugs
  * debian/patches/73_support-non-utf-8-encoded-ppds.patch: Do not
crash on non-UTF-8-encoded PPD files (LP: #1400232)
  * debian/control: Depend on python-requests instead of on python-pycurl.
 -- Till Kamppeter till.kamppe...@gmail.com   Sat, 13 Dec 2014 11:01:26 +0100

** Changed in: system-config-printer (Ubuntu Utopic)
   Status: Fix Committed = Fix Released

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to system-config-printer in Ubuntu.
https://bugs.launchpad.net/bugs/1397750

Title:
  Not able to install packages using the PackageKit D-Bus API

Status in aptdaemon package in Ubuntu:
  New
Status in system-config-printer package in Ubuntu:
  Fix Released
Status in aptdaemon source package in Utopic:
  New
Status in system-config-printer source package in Utopic:
  Fix Released

Bug description:
  I am on Ubuntu Utopic (14.10) and want to do the following, preferably
  with a Python script.

  I want to install a printer driver package from Epson (which is
  available as both DEB and RPM) through its apt or yum repository so that
  future updates get installed automatically through the distro's update
  mechanism. I also want to assure by means of a key fingerprint that
  repository and package are really from Epson.

  The package name for example is

  epson-inkjet-printer-escpr

  The key fingerprint is

  E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56

  and the Debian package repository is

  deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main

  This data is polled from OpenPrinting:

  
https://www.openprinting.org/query.cgi?moreinfo=1showprinterid=1onlynewestdriverpackages=0architectures=amd64noobsoletes=1onlyfree=0onlymanufacturer=0onlydownload=1packagesystem=debonlysigneddriverpackages=0format=xmltype=driversprinter=MFG:EPSON;MDL
  :EP-801A%20Series;DES:EPSON%20EP-801A%20Series;CLS:PRINTER;

  One can replace the packagesystem=deb in the URL by packagesystem=rpm
  for RPM-based distros.

  Now I run a script of system-config-printer,
  /usr/share/system-config-printer/install-printerdriver.py via the command

  install-printerdriver 'epson-inkjet-printer-escpr' 'deb
  http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main'
  'E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56'

  Or by pasting the commands at the python prompt:

  till@till-twist:~$ python3
  Python 3.4.2 (default, Oct  8 2014, 13:08:17) 
  [GCC 4.9.1] on linux
  Type help, copyright, credits or license for more information.
   from gi.repository import GLib, PackageKitGlib
   import sys
   def progress(progress, type, user_data):
  ...pass
  ... 
   package = 'epson-inkjet-printer-escpr'
   repo = 'deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 
main'
   repo_gpg_id = 'E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56'
   pk = PackageKitGlib.Client()
   res = pk.install_signature(PackageKitGlib.SigTypeEnum.GPG, repo_gpg_id, 
'', None, progress, None)
   res.get_exit_code()
  enum PK_EXIT_ENUM_SUCCESS of type PkExitEnum
   res = pk.resolve(PackageKitGlib.FilterEnum.NONE, [package], None, lambda 
p, t, d: True, None)
  Traceback (most recent call last):
File stdin, line 1, in module
  GLib.Error: pk_client_error: Package name epson-inkjet-printer-escpr could 
not be resolved. (263)
   res = pk.repo_enable(repo, True, None, progress, None)
   res = pk.refresh_cache(False, None, progress, None)
   res = pk.resolve(PackageKitGlib.FilterEnum.NONE, [package], None, lambda 
p, t, d: True, None)
   package_ids = res.get_package_array()
   package_id = package_ids[0].get_id()
   package_id
  'epson-inkjet-printer-escpr;1.4.1-1lsb3.2;amd64;printdriver'
   package_ids[0].get_info()  PackageKitGlib.InfoEnum.INSTALLED
  0
   res = pk.install_packages(True, [package_id], None, progress, None)
  Traceback (most recent call last):
File stdin, line 1, in module
  GLib.Error: pk_client_error: The version 1.4.1-1lsb3.2/printdriver of 
epson-inkjet-printer-escpr isn't available. (263)
   res = pk.install_packages(True, 

[Desktop-packages] [Bug 1397750] Re: Not able to install packages using the PackageKit D-Bus API

2015-01-10 Thread Mathew Hodson
** Tags added: utopic

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to system-config-printer in Ubuntu.
https://bugs.launchpad.net/bugs/1397750

Title:
  Not able to install packages using the PackageKit D-Bus API

Status in aptdaemon package in Ubuntu:
  New
Status in system-config-printer package in Ubuntu:
  Fix Released
Status in aptdaemon source package in Utopic:
  New
Status in system-config-printer source package in Utopic:
  Fix Committed

Bug description:
  I am on Ubuntu Utopic (14.10) and want to do the following, preferably
  with a Python script.

  I want to install a printer driver package from Epson (which is
  available as both DEB and RPM) through its apt or yum repository so that
  future updates get installed automatically through the distro's update
  mechanism. I also want to assure by means of a key fingerprint that
  repository and package are really from Epson.

  The package name for example is

  epson-inkjet-printer-escpr

  The key fingerprint is

  E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56

  and the Debian package repository is

  deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main

  This data is polled from OpenPrinting:

  
https://www.openprinting.org/query.cgi?moreinfo=1showprinterid=1onlynewestdriverpackages=0architectures=amd64noobsoletes=1onlyfree=0onlymanufacturer=0onlydownload=1packagesystem=debonlysigneddriverpackages=0format=xmltype=driversprinter=MFG:EPSON;MDL
  :EP-801A%20Series;DES:EPSON%20EP-801A%20Series;CLS:PRINTER;

  One can replace the packagesystem=deb in the URL by packagesystem=rpm
  for RPM-based distros.

  Now I run a script of system-config-printer,
  /usr/share/system-config-printer/install-printerdriver.py via the command

  install-printerdriver 'epson-inkjet-printer-escpr' 'deb
  http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main'
  'E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56'

  Or by pasting the commands at the python prompt:

  till@till-twist:~$ python3
  Python 3.4.2 (default, Oct  8 2014, 13:08:17) 
  [GCC 4.9.1] on linux
  Type help, copyright, credits or license for more information.
   from gi.repository import GLib, PackageKitGlib
   import sys
   def progress(progress, type, user_data):
  ...pass
  ... 
   package = 'epson-inkjet-printer-escpr'
   repo = 'deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 
main'
   repo_gpg_id = 'E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56'
   pk = PackageKitGlib.Client()
   res = pk.install_signature(PackageKitGlib.SigTypeEnum.GPG, repo_gpg_id, 
'', None, progress, None)
   res.get_exit_code()
  enum PK_EXIT_ENUM_SUCCESS of type PkExitEnum
   res = pk.resolve(PackageKitGlib.FilterEnum.NONE, [package], None, lambda 
p, t, d: True, None)
  Traceback (most recent call last):
File stdin, line 1, in module
  GLib.Error: pk_client_error: Package name epson-inkjet-printer-escpr could 
not be resolved. (263)
   res = pk.repo_enable(repo, True, None, progress, None)
   res = pk.refresh_cache(False, None, progress, None)
   res = pk.resolve(PackageKitGlib.FilterEnum.NONE, [package], None, lambda 
p, t, d: True, None)
   package_ids = res.get_package_array()
   package_id = package_ids[0].get_id()
   package_id
  'epson-inkjet-printer-escpr;1.4.1-1lsb3.2;amd64;printdriver'
   package_ids[0].get_info()  PackageKitGlib.InfoEnum.INSTALLED
  0
   res = pk.install_packages(True, [package_id], None, progress, None)
  Traceback (most recent call last):
File stdin, line 1, in module
  GLib.Error: pk_client_error: The version 1.4.1-1lsb3.2/printdriver of 
epson-inkjet-printer-escpr isn't available. (263)
   res = pk.install_packages(True, 
['epson-inkjet-printer-escpr;1.4.1-1lsb3.2;amd64;'], None, progress, None)
   res = pk.get_files([package_id], None, progress, None)
   files = res.get_files_array()
  

  The problem is that the step of actually installing the package (res
  = pk.install_packages(..)) errors. It says:

  The version 1.4.1-1lsb3.2/printdriver of epson-inkjet-printer-escpr
  isn't available.

  So the version number is messed up (/printdriver added) and
  therefore the package not found. If I manipulate the package ID
  somewhat, removing the printdriver in the end, the package
  installation works (I have checked in another terminal that the
  package got actually installed).

  The same error occurs with pkcon install epson-inkjet-printer-escpr
  on the command line.

  The problem seems not to be caused by the transition from Python 2 to
  Python3. I can paste the command sequence above also into Python 2 and
  get the same results.

  Please check whether this is really caused by aptdemon, perhaps it can
  also be the PackageKit client.

  Yje bug makes the automatic printer driver installation by system-
  config-printer not working any more, therefore i set its importance to
  High.

To manage notifications about this bug go to:

[Desktop-packages] [Bug 1397750] Re: Not able to install packages using the PackageKit D-Bus API

2014-12-16 Thread Chris J Arges
Hello Till, or anyone else affected,

Accepted system-config-printer into utopic-proposed. The package will
build now and be available at http://launchpad.net/ubuntu/+source
/system-config-printer/1.5.1+20141010-0ubuntu2.2 in a few hours, and
then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to
enable and use -proposed.  Your feedback will aid us getting this update
out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, and change the tag
from verification-needed to verification-done. If it does not fix the
bug for you, please add a comment stating that, and change the tag to
verification-failed.  In either case, details of your testing will help
us make a better decision.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance!

** Changed in: system-config-printer (Ubuntu Utopic)
   Status: Triaged = Fix Committed

** Tags added: verification-needed

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to system-config-printer in Ubuntu.
https://bugs.launchpad.net/bugs/1397750

Title:
  Not able to install packages using the PackageKit D-Bus API

Status in aptdaemon package in Ubuntu:
  New
Status in system-config-printer package in Ubuntu:
  Fix Released
Status in aptdaemon source package in Utopic:
  New
Status in system-config-printer source package in Utopic:
  Fix Committed

Bug description:
  I am on Ubuntu Utopic (14.10) and want to do the following, preferably
  with a Python script.

  I want to install a printer driver package from Epson (which is
  available as both DEB and RPM) through its apt or yum repository so that
  future updates get installed automatically through the distro's update
  mechanism. I also want to assure by means of a key fingerprint that
  repository and package are really from Epson.

  The package name for example is

  epson-inkjet-printer-escpr

  The key fingerprint is

  E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56

  and the Debian package repository is

  deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main

  This data is polled from OpenPrinting:

  
https://www.openprinting.org/query.cgi?moreinfo=1showprinterid=1onlynewestdriverpackages=0architectures=amd64noobsoletes=1onlyfree=0onlymanufacturer=0onlydownload=1packagesystem=debonlysigneddriverpackages=0format=xmltype=driversprinter=MFG:EPSON;MDL
  :EP-801A%20Series;DES:EPSON%20EP-801A%20Series;CLS:PRINTER;

  One can replace the packagesystem=deb in the URL by packagesystem=rpm
  for RPM-based distros.

  Now I run a script of system-config-printer,
  /usr/share/system-config-printer/install-printerdriver.py via the command

  install-printerdriver 'epson-inkjet-printer-escpr' 'deb
  http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main'
  'E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56'

  Or by pasting the commands at the python prompt:

  till@till-twist:~$ python3
  Python 3.4.2 (default, Oct  8 2014, 13:08:17) 
  [GCC 4.9.1] on linux
  Type help, copyright, credits or license for more information.
   from gi.repository import GLib, PackageKitGlib
   import sys
   def progress(progress, type, user_data):
  ...pass
  ... 
   package = 'epson-inkjet-printer-escpr'
   repo = 'deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 
main'
   repo_gpg_id = 'E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56'
   pk = PackageKitGlib.Client()
   res = pk.install_signature(PackageKitGlib.SigTypeEnum.GPG, repo_gpg_id, 
'', None, progress, None)
   res.get_exit_code()
  enum PK_EXIT_ENUM_SUCCESS of type PkExitEnum
   res = pk.resolve(PackageKitGlib.FilterEnum.NONE, [package], None, lambda 
p, t, d: True, None)
  Traceback (most recent call last):
File stdin, line 1, in module
  GLib.Error: pk_client_error: Package name epson-inkjet-printer-escpr could 
not be resolved. (263)
   res = pk.repo_enable(repo, True, None, progress, None)
   res = pk.refresh_cache(False, None, progress, None)
   res = pk.resolve(PackageKitGlib.FilterEnum.NONE, [package], None, lambda 
p, t, d: True, None)
   package_ids = res.get_package_array()
   package_id = package_ids[0].get_id()
   package_id
  'epson-inkjet-printer-escpr;1.4.1-1lsb3.2;amd64;printdriver'
   package_ids[0].get_info()  PackageKitGlib.InfoEnum.INSTALLED
  0
   res = pk.install_packages(True, [package_id], None, progress, None)
  Traceback (most recent call last):
File stdin, line 1, in module
  GLib.Error: pk_client_error: The version 1.4.1-1lsb3.2/printdriver of 
epson-inkjet-printer-escpr isn't available. (263)
   res = pk.install_packages(True, 
['epson-inkjet-printer-escpr;1.4.1-1lsb3.2;amd64;'], None, progress, None)
   res = pk.get_files([package_id], None, progress, None)
   files = 

[Desktop-packages] [Bug 1397750] Re: Not able to install packages using the PackageKit D-Bus API

2014-12-16 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/utopic-proposed/system-config-printer

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to system-config-printer in Ubuntu.
https://bugs.launchpad.net/bugs/1397750

Title:
  Not able to install packages using the PackageKit D-Bus API

Status in aptdaemon package in Ubuntu:
  New
Status in system-config-printer package in Ubuntu:
  Fix Released
Status in aptdaemon source package in Utopic:
  New
Status in system-config-printer source package in Utopic:
  Fix Committed

Bug description:
  I am on Ubuntu Utopic (14.10) and want to do the following, preferably
  with a Python script.

  I want to install a printer driver package from Epson (which is
  available as both DEB and RPM) through its apt or yum repository so that
  future updates get installed automatically through the distro's update
  mechanism. I also want to assure by means of a key fingerprint that
  repository and package are really from Epson.

  The package name for example is

  epson-inkjet-printer-escpr

  The key fingerprint is

  E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56

  and the Debian package repository is

  deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main

  This data is polled from OpenPrinting:

  
https://www.openprinting.org/query.cgi?moreinfo=1showprinterid=1onlynewestdriverpackages=0architectures=amd64noobsoletes=1onlyfree=0onlymanufacturer=0onlydownload=1packagesystem=debonlysigneddriverpackages=0format=xmltype=driversprinter=MFG:EPSON;MDL
  :EP-801A%20Series;DES:EPSON%20EP-801A%20Series;CLS:PRINTER;

  One can replace the packagesystem=deb in the URL by packagesystem=rpm
  for RPM-based distros.

  Now I run a script of system-config-printer,
  /usr/share/system-config-printer/install-printerdriver.py via the command

  install-printerdriver 'epson-inkjet-printer-escpr' 'deb
  http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main'
  'E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56'

  Or by pasting the commands at the python prompt:

  till@till-twist:~$ python3
  Python 3.4.2 (default, Oct  8 2014, 13:08:17) 
  [GCC 4.9.1] on linux
  Type help, copyright, credits or license for more information.
   from gi.repository import GLib, PackageKitGlib
   import sys
   def progress(progress, type, user_data):
  ...pass
  ... 
   package = 'epson-inkjet-printer-escpr'
   repo = 'deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 
main'
   repo_gpg_id = 'E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56'
   pk = PackageKitGlib.Client()
   res = pk.install_signature(PackageKitGlib.SigTypeEnum.GPG, repo_gpg_id, 
'', None, progress, None)
   res.get_exit_code()
  enum PK_EXIT_ENUM_SUCCESS of type PkExitEnum
   res = pk.resolve(PackageKitGlib.FilterEnum.NONE, [package], None, lambda 
p, t, d: True, None)
  Traceback (most recent call last):
File stdin, line 1, in module
  GLib.Error: pk_client_error: Package name epson-inkjet-printer-escpr could 
not be resolved. (263)
   res = pk.repo_enable(repo, True, None, progress, None)
   res = pk.refresh_cache(False, None, progress, None)
   res = pk.resolve(PackageKitGlib.FilterEnum.NONE, [package], None, lambda 
p, t, d: True, None)
   package_ids = res.get_package_array()
   package_id = package_ids[0].get_id()
   package_id
  'epson-inkjet-printer-escpr;1.4.1-1lsb3.2;amd64;printdriver'
   package_ids[0].get_info()  PackageKitGlib.InfoEnum.INSTALLED
  0
   res = pk.install_packages(True, [package_id], None, progress, None)
  Traceback (most recent call last):
File stdin, line 1, in module
  GLib.Error: pk_client_error: The version 1.4.1-1lsb3.2/printdriver of 
epson-inkjet-printer-escpr isn't available. (263)
   res = pk.install_packages(True, 
['epson-inkjet-printer-escpr;1.4.1-1lsb3.2;amd64;'], None, progress, None)
   res = pk.get_files([package_id], None, progress, None)
   files = res.get_files_array()
  

  The problem is that the step of actually installing the package (res
  = pk.install_packages(..)) errors. It says:

  The version 1.4.1-1lsb3.2/printdriver of epson-inkjet-printer-escpr
  isn't available.

  So the version number is messed up (/printdriver added) and
  therefore the package not found. If I manipulate the package ID
  somewhat, removing the printdriver in the end, the package
  installation works (I have checked in another terminal that the
  package got actually installed).

  The same error occurs with pkcon install epson-inkjet-printer-escpr
  on the command line.

  The problem seems not to be caused by the transition from Python 2 to
  Python3. I can paste the command sequence above also into Python 2 and
  get the same results.

  Please check whether this is really caused by aptdemon, perhaps it can
  also be the PackageKit client.

  Yje bug makes the automatic printer driver installation by system-
  config-printer not working any more, therefore i set its importance to
  High.

To manage notifications about this bug go to:

[Desktop-packages] [Bug 1397750] Re: Not able to install packages using the PackageKit D-Bus API

2014-12-16 Thread Till Kamppeter
Checked with the package from utopic-proposed and automatic driver
package installation is working now, so the workaround in install-
printerdriver solves the problem.

** Tags removed: verification-needed
** Tags added: verification-done

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to system-config-printer in Ubuntu.
https://bugs.launchpad.net/bugs/1397750

Title:
  Not able to install packages using the PackageKit D-Bus API

Status in aptdaemon package in Ubuntu:
  New
Status in system-config-printer package in Ubuntu:
  Fix Released
Status in aptdaemon source package in Utopic:
  New
Status in system-config-printer source package in Utopic:
  Fix Committed

Bug description:
  I am on Ubuntu Utopic (14.10) and want to do the following, preferably
  with a Python script.

  I want to install a printer driver package from Epson (which is
  available as both DEB and RPM) through its apt or yum repository so that
  future updates get installed automatically through the distro's update
  mechanism. I also want to assure by means of a key fingerprint that
  repository and package are really from Epson.

  The package name for example is

  epson-inkjet-printer-escpr

  The key fingerprint is

  E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56

  and the Debian package repository is

  deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main

  This data is polled from OpenPrinting:

  
https://www.openprinting.org/query.cgi?moreinfo=1showprinterid=1onlynewestdriverpackages=0architectures=amd64noobsoletes=1onlyfree=0onlymanufacturer=0onlydownload=1packagesystem=debonlysigneddriverpackages=0format=xmltype=driversprinter=MFG:EPSON;MDL
  :EP-801A%20Series;DES:EPSON%20EP-801A%20Series;CLS:PRINTER;

  One can replace the packagesystem=deb in the URL by packagesystem=rpm
  for RPM-based distros.

  Now I run a script of system-config-printer,
  /usr/share/system-config-printer/install-printerdriver.py via the command

  install-printerdriver 'epson-inkjet-printer-escpr' 'deb
  http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main'
  'E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56'

  Or by pasting the commands at the python prompt:

  till@till-twist:~$ python3
  Python 3.4.2 (default, Oct  8 2014, 13:08:17) 
  [GCC 4.9.1] on linux
  Type help, copyright, credits or license for more information.
   from gi.repository import GLib, PackageKitGlib
   import sys
   def progress(progress, type, user_data):
  ...pass
  ... 
   package = 'epson-inkjet-printer-escpr'
   repo = 'deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 
main'
   repo_gpg_id = 'E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56'
   pk = PackageKitGlib.Client()
   res = pk.install_signature(PackageKitGlib.SigTypeEnum.GPG, repo_gpg_id, 
'', None, progress, None)
   res.get_exit_code()
  enum PK_EXIT_ENUM_SUCCESS of type PkExitEnum
   res = pk.resolve(PackageKitGlib.FilterEnum.NONE, [package], None, lambda 
p, t, d: True, None)
  Traceback (most recent call last):
File stdin, line 1, in module
  GLib.Error: pk_client_error: Package name epson-inkjet-printer-escpr could 
not be resolved. (263)
   res = pk.repo_enable(repo, True, None, progress, None)
   res = pk.refresh_cache(False, None, progress, None)
   res = pk.resolve(PackageKitGlib.FilterEnum.NONE, [package], None, lambda 
p, t, d: True, None)
   package_ids = res.get_package_array()
   package_id = package_ids[0].get_id()
   package_id
  'epson-inkjet-printer-escpr;1.4.1-1lsb3.2;amd64;printdriver'
   package_ids[0].get_info()  PackageKitGlib.InfoEnum.INSTALLED
  0
   res = pk.install_packages(True, [package_id], None, progress, None)
  Traceback (most recent call last):
File stdin, line 1, in module
  GLib.Error: pk_client_error: The version 1.4.1-1lsb3.2/printdriver of 
epson-inkjet-printer-escpr isn't available. (263)
   res = pk.install_packages(True, 
['epson-inkjet-printer-escpr;1.4.1-1lsb3.2;amd64;'], None, progress, None)
   res = pk.get_files([package_id], None, progress, None)
   files = res.get_files_array()
  

  The problem is that the step of actually installing the package (res
  = pk.install_packages(..)) errors. It says:

  The version 1.4.1-1lsb3.2/printdriver of epson-inkjet-printer-escpr
  isn't available.

  So the version number is messed up (/printdriver added) and
  therefore the package not found. If I manipulate the package ID
  somewhat, removing the printdriver in the end, the package
  installation works (I have checked in another terminal that the
  package got actually installed).

  The same error occurs with pkcon install epson-inkjet-printer-escpr
  on the command line.

  The problem seems not to be caused by the transition from Python 2 to
  Python3. I can paste the command sequence above also into Python 2 and
  get the same results.

  Please check whether this is really caused by aptdemon, perhaps it can
  also be the PackageKit client.

  Yje bug makes the automatic printer 

[Desktop-packages] [Bug 1397750] Re: Not able to install packages using the PackageKit D-Bus API

2014-12-12 Thread Till Kamppeter
SRU for Utopic and Trusty applying the workaround for this problem to
system-config-printer and fixing other driver-download-related bugs is
handled in bug 1401835.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to system-config-printer in Ubuntu.
https://bugs.launchpad.net/bugs/1397750

Title:
  Not able to install packages using the PackageKit D-Bus API

Status in aptdaemon package in Ubuntu:
  New
Status in system-config-printer package in Ubuntu:
  Fix Released
Status in aptdaemon source package in Utopic:
  New
Status in system-config-printer source package in Utopic:
  Triaged

Bug description:
  I am on Ubuntu Utopic (14.10) and want to do the following, preferably
  with a Python script.

  I want to install a printer driver package from Epson (which is
  available as both DEB and RPM) through its apt or yum repository so that
  future updates get installed automatically through the distro's update
  mechanism. I also want to assure by means of a key fingerprint that
  repository and package are really from Epson.

  The package name for example is

  epson-inkjet-printer-escpr

  The key fingerprint is

  E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56

  and the Debian package repository is

  deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main

  This data is polled from OpenPrinting:

  
https://www.openprinting.org/query.cgi?moreinfo=1showprinterid=1onlynewestdriverpackages=0architectures=amd64noobsoletes=1onlyfree=0onlymanufacturer=0onlydownload=1packagesystem=debonlysigneddriverpackages=0format=xmltype=driversprinter=MFG:EPSON;MDL
  :EP-801A%20Series;DES:EPSON%20EP-801A%20Series;CLS:PRINTER;

  One can replace the packagesystem=deb in the URL by packagesystem=rpm
  for RPM-based distros.

  Now I run a script of system-config-printer,
  /usr/share/system-config-printer/install-printerdriver.py via the command

  install-printerdriver 'epson-inkjet-printer-escpr' 'deb
  http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main'
  'E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56'

  Or by pasting the commands at the python prompt:

  till@till-twist:~$ python3
  Python 3.4.2 (default, Oct  8 2014, 13:08:17) 
  [GCC 4.9.1] on linux
  Type help, copyright, credits or license for more information.
   from gi.repository import GLib, PackageKitGlib
   import sys
   def progress(progress, type, user_data):
  ...pass
  ... 
   package = 'epson-inkjet-printer-escpr'
   repo = 'deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 
main'
   repo_gpg_id = 'E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56'
   pk = PackageKitGlib.Client()
   res = pk.install_signature(PackageKitGlib.SigTypeEnum.GPG, repo_gpg_id, 
'', None, progress, None)
   res.get_exit_code()
  enum PK_EXIT_ENUM_SUCCESS of type PkExitEnum
   res = pk.resolve(PackageKitGlib.FilterEnum.NONE, [package], None, lambda 
p, t, d: True, None)
  Traceback (most recent call last):
File stdin, line 1, in module
  GLib.Error: pk_client_error: Package name epson-inkjet-printer-escpr could 
not be resolved. (263)
   res = pk.repo_enable(repo, True, None, progress, None)
   res = pk.refresh_cache(False, None, progress, None)
   res = pk.resolve(PackageKitGlib.FilterEnum.NONE, [package], None, lambda 
p, t, d: True, None)
   package_ids = res.get_package_array()
   package_id = package_ids[0].get_id()
   package_id
  'epson-inkjet-printer-escpr;1.4.1-1lsb3.2;amd64;printdriver'
   package_ids[0].get_info()  PackageKitGlib.InfoEnum.INSTALLED
  0
   res = pk.install_packages(True, [package_id], None, progress, None)
  Traceback (most recent call last):
File stdin, line 1, in module
  GLib.Error: pk_client_error: The version 1.4.1-1lsb3.2/printdriver of 
epson-inkjet-printer-escpr isn't available. (263)
   res = pk.install_packages(True, 
['epson-inkjet-printer-escpr;1.4.1-1lsb3.2;amd64;'], None, progress, None)
   res = pk.get_files([package_id], None, progress, None)
   files = res.get_files_array()
  

  The problem is that the step of actually installing the package (res
  = pk.install_packages(..)) errors. It says:

  The version 1.4.1-1lsb3.2/printdriver of epson-inkjet-printer-escpr
  isn't available.

  So the version number is messed up (/printdriver added) and
  therefore the package not found. If I manipulate the package ID
  somewhat, removing the printdriver in the end, the package
  installation works (I have checked in another terminal that the
  package got actually installed).

  The same error occurs with pkcon install epson-inkjet-printer-escpr
  on the command line.

  The problem seems not to be caused by the transition from Python 2 to
  Python3. I can paste the command sequence above also into Python 2 and
  get the same results.

  Please check whether this is really caused by aptdemon, perhaps it can
  also be the PackageKit client.

  Yje bug makes the automatic printer driver installation by system-
  config-printer not working any more, therefore i 

[Desktop-packages] [Bug 1397750] Re: Not able to install packages using the PackageKit D-Bus API

2014-12-12 Thread Till Kamppeter
Note: This problem is not caused by the replacement of the OpenPrinting
web server, as it happens when accessing Epson's download server.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to system-config-printer in Ubuntu.
https://bugs.launchpad.net/bugs/1397750

Title:
  Not able to install packages using the PackageKit D-Bus API

Status in aptdaemon package in Ubuntu:
  New
Status in system-config-printer package in Ubuntu:
  Fix Released
Status in aptdaemon source package in Utopic:
  New
Status in system-config-printer source package in Utopic:
  Triaged

Bug description:
  I am on Ubuntu Utopic (14.10) and want to do the following, preferably
  with a Python script.

  I want to install a printer driver package from Epson (which is
  available as both DEB and RPM) through its apt or yum repository so that
  future updates get installed automatically through the distro's update
  mechanism. I also want to assure by means of a key fingerprint that
  repository and package are really from Epson.

  The package name for example is

  epson-inkjet-printer-escpr

  The key fingerprint is

  E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56

  and the Debian package repository is

  deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main

  This data is polled from OpenPrinting:

  
https://www.openprinting.org/query.cgi?moreinfo=1showprinterid=1onlynewestdriverpackages=0architectures=amd64noobsoletes=1onlyfree=0onlymanufacturer=0onlydownload=1packagesystem=debonlysigneddriverpackages=0format=xmltype=driversprinter=MFG:EPSON;MDL
  :EP-801A%20Series;DES:EPSON%20EP-801A%20Series;CLS:PRINTER;

  One can replace the packagesystem=deb in the URL by packagesystem=rpm
  for RPM-based distros.

  Now I run a script of system-config-printer,
  /usr/share/system-config-printer/install-printerdriver.py via the command

  install-printerdriver 'epson-inkjet-printer-escpr' 'deb
  http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main'
  'E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56'

  Or by pasting the commands at the python prompt:

  till@till-twist:~$ python3
  Python 3.4.2 (default, Oct  8 2014, 13:08:17) 
  [GCC 4.9.1] on linux
  Type help, copyright, credits or license for more information.
   from gi.repository import GLib, PackageKitGlib
   import sys
   def progress(progress, type, user_data):
  ...pass
  ... 
   package = 'epson-inkjet-printer-escpr'
   repo = 'deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 
main'
   repo_gpg_id = 'E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56'
   pk = PackageKitGlib.Client()
   res = pk.install_signature(PackageKitGlib.SigTypeEnum.GPG, repo_gpg_id, 
'', None, progress, None)
   res.get_exit_code()
  enum PK_EXIT_ENUM_SUCCESS of type PkExitEnum
   res = pk.resolve(PackageKitGlib.FilterEnum.NONE, [package], None, lambda 
p, t, d: True, None)
  Traceback (most recent call last):
File stdin, line 1, in module
  GLib.Error: pk_client_error: Package name epson-inkjet-printer-escpr could 
not be resolved. (263)
   res = pk.repo_enable(repo, True, None, progress, None)
   res = pk.refresh_cache(False, None, progress, None)
   res = pk.resolve(PackageKitGlib.FilterEnum.NONE, [package], None, lambda 
p, t, d: True, None)
   package_ids = res.get_package_array()
   package_id = package_ids[0].get_id()
   package_id
  'epson-inkjet-printer-escpr;1.4.1-1lsb3.2;amd64;printdriver'
   package_ids[0].get_info()  PackageKitGlib.InfoEnum.INSTALLED
  0
   res = pk.install_packages(True, [package_id], None, progress, None)
  Traceback (most recent call last):
File stdin, line 1, in module
  GLib.Error: pk_client_error: The version 1.4.1-1lsb3.2/printdriver of 
epson-inkjet-printer-escpr isn't available. (263)
   res = pk.install_packages(True, 
['epson-inkjet-printer-escpr;1.4.1-1lsb3.2;amd64;'], None, progress, None)
   res = pk.get_files([package_id], None, progress, None)
   files = res.get_files_array()
  

  The problem is that the step of actually installing the package (res
  = pk.install_packages(..)) errors. It says:

  The version 1.4.1-1lsb3.2/printdriver of epson-inkjet-printer-escpr
  isn't available.

  So the version number is messed up (/printdriver added) and
  therefore the package not found. If I manipulate the package ID
  somewhat, removing the printdriver in the end, the package
  installation works (I have checked in another terminal that the
  package got actually installed).

  The same error occurs with pkcon install epson-inkjet-printer-escpr
  on the command line.

  The problem seems not to be caused by the transition from Python 2 to
  Python3. I can paste the command sequence above also into Python 2 and
  get the same results.

  Please check whether this is really caused by aptdemon, perhaps it can
  also be the PackageKit client.

  Yje bug makes the automatic printer driver installation by system-
  config-printer not working any more, therefore i set its importance to
  

[Desktop-packages] [Bug 1397750] Re: Not able to install packages using the PackageKit D-Bus API

2014-12-05 Thread Till Kamppeter
Occurs also in Utopic, but not in Trusty.

** Also affects: system-config-printer (Ubuntu Utopic)
   Importance: Undecided
   Status: New

** Also affects: aptdaemon (Ubuntu Utopic)
   Importance: Undecided
   Status: New

** Changed in: aptdaemon (Ubuntu Utopic)
   Importance: Undecided = High

** Changed in: system-config-printer (Ubuntu Utopic)
   Importance: Undecided = High

** Changed in: system-config-printer (Ubuntu Utopic)
   Status: New = Triaged

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to system-config-printer in Ubuntu.
https://bugs.launchpad.net/bugs/1397750

Title:
  Not able to install packages using the PackageKit D-Bus API

Status in aptdaemon package in Ubuntu:
  New
Status in system-config-printer package in Ubuntu:
  Fix Released
Status in aptdaemon source package in Utopic:
  New
Status in system-config-printer source package in Utopic:
  Triaged

Bug description:
  I am on Ubuntu Utopic (14.10) and want to do the following, preferably
  with a Python script.

  I want to install a printer driver package from Epson (which is
  available as both DEB and RPM) through its apt or yum repository so that
  future updates get installed automatically through the distro's update
  mechanism. I also want to assure by means of a key fingerprint that
  repository and package are really from Epson.

  The package name for example is

  epson-inkjet-printer-escpr

  The key fingerprint is

  E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56

  and the Debian package repository is

  deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main

  This data is polled from OpenPrinting:

  
https://www.openprinting.org/query.cgi?moreinfo=1showprinterid=1onlynewestdriverpackages=0architectures=amd64noobsoletes=1onlyfree=0onlymanufacturer=0onlydownload=1packagesystem=debonlysigneddriverpackages=0format=xmltype=driversprinter=MFG:EPSON;MDL
  :EP-801A%20Series;DES:EPSON%20EP-801A%20Series;CLS:PRINTER;

  One can replace the packagesystem=deb in the URL by packagesystem=rpm
  for RPM-based distros.

  Now I run a script of system-config-printer,
  /usr/share/system-config-printer/install-printerdriver.py via the command

  install-printerdriver 'epson-inkjet-printer-escpr' 'deb
  http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main'
  'E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56'

  Or by pasting the commands at the python prompt:

  till@till-twist:~$ python3
  Python 3.4.2 (default, Oct  8 2014, 13:08:17) 
  [GCC 4.9.1] on linux
  Type help, copyright, credits or license for more information.
   from gi.repository import GLib, PackageKitGlib
   import sys
   def progress(progress, type, user_data):
  ...pass
  ... 
   package = 'epson-inkjet-printer-escpr'
   repo = 'deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 
main'
   repo_gpg_id = 'E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56'
   pk = PackageKitGlib.Client()
   res = pk.install_signature(PackageKitGlib.SigTypeEnum.GPG, repo_gpg_id, 
'', None, progress, None)
   res.get_exit_code()
  enum PK_EXIT_ENUM_SUCCESS of type PkExitEnum
   res = pk.resolve(PackageKitGlib.FilterEnum.NONE, [package], None, lambda 
p, t, d: True, None)
  Traceback (most recent call last):
File stdin, line 1, in module
  GLib.Error: pk_client_error: Package name epson-inkjet-printer-escpr could 
not be resolved. (263)
   res = pk.repo_enable(repo, True, None, progress, None)
   res = pk.refresh_cache(False, None, progress, None)
   res = pk.resolve(PackageKitGlib.FilterEnum.NONE, [package], None, lambda 
p, t, d: True, None)
   package_ids = res.get_package_array()
   package_id = package_ids[0].get_id()
   package_id
  'epson-inkjet-printer-escpr;1.4.1-1lsb3.2;amd64;printdriver'
   package_ids[0].get_info()  PackageKitGlib.InfoEnum.INSTALLED
  0
   res = pk.install_packages(True, [package_id], None, progress, None)
  Traceback (most recent call last):
File stdin, line 1, in module
  GLib.Error: pk_client_error: The version 1.4.1-1lsb3.2/printdriver of 
epson-inkjet-printer-escpr isn't available. (263)
   res = pk.install_packages(True, 
['epson-inkjet-printer-escpr;1.4.1-1lsb3.2;amd64;'], None, progress, None)
   res = pk.get_files([package_id], None, progress, None)
   files = res.get_files_array()
  

  The problem is that the step of actually installing the package (res
  = pk.install_packages(..)) errors. It says:

  The version 1.4.1-1lsb3.2/printdriver of epson-inkjet-printer-escpr
  isn't available.

  So the version number is messed up (/printdriver added) and
  therefore the package not found. If I manipulate the package ID
  somewhat, removing the printdriver in the end, the package
  installation works (I have checked in another terminal that the
  package got actually installed).

  The same error occurs with pkcon install epson-inkjet-printer-escpr
  on the command line.

  The problem seems not to be caused by the transition from Python 2 to
  Python3. I can 

[Desktop-packages] [Bug 1397750] Re: Not able to install packages using the PackageKit D-Bus API

2014-12-04 Thread Till Kamppeter
Added system-config-printer task for a workaround applied to system-
config-printer (in version 1.5.3+20141029-0ubuntu2). Note that this is a
workaround, the bug is still in aptdaemon.

** Also affects: system-config-printer (Ubuntu)
   Importance: Undecided
   Status: New

** Changed in: system-config-printer (Ubuntu)
   Status: New = In Progress

** Changed in: system-config-printer (Ubuntu)
   Importance: Undecided = High

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to system-config-printer in Ubuntu.
https://bugs.launchpad.net/bugs/1397750

Title:
  Not able to install packages using the PackageKit D-Bus API

Status in aptdaemon package in Ubuntu:
  New
Status in system-config-printer package in Ubuntu:
  In Progress

Bug description:
  I am on Ubuntu Utopic (14.10) and want to do the following, preferably
  with a Python script.

  I want to install a printer driver package from Epson (which is
  available as both DEB and RPM) through its apt or yum repository so that
  future updates get installed automatically through the distro's update
  mechanism. I also want to assure by means of a key fingerprint that
  repository and package are really from Epson.

  The package name for example is

  epson-inkjet-printer-escpr

  The key fingerprint is

  E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56

  and the Debian package repository is

  deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main

  This data is polled from OpenPrinting:

  
https://www.openprinting.org/query.cgi?moreinfo=1showprinterid=1onlynewestdriverpackages=0architectures=amd64noobsoletes=1onlyfree=0onlymanufacturer=0onlydownload=1packagesystem=debonlysigneddriverpackages=0format=xmltype=driversprinter=MFG:EPSON;MDL
  :EP-801A%20Series;DES:EPSON%20EP-801A%20Series;CLS:PRINTER;

  One can replace the packagesystem=deb in the URL by packagesystem=rpm
  for RPM-based distros.

  Now I run a script of system-config-printer,
  /usr/share/system-config-printer/install-printerdriver.py via the command

  install-printerdriver 'epson-inkjet-printer-escpr' 'deb
  http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main'
  'E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56'

  Or by pasting the commands at the python prompt:

  till@till-twist:~$ python3
  Python 3.4.2 (default, Oct  8 2014, 13:08:17) 
  [GCC 4.9.1] on linux
  Type help, copyright, credits or license for more information.
   from gi.repository import GLib, PackageKitGlib
   import sys
   def progress(progress, type, user_data):
  ...pass
  ... 
   package = 'epson-inkjet-printer-escpr'
   repo = 'deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 
main'
   repo_gpg_id = 'E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56'
   pk = PackageKitGlib.Client()
   res = pk.install_signature(PackageKitGlib.SigTypeEnum.GPG, repo_gpg_id, 
'', None, progress, None)
   res.get_exit_code()
  enum PK_EXIT_ENUM_SUCCESS of type PkExitEnum
   res = pk.resolve(PackageKitGlib.FilterEnum.NONE, [package], None, lambda 
p, t, d: True, None)
  Traceback (most recent call last):
File stdin, line 1, in module
  GLib.Error: pk_client_error: Package name epson-inkjet-printer-escpr could 
not be resolved. (263)
   res = pk.repo_enable(repo, True, None, progress, None)
   res = pk.refresh_cache(False, None, progress, None)
   res = pk.resolve(PackageKitGlib.FilterEnum.NONE, [package], None, lambda 
p, t, d: True, None)
   package_ids = res.get_package_array()
   package_id = package_ids[0].get_id()
   package_id
  'epson-inkjet-printer-escpr;1.4.1-1lsb3.2;amd64;printdriver'
   package_ids[0].get_info()  PackageKitGlib.InfoEnum.INSTALLED
  0
   res = pk.install_packages(True, [package_id], None, progress, None)
  Traceback (most recent call last):
File stdin, line 1, in module
  GLib.Error: pk_client_error: The version 1.4.1-1lsb3.2/printdriver of 
epson-inkjet-printer-escpr isn't available. (263)
   res = pk.install_packages(True, 
['epson-inkjet-printer-escpr;1.4.1-1lsb3.2;amd64;'], None, progress, None)
   res = pk.get_files([package_id], None, progress, None)
   files = res.get_files_array()
  

  The problem is that the step of actually installing the package (res
  = pk.install_packages(..)) errors. It says:

  The version 1.4.1-1lsb3.2/printdriver of epson-inkjet-printer-escpr
  isn't available.

  So the version number is messed up (/printdriver added) and
  therefore the package not found. If I manipulate the package ID
  somewhat, removing the printdriver in the end, the package
  installation works (I have checked in another terminal that the
  package got actually installed).

  The same error occurs with pkcon install epson-inkjet-printer-escpr
  on the command line.

  The problem seems not to be caused by the transition from Python 2 to
  Python3. I can paste the command sequence above also into Python 2 and
  get the same results.

  Please check whether this is really caused by aptdemon, perhaps it can
  

[Desktop-packages] [Bug 1397750] Re: Not able to install packages using the PackageKit D-Bus API

2014-12-04 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/vivid-proposed/system-config-printer

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to system-config-printer in Ubuntu.
https://bugs.launchpad.net/bugs/1397750

Title:
  Not able to install packages using the PackageKit D-Bus API

Status in aptdaemon package in Ubuntu:
  New
Status in system-config-printer package in Ubuntu:
  In Progress

Bug description:
  I am on Ubuntu Utopic (14.10) and want to do the following, preferably
  with a Python script.

  I want to install a printer driver package from Epson (which is
  available as both DEB and RPM) through its apt or yum repository so that
  future updates get installed automatically through the distro's update
  mechanism. I also want to assure by means of a key fingerprint that
  repository and package are really from Epson.

  The package name for example is

  epson-inkjet-printer-escpr

  The key fingerprint is

  E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56

  and the Debian package repository is

  deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main

  This data is polled from OpenPrinting:

  
https://www.openprinting.org/query.cgi?moreinfo=1showprinterid=1onlynewestdriverpackages=0architectures=amd64noobsoletes=1onlyfree=0onlymanufacturer=0onlydownload=1packagesystem=debonlysigneddriverpackages=0format=xmltype=driversprinter=MFG:EPSON;MDL
  :EP-801A%20Series;DES:EPSON%20EP-801A%20Series;CLS:PRINTER;

  One can replace the packagesystem=deb in the URL by packagesystem=rpm
  for RPM-based distros.

  Now I run a script of system-config-printer,
  /usr/share/system-config-printer/install-printerdriver.py via the command

  install-printerdriver 'epson-inkjet-printer-escpr' 'deb
  http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main'
  'E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56'

  Or by pasting the commands at the python prompt:

  till@till-twist:~$ python3
  Python 3.4.2 (default, Oct  8 2014, 13:08:17) 
  [GCC 4.9.1] on linux
  Type help, copyright, credits or license for more information.
   from gi.repository import GLib, PackageKitGlib
   import sys
   def progress(progress, type, user_data):
  ...pass
  ... 
   package = 'epson-inkjet-printer-escpr'
   repo = 'deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 
main'
   repo_gpg_id = 'E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56'
   pk = PackageKitGlib.Client()
   res = pk.install_signature(PackageKitGlib.SigTypeEnum.GPG, repo_gpg_id, 
'', None, progress, None)
   res.get_exit_code()
  enum PK_EXIT_ENUM_SUCCESS of type PkExitEnum
   res = pk.resolve(PackageKitGlib.FilterEnum.NONE, [package], None, lambda 
p, t, d: True, None)
  Traceback (most recent call last):
File stdin, line 1, in module
  GLib.Error: pk_client_error: Package name epson-inkjet-printer-escpr could 
not be resolved. (263)
   res = pk.repo_enable(repo, True, None, progress, None)
   res = pk.refresh_cache(False, None, progress, None)
   res = pk.resolve(PackageKitGlib.FilterEnum.NONE, [package], None, lambda 
p, t, d: True, None)
   package_ids = res.get_package_array()
   package_id = package_ids[0].get_id()
   package_id
  'epson-inkjet-printer-escpr;1.4.1-1lsb3.2;amd64;printdriver'
   package_ids[0].get_info()  PackageKitGlib.InfoEnum.INSTALLED
  0
   res = pk.install_packages(True, [package_id], None, progress, None)
  Traceback (most recent call last):
File stdin, line 1, in module
  GLib.Error: pk_client_error: The version 1.4.1-1lsb3.2/printdriver of 
epson-inkjet-printer-escpr isn't available. (263)
   res = pk.install_packages(True, 
['epson-inkjet-printer-escpr;1.4.1-1lsb3.2;amd64;'], None, progress, None)
   res = pk.get_files([package_id], None, progress, None)
   files = res.get_files_array()
  

  The problem is that the step of actually installing the package (res
  = pk.install_packages(..)) errors. It says:

  The version 1.4.1-1lsb3.2/printdriver of epson-inkjet-printer-escpr
  isn't available.

  So the version number is messed up (/printdriver added) and
  therefore the package not found. If I manipulate the package ID
  somewhat, removing the printdriver in the end, the package
  installation works (I have checked in another terminal that the
  package got actually installed).

  The same error occurs with pkcon install epson-inkjet-printer-escpr
  on the command line.

  The problem seems not to be caused by the transition from Python 2 to
  Python3. I can paste the command sequence above also into Python 2 and
  get the same results.

  Please check whether this is really caused by aptdemon, perhaps it can
  also be the PackageKit client.

  Yje bug makes the automatic printer driver installation by system-
  config-printer not working any more, therefore i set its importance to
  High.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/1397750/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post 

[Desktop-packages] [Bug 1397750] Re: Not able to install packages using the PackageKit D-Bus API

2014-12-04 Thread Launchpad Bug Tracker
This bug was fixed in the package system-config-printer -
1.5.3+20141029-0ubuntu2

---
system-config-printer (1.5.3+20141029-0ubuntu2) vivid; urgency=medium

  * debian/patches/35_package-download-fixes.patch: Fixed several bugs to
make automatic printer driver download working again:
 o Use pyrequests instead of pycurl for secure (verified certificate)
   downloads. pycurl stopped working after the OpenPrinting web server
   has moved from Ubuntu 10.04 to 12.04.
 o In the install-printerdriver script improved the check for the
   necessity of adfding the driver's Debian repository and added a
   workaround for a bug in aptdaemon interpreting PackageKit's package
   IDs wrongly when installing a package (LP: #1397750).
 o Bugs in the outsourcing of the OpenPrinting request code into
   from newprinter.py into the new OpenPrintingRequest.py
 o Python3 transition bugs
  * debian/patches/07_driver-auto-download-configuration.patch: The variables
for auto-download configuration have moved from newprinter.py to the new
config.py file.
  * debian/control: Depend on python-requests instead of on python-pycurl.
 -- Till Kamppeter till.kamppe...@gmail.com   Thu,  4 Dec 2014 23:32:26 +0100

** Changed in: system-config-printer (Ubuntu)
   Status: In Progress = Fix Released

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to system-config-printer in Ubuntu.
https://bugs.launchpad.net/bugs/1397750

Title:
  Not able to install packages using the PackageKit D-Bus API

Status in aptdaemon package in Ubuntu:
  New
Status in system-config-printer package in Ubuntu:
  Fix Released

Bug description:
  I am on Ubuntu Utopic (14.10) and want to do the following, preferably
  with a Python script.

  I want to install a printer driver package from Epson (which is
  available as both DEB and RPM) through its apt or yum repository so that
  future updates get installed automatically through the distro's update
  mechanism. I also want to assure by means of a key fingerprint that
  repository and package are really from Epson.

  The package name for example is

  epson-inkjet-printer-escpr

  The key fingerprint is

  E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56

  and the Debian package repository is

  deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main

  This data is polled from OpenPrinting:

  
https://www.openprinting.org/query.cgi?moreinfo=1showprinterid=1onlynewestdriverpackages=0architectures=amd64noobsoletes=1onlyfree=0onlymanufacturer=0onlydownload=1packagesystem=debonlysigneddriverpackages=0format=xmltype=driversprinter=MFG:EPSON;MDL
  :EP-801A%20Series;DES:EPSON%20EP-801A%20Series;CLS:PRINTER;

  One can replace the packagesystem=deb in the URL by packagesystem=rpm
  for RPM-based distros.

  Now I run a script of system-config-printer,
  /usr/share/system-config-printer/install-printerdriver.py via the command

  install-printerdriver 'epson-inkjet-printer-escpr' 'deb
  http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main'
  'E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56'

  Or by pasting the commands at the python prompt:

  till@till-twist:~$ python3
  Python 3.4.2 (default, Oct  8 2014, 13:08:17) 
  [GCC 4.9.1] on linux
  Type help, copyright, credits or license for more information.
   from gi.repository import GLib, PackageKitGlib
   import sys
   def progress(progress, type, user_data):
  ...pass
  ... 
   package = 'epson-inkjet-printer-escpr'
   repo = 'deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 
main'
   repo_gpg_id = 'E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56'
   pk = PackageKitGlib.Client()
   res = pk.install_signature(PackageKitGlib.SigTypeEnum.GPG, repo_gpg_id, 
'', None, progress, None)
   res.get_exit_code()
  enum PK_EXIT_ENUM_SUCCESS of type PkExitEnum
   res = pk.resolve(PackageKitGlib.FilterEnum.NONE, [package], None, lambda 
p, t, d: True, None)
  Traceback (most recent call last):
File stdin, line 1, in module
  GLib.Error: pk_client_error: Package name epson-inkjet-printer-escpr could 
not be resolved. (263)
   res = pk.repo_enable(repo, True, None, progress, None)
   res = pk.refresh_cache(False, None, progress, None)
   res = pk.resolve(PackageKitGlib.FilterEnum.NONE, [package], None, lambda 
p, t, d: True, None)
   package_ids = res.get_package_array()
   package_id = package_ids[0].get_id()
   package_id
  'epson-inkjet-printer-escpr;1.4.1-1lsb3.2;amd64;printdriver'
   package_ids[0].get_info()  PackageKitGlib.InfoEnum.INSTALLED
  0
   res = pk.install_packages(True, [package_id], None, progress, None)
  Traceback (most recent call last):
File stdin, line 1, in module
  GLib.Error: pk_client_error: The version 1.4.1-1lsb3.2/printdriver of 
epson-inkjet-printer-escpr isn't available. (263)
   res = pk.install_packages(True, 
['epson-inkjet-printer-escpr;1.4.1-1lsb3.2;amd64;'], None, progress, None)
   res =