Comment 0 for bug 635101

Revision history for this message
Matthew Paul Thomas (mpt) wrote : Broken apt cache error message is out of date

Binary package hint: software-center

Ubuntu Software Center 2.1.18, Ubuntu Maverick

Based on test case sc-017 <https://wiki.ubuntu.com/SoftwareCenter#broken-catalog>:

1. sudo apt-get install 4g8 && sudo dpkg --force-depends -r libnet1
2. Launch Ubuntu Software Center.

What happens: An alert appears, "Items cannot be installed or removed until the package catalog is repaired. Do you want to repair it now?" "Once Update Manager has finished the repairs, you can close it and return to the store."

Ubuntu Software Center now triggers the repair itself, so this message is out of date.

What should happen: An alert should appear with the message "The software catalog needs rebuilding. Once you authenticate, it will rebuild automatically."

This could be a separate alert from the authentication alert, but that would result in two alerts in a row, which is unpleasant.

So, unless there is a good reason that you would *not* want to fix the apt cache (and therefore a reason we shouldn't take advantage of cached PolicyKit privileges to do it), the alert that presents this message should be the actual PolicyKit alert. That way we get one alert rather than two.

That in turn means that there would need to be a specific aptdaemon PolicyKit privilege for this task.