unable to report kernel bug

Bug #515643 reported by Anand Kumria
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: apport

I am unable to report a bug on the kernel.

As a normal user:

eve:[~]% ubuntu-bug linux
hook /usr/share/apport/package-hooks//source_linux.py crashed:
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/apport/report.py", line 635, in add_hooks_info
    symb['add_info'](self, ui)
  File "/usr/share/apport/package-hooks//source_linux.py", line 93, in add_info
    attach_wifi(report)
  File "/usr/lib/python2.6/dist-packages/apport/hookutils.py", line 436, in attach_wifi
    report['WifiSyslog'] = recent_syslog(re.compile(r'(NetworkManager|modem-manager|dhclient|kernel):'))
  File "/usr/lib/python2.6/dist-packages/apport/hookutils.py", line 299, in recent_syslog
    for line in open('/var/log/syslog'):
IOError: [Errno 13] Permission denied: '/var/log/syslog'

As the super-user:

eve:[~]% sudo ubuntu-bug linux
hook /usr/share/apport/package-hooks//source_linux.py crashed:
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/apport/report.py", line 635, in add_hooks_info
    symb['add_info'](self, ui)
  File "/usr/share/apport/package-hooks//source_linux.py", line 100, in add_info
    report['UnreportableReason'] = _('The running kernel is not an Ubuntu kernel')
NameError: global name '_' is not defined

Obviously, some kind of translation is being attempted and it is failing.

1)

eve:[~]% lsb_release -rd
Description: Ubuntu lucid (development branch)
Release: 10.04

2)

eve:[~]% apt-cache policy apport
apport:
  Installed: 1.12-0ubuntu3
  Candidate: 1.12-0ubuntu3
  Version table:
 *** 1.12-0ubuntu3 0
        500 http://uk.archive.ubuntu.com lucid/main Packages
        100 /var/lib/dpkg/status

3)

 I expected to be able to report a bug

4)

I was not able to. And apport failed.

ProblemType: Bug
ApportLog: Error: [Errno 13] Permission denied: '/var/log/apport.log'
Architecture: i386
CrashReports:
 600:1000:1000:3957667:2010-01-25 01:12:29.000000000 +0000:2010-01-25 01:12:30.000000000 +0000:/var/crash/_usr_lib_lastfm_last.fm.1000.crash
 600:1000:1000:12743:2010-01-29 10:32:29.000000000 +0000:2010-01-29 10:32:30.000000000 +0000:/var/crash/_usr_bin_smart-notifier.1000.crash
 600:0:0:573296:2010-01-29 03:42:54.000000000 +0000:2010-02-01 03:33:37.000000000 +0000:/var/crash/libvirt-bin.0.crash
 0:1000:1000:50118:2010-01-27 10:44:12.000000000 +0000:2010-01-27 11:48:07.000000000 +0000:/var/crash/_usr_lib_hamster-applet_hamster-applet.1000.crash
Date: Mon Feb 1 18:43:17 2010
DistroRelease: Ubuntu 10.04
Package: apport 1.12-0ubuntu3
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_AU:en_US:en_GB:en
 PATH=(custom, user)
 SHELL=/usr/bin/zsh
SourcePackage: apport
Uname: Linux 2.6.32-02063204-generic i686

Revision history for this message
Anand Kumria (wildfire) wrote :
Revision history for this message
Philip Muškovac (yofel) wrote :

This bug is a duplicate of bug 507492. (The translation error)

The permission error when accessing the syslog isn't a bug in apport.
Here the permissions are:
236K -rw-r----- 1 syslog adm 232K 2010-02-01 20:29 /var/log/syslog
so you either need to be root or part of the adm group to read the syslog.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.