Package: dkms Version: 2.2.0.3-2 Severity: normal Tags: patch If users have apport installed (which right now resides in experimental for some more time), they could run into the following problem.
Unpacking linux-headers-3.17-1-amd64 (3.17-1~exp1) ... Setting up linux-headers-3.17-1-common (3.17-1~exp1) ... Setting up linux-kbuild-3.17 (3.17-1~exp1) ... Setting up linux-headers-3.17-1-amd64 (3.17-1~exp1) ... Examining /etc/kernel/header_postinst.d. run-parts: executing /etc/kernel/header_postinst.d/dkms 3.17-1-amd64 invalid /etc/os-release: Does not contain NAME and VERSION_ID Traceback (most recent call last): File "/usr/share/apport/package-hooks/dkms_packages.py", line 95, in <module> report.write(open(apport.fileutils.make_report_path(report), 'w')) File "/usr/lib/python2.7/dist-packages/problem_report.py", line 254, in write self._assert_bin_mode(file) File "/usr/lib/python2.7/dist-packages/problem_report.py", line 631, in _assert_bin_mode assert (type(file) == BytesIO or 'b' in file.mode), 'file stream must be in binary mode' AssertionError: file stream must be in binary mode Error! Bad return status for module build on kernel: 3.17-1-amd64 (x86_64) Consult /var/lib/dkms/virtualbox/4.3.14/build/make.log for more information. The python exception can be simply fixed by opening the apport report in binary write mode. if options.kernel: report['DKMSKernelVersion'] = options.kernel report.write(open(apport.fileutils.make_report_path(report), 'wb')) -- System Information: Debian Release: jessie/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.16-3-amd64 (SMP w/8 CPU cores) Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages dkms depends on: ii build-essential 11.7 ii coreutils 8.23-2 ii dpkg-dev 1.17.13 ii gcc 4:4.9.1-4 ii kmod 18-3 ii make-guile [make] 4.0-8 ii patch 2.7.1-6 Versions of packages dkms recommends: ii fakeroot 1.20.2-1 ii linux-headers-amd64 3.16+61 pn linux-image <none> ii sudo 1.8.10p3-1 dkms suggests no packages. -- Configuration Files: /etc/modprobe.d/dkms.conf changed: -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org