← Back to team overview

desktop-packages team mailing list archive

[Bug 1391349] [NEW] apport-retrace is failing for Ubuntu RTM 14.09

 

Public bug reported:

I noticed that retraces of crashes from Ubuntu RTM 14.09 are failing and
I suspect it is because of the following in backends/packaging-apt-
dpkg.py:

            if age is None or age >= 86400:
                url = '%s/dists/%s%s/Contents-%s.gz' % (self._get_mirror(), release, pocket, arch)

                try:
                    src = urlopen(url)
                except IOError:
                    # we ignore non-existing pockets, but we do crash if the
                    # release pocket doesn't exist
                    if pocket == '':
                        raise

Because Ubuntu RTM 14.09 uses a different archive
(derived.archive.canonical.com) than the system one (archive.ubuntu.com)
this will fail.

Given that there is a retracer configuration for this release (and for
all releases), I think it'd make sense to use set_mirror from the same
code to choose the specific mirror.  This would need to be done in
apport/sandboxutils.py and would require sorting out the mirror from the
sources.list file in the config_dir.

** Affects: apport (Ubuntu)
     Importance: High
     Assignee: Martin Pitt (pitti)
         Status: Triaged

** Changed in: apport (Ubuntu)
       Status: New => Triaged

** Changed in: apport (Ubuntu)
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1391349

Title:
  apport-retrace is failing for Ubuntu RTM 14.09

Status in “apport” package in Ubuntu:
  Triaged

Bug description:
  I noticed that retraces of crashes from Ubuntu RTM 14.09 are failing
  and I suspect it is because of the following in backends/packaging-
  apt-dpkg.py:

              if age is None or age >= 86400:
                  url = '%s/dists/%s%s/Contents-%s.gz' % (self._get_mirror(), release, pocket, arch)

                  try:
                      src = urlopen(url)
                  except IOError:
                      # we ignore non-existing pockets, but we do crash if the
                      # release pocket doesn't exist
                      if pocket == '':
                          raise

  Because Ubuntu RTM 14.09 uses a different archive
  (derived.archive.canonical.com) than the system one
  (archive.ubuntu.com) this will fail.

  Given that there is a retracer configuration for this release (and for
  all releases), I think it'd make sense to use set_mirror from the same
  code to choose the specific mirror.  This would need to be done in
  apport/sandboxutils.py and would require sorting out the mirror from
  the sources.list file in the config_dir.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1391349/+subscriptions


Follow ups

References