← Back to team overview

desktop-packages team mailing list archive

[Bug 725186] Re: Software-Center crash at launch if apt-history gzip archives are corrupted

 

** Tags added: testcase

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to software-center in Ubuntu.
https://bugs.launchpad.net/bugs/725186

Title:
  Software-Center crash at launch if apt-history gzip archives are
  corrupted

Status in “software-center” package in Ubuntu:
  Fix Released
Status in “software-center” source package in Maverick:
  Fix Released

Bug description:
  Binary package hint: software-center

  If the apt history gzip archives contained in /var/log/apt/ are corrupted, then Software-Center crash at launch.
  I attached the corrupted archive that triggered the bug on my laptop.

  ---
  TEST CASE (for Maverick SRU):

  1. Run Maverick.
  2. In a terminal, type the following commands to temporarily swap in a corrupted apt history file (the original will be restored after):

    wget https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/725186/+attachment/1871475/+files/history.log.5.gz
    sudo mv /var/log/apt/history.log.1.gz /var/log/apt/history.log.1.gz.SAVE
    sudo cp history.log.5.gz /var/log/apt/history.log.1.gz

  3. Launch Software Center by typing the following into a terminal
  (this will allow you to verify the error output):

    software-center

  4. Verify that software-center crashes (does not start) and the error
  output in the terminal ends with:

    "zlib.error: Error -3 while decompressing: invalid distance too far
  back"

  5. Install the updated version of Software Center (3.0.9) from maverick-proposed.
  6. Launch Software Center again from the terminal (or directly) and verify that Software Center now launches correctly (the main window is displayed, etc.).
  7. Type the following in a terminal to restore your previous apt history log:

    sudo mv /var/log/apt/history.log.1.gz.SAVE
  /var/log/apt/history.log.1.gz

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/725186/+subscriptions