incorrectly reports package as unsupported if apt cache is empty
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Cloud images ship with empty /var/lib/apt/lists/ to save on size. Running 'ubuntu-bug <supported_
$ ubuntu-bug coreutils
*** Collecting problem information
The collected information can be sent to the developers to improve the
application. This might take a few minutes.
.
*** Problem in coreutils
The problem cannot be reported:
This is not an official Ubuntu package. Please remove any third party package and try again.
A simpler recreate is:
$ python3 -c 'import apport;
False
$ sudo apt update -qq
All packages are up to date.
$ python3 -c 'import apport;
True
Desired result:
The message should instruct the user to run 'apt update' as root if they think this is in error. That would improve usability and avoid false reports about apport incorrectly flagging a package as unsupported.
Additionally, if the user is root (and optionally if the set of package candidates only contains a 'now' component) self._cache.
Alternatively it could just check to see if lists have been downloaded.
Related branches
description: | updated |
tags: | added: bionic cosmic |
tags: | added: id-5b1fe4c2babaab7ab6fd5d37 |
tags: | added: fr-28 |
Here is a previous bug report about this issue.
https:/ /bugs.launchpad .net/ubuntu/ +source/ apport/ +bug/1217517