python3-distupgrade contains symlink to externally owned directory

Bug #1485093 reported by Barry Warsaw on 2015-08-14
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Medium
Unassigned
Wily
Undecided
Unassigned

Bug Description

python3-distupgrade contains the symlink /usr/lib/python3/dist-packages/DistUpgrade/NvidiaDetector which symlinks to ../NvidiaDetector. However /usr/lib/python3/dist-packages/NvidiaDetector is owned by ubuntu-drivers-common.

This causes a problem with at least the pex DEP-8 tests because in autopkgtest.ubuntu.com (and clean adt qemu images), python3-distupgrade is installed but not ubuntu-drivers-common. Thus when pex invokes pkg_resources' get_resource_stream() you get a FileNotFound exception on the former, i.e. dead, symlink.

Maybe python3-distupgrade should Depend on ubuntu-drivers-common, or maybe the symlink itself should be owned by the latter package. I don't think the former should just leave a dangling symlink on the system.

Related branches

tags: added: wily
Changed in ubuntu-release-upgrader (Ubuntu Wily):
status: New → Won't Fix
Changed in ubuntu-release-upgrader (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
no longer affects: ubuntu-release-upgrader
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-release-upgrader - 1:16.04.1

---------------
ubuntu-release-upgrader (1:16.04.1) xenial; urgency=medium

  [ Barry Warsaw ]
  * Don't try to import janitor and NvidiaDetector in a package relative
    to this one, to avoid the possibility of dangling symlinks when the
    packages actually containing these modules is not installed.
    (LP: #1485093)
  * debian/python3-distupgrade.links: Removed.

  [ Brian Murray ]
  * DistUpgrade/{EOL,}ReleaseAnnouncement,
    DistUpgrade/DistUpgrade/window_main.ui,
    data/gtkbuilder/DistUpgrade.ui,
    data/DistUpgrade.cfg,
    data/DistUpgrade.cfg.trusty,
    pre-build.sh:
    - updated for 15.10->16.04
  * DistUpgrade/DistUpgradeQuirks.py: add in a quirk to ensure that a linux
    metapackage is installed after the release upgrade. (LP: #1509305)

  [ Michael Vogt ]
  * DistUpgrade/DistUpgradeQuirks.py: improve linux metapackage check and add
    a test for it.

 -- Brian Murray <email address hidden> Tue, 27 Oct 2015 13:45:19 -0700

Changed in ubuntu-release-upgrader (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers