apport should disallow filing bugs for package install failures when they conflict with non-Ubuntu packages

Bug #871030 reported by Steve Langasek
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Medium
Brian Murray

Bug Description

From time to time, we get apport-generated bug reports about upgrade failures that are caused by conflicts with other packages not of Ubuntu origin. Example: bug #870814.

These bug reports are common enough that I think we should spend the effort to enhance apport to notice that the conflicted-with package is not an Ubuntu package, and divert the user to an explanation that they should remove the unofficial package instead of leading them to file a bug.

Steve Langasek (vorlon)
Changed in apport (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Brian Murray (brian-murray)
Revision history for this message
Charlie Kravetz (cjkgeek) wrote :

I agree with this bug report. We should be able to tell apport to notifyu users they have unofficial packages installed, and they can contact the packager/developer/source directly. Bug reports users generate using ubuntu-bug can still tell a user the report is unacceptable until the unofficial packages are removed from the system.

---
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad

Changed in apport (Ubuntu):
assignee: Brian Murray (brian-murray) → nobody
Changed in apport (Ubuntu):
assignee: nobody → Brian Murray (brian-murray)
assignee: Brian Murray (brian-murray) → nobody
Changed in apport (Ubuntu):
assignee: nobody → Brian Murray (brian-murray)
Revision history for this message
Brian Murray (brian-murray) wrote :

The dpkg string is:

po/zh_CN.po:msgid "trying to overwrite '%.250s', which is also in package %.250s %.250s"
po/zh_CN.po-msgstr "正试图覆盖 %.250s,它同时被包含于软件包 %.250s %.250s"

Revision history for this message
Brian Murray (brian-murray) wrote :

Well, this logic already exists in apport:

                if 'dpkg: error' in dupe_sig and line.startswith(' '):
                    if 'trying to overwrite' in line:
                        conflict_pkg = re.search('in package (.*) ', line)
                        if conflict_pkg and not apport.packaging.is_distro_package(conflict_pkg.group(1)):
                            report['UnreportableReason'] = _('An Ubuntu package has a file conflict with a package that is not a genuine Ubuntu package')
                        add_tag(report, 'package-conflict')

Revision history for this message
Brian Murray (brian-murray) wrote :

This was added sometime during the middle of the Oneiric development cycle and the referenced bug report is from a natty system.

Revision history for this message
Brian Murray (brian-murray) wrote :

Specifically with package version 1.22-0ubuntu1

Changed in apport (Ubuntu):
status: Triaged → Fix Released
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.