Some apport-package bug reports don't have a DuplicateSignature when they should. I was able to obtain a problematic crash file and running ubuntu-bug with I received the following traceback:
ERROR: hook /usr/share/apport/general-hooks/ubuntu.py crashed:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport/report.py", line 197, in _run_hook
symb['add_info'](report, ui)
File "/usr/share/apport/general-hooks/ubuntu.py", line 62, in add_info
check_attachment_for_errors(report, attachment)
File "/usr/share/apport/general-hooks/ubuntu.py", line 171, in check_attachment_for_errors
trim_dpkg_log(report)
File "/usr/share/apport/general-hooks/ubuntu.py", line 428, in trim_dpkg_log
if start_re.match(line) or trim_re.match(line):
TypeError: can't use a bytes pattern on a string-like object
Some apport-package bug reports don't have a DuplicateSignature when they should. I was able to obtain a problematic crash file and running ubuntu-bug with I received the following traceback:
ERROR: hook /usr/share/ apport/ general- hooks/ubuntu. py crashed: python3/ dist-packages/ apport/ report. py", line 197, in _run_hook 'add_info' ](report, ui) apport/ general- hooks/ubuntu. py", line 62, in add_info attachment_ for_errors( report, attachment) apport/ general- hooks/ubuntu. py", line 171, in check_attachmen t_for_errors dpkg_log( report) apport/ general- hooks/ubuntu. py", line 428, in trim_dpkg_log match(line) or trim_re. match(line) :
Traceback (most recent call last):
File "/usr/lib/
symb[
File "/usr/share/
check_
File "/usr/share/
trim_
File "/usr/share/
if start_re.
TypeError: can't use a bytes pattern on a string-like object