Traceback (most recent call last): File "/usr/share/apport/apport", line 279, in error_log('called for pid %s, signal %s' % (pid, signum)) File "/usr/share/apport/apport", line 96, in error_log apport.error('apport (pid %s) %s: %s', os.getpid(), time.asctime(), msg) File "/usr/lib/python3/dist-packages/apport/__init__.py", line 32, in error sys.stderr.write('ERROR: ') AttributeError: 'NoneType' object has no attribute 'write' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/share/apport/apport", line 413, in error_log('Unhandled exception:') File "/usr/share/apport/apport", line 96, in error_log apport.error('apport (pid %s) %s: %s', os.getpid(), time.asctime(), msg) File "/usr/lib/python3/dist-packages/apport/__init__.py", line 32, in error sys.stderr.write('ERROR: ') AttributeError: 'NoneType' object has no attribute 'write'