doesn't handle non-ascii characters in update information

Bug #396513 reported by David Nielsen
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
packagekit (Ubuntu)
Fix Released
High
Unassigned

Bug Description

I get the following error when attempting to use PackageKit-gnome to update my system

Error Type: <type 'exceptions.UnicodeEncodeError'>
Error Value: 'ascii' codec can't encode character u'\xef' in position 544: ordinal not in range(128)
  File : /usr/share/PackageKit/helpers/apt/aptBackend.py, line 1966, in <module>
    main()
  File : /usr/share/PackageKit/helpers/apt/aptBackend.py, line 1963, in main
    run(args, options.single)
  File : /usr/share/PackageKit/helpers/apt/aptBackend.py, line 1925, in run
    backend.dispatcher(args)
  File : /usr/lib/python2.6/dist-packages/packagekit/backend.py, line 643, in dispatcher
    self.dispatch_command(args[0], args[1:])
  File : /usr/lib/python2.6/dist-packages/packagekit/backend.py, line 533, in dispatch_command
    self.get_update_detail(package_ids)
  File : /usr/share/PackageKit/helpers/apt/aptBackend.py, line 735, in get_update_detail
    updated)
  File : /usr/lib/python2.6/dist-packages/packagekit/backend.py, line 235, in update_detail
    print >> sys.stdout, "updatedetail\t$s\t$s\t$s\t$s\t$s\t$s\t$s\t$s\t$s\t$s\t$s\t$s" $ (package_id, updates, obsoletes, vendor_url, bugzilla_url, cve_url, restart, update_text, changelog, state, issued, updated)

This is on x86_64 running Karmic

david@dawkins:~$ apt-cache policy packagekit packagekit-backend-apt

packagekit:
  Installeret: 0.4.8-0ubuntu3
  Kandidat: 0.4.8-0ubuntu3
  Versionstabel:
 *** 0.4.8-0ubuntu3 0
        500 http://archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status
packagekit-backend-apt:
  Installeret: 0.4.8-0ubuntu3
  Kandidat: 0.4.8-0ubuntu3
  Versionstabel:
 *** 0.4.8-0ubuntu3 0
        500 http://archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status

Related branches

James Westby (james-w)
summary: - spews error when attempting update
+ doesn't handle non-ascii characters in update information
Changed in packagekit (Ubuntu):
importance: Undecided → High
status: New → Confirmed
Changed in packagekit (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package packagekit - 0.4.9+20090825-0ubuntu1

---------------
packagekit (0.4.9+20090825-0ubuntu1) karmic; urgency=low

  * New upstream snapshot provding a lot of APT backend improvements:
    - Allow to install updates which require the installation of additional
      packages. Updates depending on the removal of a package are still
      blocked (LP: #342671, LP: #374011, LP: #374011)
    - Warn about the installation of untrusted package (LP: #256245)
    - Don't crash in APT post update hook if system D-Bus daemon isn't
      running (LP: #388623)
    - Don't try to estimate a download progress during cache updating, since
      APT reports only a forth- and backwards running progress. (LP: #348053)
    - Support for python-apt 0.7.12 (LP: #415993)
    - Translated package descriptions
  * debian/patches:
    - Remove ignore_packages_in_conffile (Merged upstream)
    - Remove fix_typo (Merged upstream)
    - Add fix_unicode: Handle the encoding messages via stdin/stdout correctly
      (LP: #396513)
    - Add fix_unicode_debfile: Convert the path of the local file which
      should be installed to the correct encoding (LP: #347327)
  * debian/libpackagekit-qt-dev.install: Fix install location of CMake module.
    Thanks to Sveinung Kvilhaugsvik (LP: #345706)
  * debian/control: Fix spelling of Qt. Thanks to Sveinung Kvilhaugsvik
    (LP: #378419)

 -- Sebastian Heinlein <email address hidden> Tue, 25 Aug 2009 13:03:26 +0200

Changed in packagekit (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.