IOError: [Errno 2] No such file or directory: '/proc/asound/cards'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Fix Released
|
Low
|
Martin Pitt | ||
Lucid |
Won't Fix
|
Low
|
Unassigned |
Bug Description
Binary package hint: apport
I just attempted to report a bug against linux using "ubuntu-bug linux" when I got the following error:
***
Testing the upstream kernel can help isolate issues in Ubuntu kernel patches, discover a bug is fixed upstream, or confirm the issue exists upstream. It would be great if you could test with the upstream kernel and let us know your results by posting a comment in the bug report. For information on testing the upstream kernel, refer to https:/
Press any key to continue...
.hook /usr/share/
Traceback (most recent call last):
File "/usr/lib/
symb[
File "/usr/share/
attach_
File "/usr/lib/
for line in open('/
IOError: [Errno 2] No such file or directory: '/proc/
...
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: apport 1.13.3-0ubuntu2
ProcVersionSign
Uname: Linux 2.6.32-24-server x86_64
Architecture: amd64
Date: Sun Aug 29 20:03:46 2010
PackageArchitec
ProcEnviron:
LANG=en_AU.UTF-8
SHELL=/bin/bash
SourcePackage: apport
Changed in apport (Ubuntu Lucid): | |
status: | New → Triaged |
importance: | Undecided → Low |
It looks like this bug affects systems that do not have a file: /proc/asound/cards. This is the case for many server deployments. The specific section of code in /usr/lib/ python2. 6/dist- packages/ apport/ hookutils. py is this for loop:
for line in open('/ proc/asound/ cards') : ).split( )
cards. append( int(fields[ 0]))
if ']:' in line:
fields = line.lstrip(
Maybe add a test for that file first?