Traceback (most recent call last): File "/usr/lib/python3/dist-packages/apport/report.py", line 197, in _run_hook symb['add_info'](report, ui) TypeError: add_info() takes 1 positional argument but 2 were given During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/apport/report.py", line 202, in _run_hook symb['add_info'](report) File "/usr/share/apport/package-hooks/source_mdadm.py", line 53, in add_info report['initrd.files'] = get_initrd_files(initrd_re) File "/usr/share/apport/package-hooks/source_mdadm.py", line 30, in get_initrd_files out = cpio.communicate(fd.read())[0] File "/usr/lib/python3.5/subprocess.py", line 1065, in communicate stdout, stderr = self._communicate(input, endtime, timeout) File "/usr/lib/python3.5/subprocess.py", line 1681, in _communicate self._save_input(input) File "/usr/lib/python3.5/subprocess.py", line 1754, in _save_input self._input = self._input.encode(self.stdin.encoding) AttributeError: 'bytes' object has no attribute 'encode'