"History" screen spins forever if /var/log/apt/history.log is corrupt
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-center (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Ubuntu Software Center 3.0.5, Ubuntu 10.10
software-center trunk r2328, Ubuntu 11.10 beta 1
1. Make a backup copy of /var/log/
2. In the original file, munge one of the timestamps, e.g. change "2011-09-02 19:03:18" to "2011-09-02 1".
3. Launch USC.
4. Choose "History".
5. Close USC and restore history.log from the backup.
What happens:
3. USC 3.0.5 fails to launch at all.
4. USC r2338 launches, but the "History" screen forever shows a spinner, and produces this traceback at the console:
------------
Traceback (most recent call last):
File "/home/
self.
File "/home/
trans = Transaction(stanza)
File "/home/
"%Y-%m-%d %H:%M:%S")
File "/usr/lib/
(data_string, format))
ValueError: time data '2011-09-02 2' does not match format '%Y-%m-%d %H:%M:%S'
------------
What should happen: The "History" screen should show as many transactions as it can read. Any unparseable values should be shown as "unknown" or something like that.
description: | updated |
summary: |
- Software-center fails to launch because "time data" does not match + Software-center fails to launch because of "time data" does not match |
description: | updated |
tags: | removed: data format match mismatch software-center time |
summary: |
- Software-center fails to launch because of "time data" does not match + "History" screen spins forever if /var/log/apt/history.log is corrupt |
Changed in software-center (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
description: | updated |
Changed in software-center (Ubuntu): | |
status: | Triaged → Fix Committed |
Tyler,
I can't reproduce in 10.10 x86 some version of software center.
Can you try:
gksudo software-center
Thanks,
AM