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_mysql-5.7.py", line 57, in add_info _add_my_conf_files(report, os.path.join(d, f)) File "/usr/share/apport/package-hooks/source_mysql-5.7.py", line 15, in _add_my_conf_files for line in read_file(filename).split('\n'): TypeError: a bytes-like object is required, not 'str'