cannot install deb files when path contains utf-8 characters

Bug #623903 reported by jt
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Aptdaemon
New
Undecided
Unassigned
aptdaemon (Ubuntu)
New
Undecided
Unassigned
software-center (Ubuntu)
Triaged
High
Unassigned

Bug Description

The following unhandled error occurs when trying to install a .deb file in Software Center:

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/aptdaemon/worker.py", line 770, in simulate
    return self._simulate_helper(trans, status_path)
  File "/usr/lib/python2.6/dist-packages/aptdaemon/worker.py", line 845, in _simulate_helper
    deb = apt.debfile.DebPackage(trans.kwargs["path"], self._cache)
  File "/usr/lib/python2.6/dist-packages/apt/debfile.py", line 57, in __init__
    self.open(filename)
  File "/usr/lib/python2.6/dist-packages/apt/debfile.py", line 69, in open
    self._sections = apt_pkg.TagSection(control.decode("UTF-8", 'ignore'))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 646: ordinal not in range(128)

Revision history for this message
António PT (antoniopt) wrote :

It's not only when installing Ubuntu Tweak. Dropbox also gives the same error.

Screenshot included.

summary: - aptdaemon-An unhandlable error occured during install package from
- .deb(fille included).
+ Error ocurrs when installing .deb in Software Center
description: updated
Revision history for this message
Sebastian Heinlein (glatzor) wrote : Re: Error ocurrs when installing .deb in Software Center

Could you please paste the complete path to the package file. It is located on your Desktop? Which version of Ubuntu do you use?

Revision history for this message
António PT (antoniopt) wrote :

The path contains UTF-8 characters, if that's what you're asking.

I'm using Maverick, aptdaemon version 0.31+bzr474-0ubuntu1.

Revision history for this message
Josef Andersson (northar) wrote :

Getting the same while installing a deb, filed under path cotaining utf-8 and spaces (/user/home/hämtningar/my downloads)

Revision history for this message
Kiwinote (kiwinote) wrote :

Adding a s-c task for tracking purposes. This affects all users with unicode characters in their username / in the path to the deb file.

Changed in software-center (Ubuntu):
importance: Undecided → High
milestone: none → ubuntu-10.10
status: New → Triaged
summary: - Error ocurrs when installing .deb in Software Center
+ cannot install deb files when path contains utf-8 characters
Revision history for this message
Sebastian Heinlein (glatzor) wrote :

Takeing a look at the traceback the problem isn't the path but a unicode char in a section.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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