I'm seeing this issue when I do a dist-upgrade via python-apt from
Precise to Trusty. Can the fix be backported to Precise?

Log snippet:
2014-04-25 11:34:17     INFO: apt: Processing package kdesdk-scripts (0.2040%)
2014-04-25 11:34:17    DEBUG: dpkg: Unpacking kdesdk-scripts 
(4:4.13.0-0ubuntu1) over (4:4.8.5-0ubuntu0.1) ...
2014-04-25 11:34:17    DEBUG: dpkg: dpkg: error processing archive 
/var/cache/apt/archives/kdesdk-scripts_4%3a4.13.0-0ubuntu1_all.deb (--unpack):
2014-04-25 11:34:17    DEBUG: dpkg:  trying to overwrite 
'/usr/bin/extractattr', which is also in package pkg-kde-tools 0.14.2ubuntu5
2014-04-25 11:34:17    DEBUG: dpkg: dpkg-deb: error: subprocess paste was 
killed by signal (Broken pipe)
2014-04-25 11:34:17    ERROR: apt: trying to overwrite '/usr/bin/extractattr', 
which is also in package pkg-kde-tools 0.14.2ubuntu5
2014-04-25 11:34:17    DEBUG: dpkg: Errors were encountered while processing:
2014-04-25 11:34:17    DEBUG: dpkg:  
/var/cache/apt/archives/kdesdk-scripts_4%3a4.13.0-0ubuntu1_all.deb
2014-04-25 11:34:18    DEBUG: dpkg: Error in function:
2014-04-25 11:34:18    DEBUG: dpkg: SystemError: E:Sub-process /usr/bin/dpkg 
returned an error code (1)
2014-04-25 11:34:18    DEBUG: dpkg: Error in sys.excepthook:
2014-04-25 11:34:18    DEBUG: dpkg: Traceback (most recent call last):
2014-04-25 11:34:18    DEBUG: dpkg:   File 
"/usr/lib/python2.7/dist-packages/apport_python_hook.py", line 114, in 
apport_excepthook
2014-04-25 11:34:18    DEBUG: dpkg:     mangled_program = re.sub('/', '_', 
binary)
2014-04-25 11:34:18    DEBUG: dpkg:   File 
"/usr/lib/python2.7/dist-packages/apport/fileutils.py", line 256, in 
get_recent_crashes
2014-04-25 11:34:18    DEBUG: dpkg:     pr.load(report, False)
2014-04-25 11:34:18    DEBUG: dpkg:   File 
"/usr/lib/python2.7/dist-packages/problem_report.py", line 124, in load
2014-04-25 11:34:18    DEBUG: dpkg:     self._assert_bin_mode(file)
2014-04-25 11:34:18    DEBUG: dpkg:   File 
"/usr/lib/python2.7/dist-packages/problem_report.py", line 631, in 
_assert_bin_mode
2014-04-25 11:34:18    DEBUG: dpkg:     assert (type(file) == BytesIO or 'b' in 
file.mode), 'file stream must be in binary mode'
2014-04-25 11:34:18    DEBUG: dpkg: AssertionError: file stream must be in 
binary mode
2014-04-25 11:34:18    DEBUG: dpkg: 
2014-04-25 11:34:18    DEBUG: dpkg: Original exception was:
2014-04-25 11:34:18    DEBUG: dpkg: SystemError: E:Sub-process /usr/bin/dpkg 
returned an error code (1)
2014-04-25 11:34:18     INFO: apt: End of package operation

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1007826

Title:
  crash with AssertionError: file stream must be in binary mode when
  trying to save report to file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1007826/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to