"Internal Error" for bad package suggests an error in USC itself

Bug #1033548 reported by Matthew Paul Thomas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Ubuntu Software Center 5.2.4, Ubuntu 12.04

1. touch ./test.deb
2. xdg-open ./test.deb

What happens: USC displays an "Internal Error", "The file “/home/mpt/test.deb” could not be opened."

What should happen: The error message should not suggest that it is an "Internal Error" to USC.

Maybe no heading, just primary and secondary text like a normal error alert. Something like:
------------
The package “test.deb” can’t be opened because it is damaged or incomplete.

Try downloading the package again, or contact the publisher for an updated version.

(Technical info: Missing package name)
------------

Fixing this would alter the symptoms of bug 868188, bug 989398, and bug 909885.

description: updated
Revision history for this message
Kiwinote (kiwinote) wrote :

fwiw the traceback that causes the 'internal error' message is this (which is called in debfile.py in python-apt):
>>> import apt_inst
>>> apt_inst.DebFile('meh.deb')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
SystemError: E:read, still have 8 to read but none left
>>>

Changed in software-center (Ubuntu):
importance: Undecided → Low
status: New → Triaged
description: updated
summary: - "Internal Error" for empty .deb
+ "Internal Error" for bad package suggests an error in USC itself
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.