Comment 4 for bug 828037

Revision history for this message
Alexandre Bourget (wackysalut) wrote :

There's a coding error in that file, edit /usr/share/apport/package-hooks/source_ubiquity.py and around line 30 tweak to have:

<code>
def add_info(report, ui):
    add_installation_log(report, 'UbiquitySyslog', 'syslog')
    syslog = report['UbiquitySyslog']
    if 'Buffer I/O error on device' in syslog:
        if re.search('Attached .* CD-ROM (\w+)', syslog):
            cd_drive = re.search('Attached .* CD-ROM (\w+)', syslog).group(1)
            cd_error = re.search('Buffer I/O error on device %s' % cd_drive,
                                 syslog)
            if cd_error:
                ui.information("The system log from your installation contains an error. The specific error commonly occur\
s when there is an issue with the media from which you were installing. This can happen when your media is dirty or damage\
d or when you've burned the media at a high speed. Please try cleaning the media and or burning new media at a lower speed\
. In the event that you continue to encounter these errors it may be an issue with your CD / DVD drive.")
                raise StopIteration
    if 'SQUASHFS error: Unable to read' in syslog:
...
</code>