If /var/log/apt does not exist, apt segfaults

Bug #660071 reported by Kjella
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: apt

I've had some file system problems recently and long story short, the directory /var/log/apt no longer existed.

When apt tries to write to /var/log/apt/history.log the application segfaults. Manually creating the directory caused apt to work again. This should probably still be an error but it should not segfault on it.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: apt 0.7.25.3ubuntu9.3
Uname: Linux 2.6.36-020636rc7-generic i686
Architecture: i386
Date: Wed Oct 13 19:26:50 2010
ProcEnviron:
 LANGUAGE=
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: apt

Revision history for this message
Kjella (kjella79) wrote :
Revision history for this message
David Kalnischkies (donkult) wrote :

This directory is auto-created in upstream since version 0.8.2 which should boil down to version 0.8.3ubuntu1.
So this issue should be at least fixed after an upgrade to maverick.

Note through that you are the first user reporting a segfault in this case: APT normally printed an error complaining about this missing directory…

Changed in apt (Ubuntu):
status: New → Fix Released
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.