K2LL33D SHELL

 Apache/2.4.7 (Ubuntu)
 Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64
 uid=33(www-data) gid=33(www-data) groups=33(www-data)
 safemode : OFF
 MySQL: ON | Perl: ON | cURL: OFF | WGet: ON
  >  / usr / share / apport / package-hooks /
server ip : 172.67.156.115

your ip : 108.162.241.148

H O M E


Filename/usr/share/apport/package-hooks/source_ubuntu-release-upgrader.py
Size2.07 kb
Permissionrw-r--r--
Ownerroot : root
Create time27-Apr-2025 09:55
Last modified08-Mar-2014 06:26
Last accessed06-Jul-2025 16:39
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
'''apport package hook for ubuntu-release-upgrader

(c) 2011-2014 Canonical Ltd.
Author: Brian Murray <[email protected]>
'''

import os
import re

from apport.hookutils import (
attach_gsettings_package,
attach_file_if_exists,
attach_root_command_outputs,
root_command_output)


def add_info(report, ui):
try:
attach_gsettings_package(report, 'ubuntu-release-upgrader')
except:
pass
report['CrashDB'] = 'ubuntu'
report.setdefault('Tags', 'dist-upgrade')
report['Tags'] += ' dist-upgrade'
clone_file = '/var/log/dist-upgrade/apt-clone_system_state.tar.gz'
if os.path.exists(clone_file):
report['VarLogDistupgradeAptclonesystemstate.tar.gz'] = \
root_command_output(["cat", clone_file], decode_utf8=False)
attach_file_if_exists(report, '/var/log/dist-upgrade/apt.log',
'VarLogDistupgradeAptlog')
attach_file_if_exists(report, '/var/log/dist-upgrade/apt-term.log',
'VarLogDistupgradeApttermlog')
attach_file_if_exists(report, '/var/log/dist-upgrade/history.log',
'VarLogDistupgradeAptHistorylog')
attach_file_if_exists(report, '/var/log/dist-upgrade/lspci.txt',
'VarLogDistupgradeLspcitxt')
attach_file_if_exists(report, '/var/log/dist-upgrade/main.log',
'VarLogDistupgradeMainlog')
attach_file_if_exists(report, '/var/log/dist-upgrade/term.log',
'VarLogDistupgradeTermlog')
attach_file_if_exists(report, '/var/log/dist-upgrade/screenlog.0',
'VarLogDistupgradeScreenlog')
attach_root_command_outputs(
report,
{'CurrentDmesg.txt':
'dmesg | comm -13 --nocheck-order /var/log/dmesg -'})
problem_type = report.get("ProblemType", None)
if problem_type == 'Crash':
tmpdir = re.compile('ubuntu-release-upgrader-\w+')
tb = report.get("Traceback", None)
if tb:
dupe_sig = ''
for line in tb.splitlines():
scrub_line = tmpdir.sub('ubuntu-release-upgrader-tmpdir', line)
dupe_sig += scrub_line + '\n'
report["DuplicateSignature"] = dupe_sig