cannot determine package name from file

Bug #1639427 reported by Ritesh Raj Sarraf
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Apport
New
Undecided
Unassigned
apport (Debian)
Fix Released
Unknown

Bug Description

Hello Martin,

I'm trying to refresh apport in Debian, again, as a crash detection tool. apport-retrace is an important component for the workflow I want to build on Debian. Currently, apport-retrace doesn't seem to be capable of working perfect under Debian.

From the logs below, you can see that apport-retrace is not able to determine respective package name for many of the libraries.

For the same file, running dpkg yields the correct package name.

Package installation details:

rrs@learner:/var/crash$ dpkg -l | grep apport
ii apport 2.20.3-1 all automatically generate crash reports for debugging
ii apport-gtk 2.20.3-1 all GTK+ frontend for the apport crash report system
ii apport-notify 2.20.3-1 amd64 automatically generate crash reports for debugging
ii apport-retrace 2.20.3-1 all tools for reprocessing Apport crash reports
ii apport-valgrind 2.20.3-1 all valgrind wrapper that first downloads debug symbols
ii python-apport 2.20.3-1 all Python library for Apport crash report handling
ii python3-apport 2.20.3-1 all Python 3 library for Apport crash report handling
2016-11-05 / 15:52:03 ♒♒♒ ☺

THere is nothing interesting in apport.log either.

ERROR: apport (pid 4831) Fri Apr 1 18:25:03 2016: wrote report /var/crash/_usr_bin_gnome-tweak-tool.1000.crash
ERROR: apport (pid 13192) Sat Apr 2 21:51:40 2016: called for pid 5360, signal 11, core limit 0
ERROR: apport (pid 13192) Sat Apr 2 21:51:40 2016: executable: /usr/lib/chromium/chromium (command line "/usr/lib/chromium/chromium\ --show-component-extension-options\ --ignore-gpu-blacklist\ --password-store=detect\ --touch-devices=2")
ERROR: apport (pid 13192) Sat Apr 2 21:51:40 2016: is_closing_session(): no DBUS_SESSION_BUS_ADDRESS in environment
ERROR: apport (pid 13192) Sat Apr 2 21:51:40 2016: apport: report /var/crash/_usr_lib_chromium_chromium.1000.crash already exists and unseen, doing nothing to avoid disk usage DoS
ERROR: apport (pid 1603) Sat Nov 5 14:36:59 2016: called for pid 2205, signal 11, core limit 0
ERROR: apport (pid 1603) Sat Nov 5 14:36:59 2016: executable: /usr/lib/geoclue-2.0/geoclue (command line "/usr/lib/geoclue-2.0/geoclue -t 5")
ERROR: apport (pid 1603) Sat Nov 5 14:36:59 2016: is_closing_session(): no DBUS_SESSION_BUS_ADDRESS in environment
invalid /etc/os-release: Does not contain NAME and VERSION_ID
ERROR: apport (pid 1603) Sat Nov 5 14:37:01 2016: wrote report /var/crash/_usr_lib_geoclue-2.0_geoclue.111.crash

=======================apport-retrace log=======================================

rrs@learner:~$ apport-retrace -S system --cache ~/.cache/apport/retrace/ --stdout /var/crash/_usr_lib_geoclue-2.0_geoclue.111.crash
invalid /etc/os-release: Does not contain NAME and VERSION_ID
I do not have permission to write to /var/lib/debtags/
WARNING: /lib/x86_64-linux-gnu/libc-2.24.so is needed, but cannot be mapped to a package
WARNING: /lib/x86_64-linux-gnu/librt-2.24.so is needed, but cannot be mapped to a package
WARNING: /lib/x86_64-linux-gnu/libresolv-2.24.so is needed, but cannot be mapped to a package
WARNING: /usr/lib/x86_64-linux-gnu/libicui18n.so.57.1 is needed, but cannot be mapped to a package
WARNING: /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0 is needed, but cannot be mapped to a package
WARNING: /lib/x86_64-linux-gnu/libz.so.1.2.8 is needed, but cannot be mapped to a package
WARNING: /lib/x86_64-linux-gnu/libidn.so.11.6.16 is needed, but cannot be mapped to a package
WARNING: /lib/x86_64-linux-gnu/libpcre.so.3.13.3 is needed, but cannot be mapped to a package
WARNING: /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22 is needed, but cannot be mapped to a package
WARNING: /usr/lib/x86_64-linux-gnu/libxml2.so.2.9.4 is needed, but cannot be mapped to a package
WARNING: /usr/lib/x86_64-linux-gnu/libavahi-glib.so.1.0.2 is needed, but cannot be mapped to a package
WARNING: /lib/x86_64-linux-gnu/libnss_files-2.24.so is needed, but cannot be mapped to a package
WARNING: /lib/x86_64-linux-gnu/libselinux.so.1 is needed, but cannot be mapped to a package
WARNING: /lib/x86_64-linux-gnu/libmount.so.1.1.0 is needed, but cannot be mapped to a package
WARNING: /lib/x86_64-linux-gnu/libgpg-error.so.0.19.1 is needed, but cannot be mapped to a package
WARNING: /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0.5000.1 is needed, but cannot be mapped to a package
WARNING: /usr/lib/x86_64-linux-gnu/libavahi-common.so.3.5.3 is needed, but cannot be mapped to a package
WARNING: /lib/x86_64-linux-gnu/libblkid.so.1.1.0 is needed, but cannot be mapped to a package
WARNING: /lib/x86_64-linux-gnu/libdl-2.24.so is needed, but cannot be mapped to a package
WARNING: /usr/lib/x86_64-linux-gnu/libsoup-2.4.so.1.8.0 is needed, but cannot be mapped to a package
WARNING: /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2 is needed, but cannot be mapped to a package
WARNING: /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3 is needed, but cannot be mapped to a package
WARNING: /lib/x86_64-linux-gnu/libcom_err.so.2.1 is needed, but cannot be mapped to a package
WARNING: /lib/x86_64-linux-gnu/ld-2.24.so is needed, but cannot be mapped to a package
WARNING: /usr/lib/x86_64-linux-gnu/libgnutls.so.30.11.0 is needed, but cannot be mapped to a package
WARNING: /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.2 is needed, but cannot be mapped to a package
WARNING: /lib/x86_64-linux-gnu/libsystemd.so.0.17.0 is needed, but cannot be mapped to a package
WARNING: /lib/x86_64-linux-gnu/libkeyutils.so.1.5 is needed, but cannot be mapped to a package
WARNING: /lib/x86_64-linux-gnu/libgcc_s.so.1 is needed, but cannot be mapped to a package
WARNING: /usr/lib/x86_64-linux-gnu/libhogweed.so.4.3 is needed, but cannot be mapped to a package
WARNING: /lib/x86_64-linux-gnu/libm-2.24.so is needed, but cannot be mapped to a package
WARNING: /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.1 is needed, but cannot be mapped to a package
WARNING: /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.5000.1 is needed, but cannot be mapped to a package
WARNING: /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6 is needed, but cannot be mapped to a package
WARNING: /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.1 is needed, but cannot be mapped to a package
WARNING: /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1 is needed, but cannot be mapped to a package
WARNING: /lib/x86_64-linux-gnu/libnss_myhostname.so.2 is needed, but cannot be mapped to a package
WARNING: /usr/lib/x86_64-linux-gnu/libjson-glib-1.0.so.0.200.2 is needed, but cannot be mapped to a package
WARNING: /usr/lib/x86_64-linux-gnu/libavahi-client.so.3.2.9 is needed, but cannot be mapped to a package
WARNING: /usr/lib/x86_64-linux-gnu/libicuuc.so.57.1 is needed, but cannot be mapped to a package
WARNING: /lib/x86_64-linux-gnu/libgcrypt.so.20.1.3 is needed, but cannot be mapped to a package
WARNING: /usr/lib/x86_64-linux-gnu/libmm-glib.so.0.3.0 is needed, but cannot be mapped to a package
WARNING: /lib/x86_64-linux-gnu/libpthread-2.24.so is needed, but cannot be mapped to a package
WARNING: /lib/x86_64-linux-gnu/libnss_mdns4_minimal.so.2 is needed, but cannot be mapped to a package
WARNING: /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.1 is needed, but cannot be mapped to a package
WARNING: /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4 is needed, but cannot be mapped to a package
WARNING: /usr/lib/x86_64-linux-gnu/gio/modules/libgiognutls.so is needed, but cannot be mapped to a package
WARNING: /lib/x86_64-linux-gnu/libuuid.so.1.3.0 is needed, but cannot be mapped to a package
WARNING: /lib/x86_64-linux-gnu/libnss_resolve.so.2 is needed, but cannot be mapped to a package
WARNING: /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1 is needed, but cannot be mapped to a package
WARNING: /usr/lib/x86_64-linux-gnu/libnettle.so.6.3 is needed, but cannot be mapped to a package
WARNING: /usr/lib/x86_64-linux-gnu/libicudata.so.57.1 is needed, but cannot be mapped to a package
WARNING: /lib/x86_64-linux-gnu/libdbus-1.so.3.14.8 is needed, but cannot be mapped to a package
WARNING: /lib/x86_64-linux-gnu/liblzma.so.5.2.2 is needed, but cannot be mapped to a package
ERROR: Cannot find package which ships ExecutablePath /usr/lib/geoclue-2.0/geoclue
2016-11-05 / 15:48:21 ♒♒♒ ☹ => 1

rrs@learner:~$ dpkg -S /lib/x86_64-linux-gnu/liblzma.so.5.2.2
liblzma5:amd64: /lib/x86_64-linux-gnu/liblzma.so.5.2.2
2016-11-05 / 15:48:39 ♒♒♒ ☺

Revision history for this message
Ritesh Raj Sarraf (rrs) wrote :
Download full text (6.6 KiB)

Martin,

Can you give me some pointers on how this should be dealt with in Debian ?

rrs@learner:~/rrs-home/Community/Packaging/apport (master)$ apport-retrace -S "Debian testing" --stdout /var/crash/_usr_bin_evolution.1000.crash
Traceback (most recent call last):
  File "/usr/bin/apport-retrace", line 301, in <module>
    options.dynamic_origins)
  File "/usr/lib/python2.7/dist-packages/apport/sandboxutils.py", line 203, in make_sandbox
    architecture=report.get('Architecture'), origins=origins)
  File "/usr/lib/python2.7/dist-packages/apport/packaging_impl.py", line 727, in install_packages
    self.set_mirror(self._get_primary_mirror_from_apt_sources(apt_sources))
  File "/usr/lib/python2.7/dist-packages/apport/packaging_impl.py", line 1112, in _get_primary_mirror_from_apt_sources
    with open(apt_sources) as f:
IOError: [Errno 2] No such file or directory: u'Debian testing/Debian testing/sources.list'
2016-11-11 / 23:04:35 ♒♒♒ ☹ => 1

rrs@learner:~/rrs-home/Community/Packaging/apport (master)$ apport-retrace -S testing --stdout /var/crash/_usr_bin_evolution.1000.crash
Traceback (most recent call last):
  File "/usr/bin/apport-retrace", line 301, in <module>
    options.dynamic_origins)
  File "/usr/lib/python2.7/dist-packages/apport/sandboxutils.py", line 203, in make_sandbox
    architecture=report.get('Architecture'), origins=origins)
  File "/usr/lib/python2.7/dist-packages/apport/packaging_impl.py", line 727, in install_packages
    self.set_mirror(self._get_primary_mirror_from_apt_sources(apt_sources))
  File "/usr/lib/python2.7/dist-packages/apport/packaging_impl.py", line 1112, in _get_primary_mirror_from_apt_sources
    with open(apt_sources) as f:
IOError: [Errno 2] No such file or directory: u'testing/Debian testing/sources.list'
2016-11-11 / 23:04:46 ♒♒♒ ☹ => 1

The only argument it can take is system, but that has its own glitch. When passing 'system' as the sandbox type, it only looks at /etc/apt/sources.list. Since my debug URLs are defined inside sources.list.d/, it doesn't seem to be picking that.

OTOH, if I do not pass -S, I am not getting the desired result.

rrs@learner:~/rrs-home/Community/Packaging/apport (master)$ apport-retrace --stdout /var/crash/_usr_bin_evolution.1000.crash
dpkg-source: info: extracting evolution in evolution-3.22.2
dpkg-source: info: unpacking evolution_3.22.2.orig.tar.xz
dpkg-source: info: unpacking evolution_3.22.2-1.debian.tar.xz
dpkg-source: info: applying 02_nss_paths.patch
dpkg-source: info: applying 10_revert_libevolution_avoid-version.patch
--- stack trace ---
#0 0x0000000000000000 in ?? ()
No symbol table info available.
#1 0x00007f5871a1e63c in ?? () from /usr/lib/evolution/libevolution-mail.so.0
No symbol table info available.
#2 0x00007f58998ce453 in ?? () from /usr/lib/evolution/libevolution-util.so.0
No symbol table info available.
#3 0x00007f58998ce787 in gal_a11y_e_cell_toggle_new () from /usr/lib/evolution/libevolution-util.so.0
No symbol table info available.
#4 0x00007f58998d2045 in ?? () from /usr/lib/evolution/libevolution-util.so.0
No symbol table info available.
#5 0x00007f58998d2236 in ?? () from /usr/lib/evolution/libevolution-util.so.0
No symbol...

Read more...

Revision history for this message
Ritesh Raj Sarraf (rrs) wrote :
Download full text (4.2 KiB)

So when passing "-S system", it gives wrong output, that packages are "Uninstalled" and cannot find a package name.

And without the "-S" option, it, as expected, say, "Incomplete backtrace". Which is correct.

rrs@learner:/var/crash$ apport-retrace --stdout /var/crash/_usr_bin_calibre.1000.crash
dpkg-source: info: extracting calibre in calibre-2.71.0+dfsg
dpkg-source: info: unpacking calibre_2.71.0+dfsg.orig.tar.xz
dpkg-source: info: unpacking calibre_2.71.0+dfsg-1.debian.tar.xz
dpkg-source: info: applying Disable-update-check-by-default.patch
dpkg-source: info: applying Disable-plugin-dialog.patch
dpkg-source: info: applying Use-packaged-instead-of-bundled-feedparser-Python-module.patch
dpkg-source: info: applying Do-not-build-unrar-extension-as-we-strip-unrar-from-the-t.patch
dpkg-source: info: applying content-server-Don-t-load-external-URLs-for-privacy.patch
--- stack trace ---
#0 0x00007f1abbef2bdf in QObject::disconnect(QObject const*, char const*, QObject const*, char const*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
No symbol table info available.
#1 0x00007f1ab791dd50 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
No symbol table info available.
#2 0x00007f1ab790a7e2 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
No symbol table info available.
#3 0x00007f1abbce7d98 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
No symbol table info available.
#4 0x00007f1ac5d6f464 in start_thread (arg=0x7f1a972ff700) at pthread_create.c:333
        __res = <optimized out>
        pd = 0x7f1a972ff700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {139752182380288, 8731136441484374405, 0, 140735890520767, 0, 139752969502784, -8710502594513669755, -8710328948824804987}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#5 0x00007f1ac518d9df in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105
No locals.
--- source code stack trace ---
#0 0x00007f1abbef2bdf in QObject::disconnect(QObject const*, char const*, QObject const*, char const*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#1 0x00007f1ab791dd50 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#2 0x00007f1ab790a7e2 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#3 0x00007f1abbce7d98 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4 0x00007f1ac5d6f464 in start_thread (arg=0x7f1a972ff700) at pthread_create.c:333
  [Error: pthread_create.c was not found in source tree]
#5 0x00007f1ac518d9df in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105
  [Error: clone.S was not found in source tree]

2016-11-21 / 15:19:43 ♒♒♒ ☺

rrs@learner:/var/crash$ apport-retrace -S system --cache ~/.cache/apport/retrace/ --stdout /var/crash/_usr_bin_calibre.1000.crash
invalid /etc/os-release: Does not contain NAME and VERSION_ID
I do not have permission to write to /var/lib/debtags/
Uninstalled is True
WARNING: /usr/lib/x86_64-linux-gnu/libX...

Read more...

Ritesh Raj Sarraf (rrs)
Changed in apport (Debian):
importance: Undecided → Unknown
status: New → Unknown
Changed in apport (Debian):
status: Unknown → Confirmed
Revision history for this message
Martin Pitt (pitti) wrote :

At first sight this could be because Apport's __AptDpkgPackageInfo._search_contents is written with Ubuntu archive's layout, which is http://archive.ubuntu.com/ubuntu/dists/xenial/Contents-i386.gz, i. e. Contents-*.gz is directly underneath series/.

However, in Debian it's different: http://ftp.de.debian.org/debian/dists/unstable/main/Contents-i386.gz, i. e. it's underneath series/component/.

Apport should either check both locations, or better, read series/Release and get the Contents-<arch>.gz path from there.

If a report has ProcMaps, apport-retrace does not actually install all transitive dependencies but maps ProcMaps files to packages via the "get package for uninstalled file" mechanism. Bug 1684117 makes that worse as it currently prefers Contents.gz lookups over installed packages.

@Ritesh: to confirm, hack this line in backends/packaging-apt-dpkg.py

                url = '%s/dists/%s%s/Contents-%s.gz' % (self._get_mirror(), release, pocket, arch)

to

                url = '%s/dists/%s%s/main/Contents-%s.gz' % (self._get_mirror(), release, pocket, arch)

and see if that works. Of course the hardcoded "main/" is insufficient, but this will at least verify that this is the root cause.

Revision history for this message
Ritesh Raj Sarraf (rrs) wrote :
Download full text (11.5 KiB)

Unfortunately, that doesn't have any impact.

rrs@learner:/var/tmp/bisect$ apport-retrace -vvv -S system --cache ~/.cache/apport/retrace/ --stdout /var/crash/_usr_lib_gnome-terminal_gnome-terminal-server.1000.crash
Hit http://deb.debian.org/debian testing InRelease
Hit http://deb.debian.org/debian unstable InRelease
Hit http://deb.debian.org/debian experimental InRelease
Hit http://security.debian.org testing/updates InRelease
Hit http://debug.mirrors.debian.org/debian-debug unstable-debug InRelease
Hit http://debug.mirrors.debian.org/debian-debug testing-debug InRelease
Fetched 0 B in 0s (0 B/s)
I do not have permission to write to /var/lib/debtags/
Fetched 0 B in 0s (0 B/s)
Extracting downloaded debs...
WARNING: /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2 is needed, but cannot be mapped to a package
WARNING: /usr/lib/x86_64-linux-gnu/libatk-bridge-2.0.so.0.0.0 is needed, but cannot be mapped to a package
WARNING: /usr/lib/x86_64-linux-gnu/libXcomposite.so.1.0.0 is needed, but cannot be mapped to a package
WARNING: /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.2.0 is needed, but cannot be mapped to a package
WARNING: /lib/x86_64-linux-gnu/libselinux.so.1 is needed, but cannot be mapped to a package
WARNING: /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0.5000.3 is needed, but cannot be mapped to a package
WARNING: /usr/lib/x86_64-linux-gnu/libgraphite2.so.3.0.1 is needed, but cannot be mapped to a package
WARNING: /usr/lib/x86_64-linux-gnu/libgtk-3.so.0.2200.12 is needed, but cannot be mapped to a package
WARNING: /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0 is needed, but cannot be mapped to a package
WARNING: /lib/x86_64-linux-gnu/libgpg-error.so.0.21.0 is needed, but cannot be mapped to a package
WARNING: /usr/lib/x86_64-linux-gnu/libpcre2-8.so.0.4.0 is needed, but cannot be mapped to a package
WARNING: /lib/x86_64-linux-gnu/libc-2.24.so is needed, but cannot be mapped to a package
WARNING: /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0.10400.2 is needed, but cannot be mapped to a package
WARNING: /lib/x86_64-linux-gnu/ld-2.24.so is needed, but cannot be ma...

Revision history for this message
Martin Pitt (pitti) wrote :

So this needs to be debugged then:

mkdir /tmp/cache
python3 -c 'import apport; print(apport.packaging.get_file_package("/lib/x86_64-linux-gnu/ld-2.24.so", True, "/tmp/cache"))'

Supposedly it spits out the warning and no result; does it actually download the Contents-* files to /tmp/cache/ ? I guess not.

Revision history for this message
Ritesh Raj Sarraf (rrs) wrote :

Thanks Martin. That does show the cause of the failures.

rrs@learner:/var/tmp/bisect$ python3 -c 'import apport; print(apport.packaging.get_file_package("/lib/x86_64-linux-gnu/ld-2.24.so", True, "/tmp/cache"))'
http://security.debian.org/dists/stretch-updates/main/Contents-amd64.gz
http://security.debian.org/dists/stretch-security/main/Contents-amd64.gz
http://security.debian.org/dists/stretch-proposed/main/Contents-amd64.gz
http://security.debian.org/dists/stretch/main/Contents-amd64.gz
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 460, in get_file_package
    return self._search_contents(file, map_cachedir, release, arch)
  File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 1203, in _search_contents
    src = urlopen(url)
  File "/usr/lib/python3.5/urllib/request.py", line 163, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.5/urllib/request.py", line 472, in open
    response = meth(req, response)
  File "/usr/lib/python3.5/urllib/request.py", line 582, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.5/urllib/request.py", line 510, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.5/urllib/request.py", line 444, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.5/urllib/request.py", line 590, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
2017-04-20 / 14:29:43 ♒♒♒ ☹ => 1

And looking at Debian's dists listing, this now looks like needs a patch to fix the URLs.
http://ftp.debian.org/debian/dists/

Revision history for this message
Martin Pitt (pitti) wrote :

Subscribing Benjamin Drung, who said yesterday that he has some patches to fix this for Debian.

Revision history for this message
Ritesh Raj Sarraf (rrs) wrote :

Thanks Martin. I just want to explore if getting it work for Debian is simple or requires substantial work.

quick debug seems that bypassing security.debian.org and properly crafting the url (there seems to be minor layout differences in between Ubuntu and Debian's repo) is working.

rrs@learner:/var/tmp/bisect$ python3 -c 'import apport; print(apport.packaging.get_file_package("/lib/x86_64-linux-gnu/ld-2.24.so", True, "/tmp/cache"))'
http://ftp.debian.org/debian/dists/stretch-security/main/Contents-amd64.gz
http://ftp.debian.org/debian/dists/stretch-security/main/Contents-amd64.gz
http://ftp.debian.org/debian/dists/stretch-proposed/main/Contents-amd64.gz
http://ftp.debian.org/debian/dists/stretch-proposed/main/Contents-amd64.gz
http://ftp.debian.org/debian/dists/stretch/main/Contents-amd64.gz
http://ftp.debian.org/debian/dists/stretch/main/Contents-amd64.gz
libc6
2017-04-20 / 14:52:58 ♒♒♒ ☺
rrs@learner:/var/tmp/bisect$ ls /tmp/cache/
stretch-Contents-amd64.gz stretch-updates-Contents-amd64.gz
2017-04-20 / 14:53:08 ♒♒♒ ☺

Revision history for this message
Benjamin Drung (bdrung) wrote :

Just a small update: I have patches in the pipeline for addressing this issue:

6e7c9e9 Work around wrong package name by installing everything
5832f7f WIP: Check all Contents.gz files
3736f4c Use Release file to determine Contents-$arch.gz files
d2c4db0 Print error message on HTTP 404 error
6f2932c Refactor __AptDpkgPackageInfo._search_contents()

The problem was that it still had problems. When I continue on apport-retrace, I will finish the patches and share them with you.

tags: added: id-5956ac068ac02cedd0e8e17c
Changed in apport (Debian):
status: Confirmed → 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.