[Touch-packages] [Bug 1775219] Re: incorrectly reports package as unsupported if apt cache is empty
** Tags added: fr-28 -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apport in Ubuntu. https://bugs.launchpad.net/bugs/1775219 Title: incorrectly reports package as unsupported if apt cache is empty Status in apport package in Ubuntu: Fix Released Bug description: Cloud images ship with empty /var/lib/apt/lists/ to save on size. Running 'ubuntu-bug ' will erroneously report that the package is unsupported: $ 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;print(apport.packaging.is_distro_package("coreutils"))' False $ sudo apt update -qq All packages are up to date. $ python3 -c 'import apport;print(apport.packaging.is_distro_package("coreutils"))' 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.update(); self._cache.open() could be called to download lists. Alternatively it could just check to see if lists have been downloaded. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1775219/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1775219] Re: incorrectly reports package as unsupported if apt cache is empty
This bug was fixed in the package apport - 2.20.11-0ubuntu47 --- apport (2.20.11-0ubuntu47) groovy; urgency=medium [ Tiago Stürmer Daitx ] * apport/ui.py: improve message when origin check fails as it can be caused by empty apt list - candidate is limited to dpkg and we can't tell where it came from. (LP: #1775219) -- Brian Murray Mon, 21 Sep 2020 15:02:17 -0700 ** Changed in: apport (Ubuntu) Status: Confirmed => Fix Released -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apport in Ubuntu. https://bugs.launchpad.net/bugs/1775219 Title: incorrectly reports package as unsupported if apt cache is empty Status in apport package in Ubuntu: Fix Released Bug description: Cloud images ship with empty /var/lib/apt/lists/ to save on size. Running 'ubuntu-bug ' will erroneously report that the package is unsupported: $ 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;print(apport.packaging.is_distro_package("coreutils"))' False $ sudo apt update -qq All packages are up to date. $ python3 -c 'import apport;print(apport.packaging.is_distro_package("coreutils"))' 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.update(); self._cache.open() could be called to download lists. Alternatively it could just check to see if lists have been downloaded. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1775219/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1775219] Re: incorrectly reports package as unsupported if apt cache is empty
** Branch linked: lp:~ubuntu-core-dev/ubuntu/groovy/apport/ubuntu -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apport in Ubuntu. https://bugs.launchpad.net/bugs/1775219 Title: incorrectly reports package as unsupported if apt cache is empty Status in apport package in Ubuntu: Confirmed Bug description: Cloud images ship with empty /var/lib/apt/lists/ to save on size. Running 'ubuntu-bug ' will erroneously report that the package is unsupported: $ 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;print(apport.packaging.is_distro_package("coreutils"))' False $ sudo apt update -qq All packages are up to date. $ python3 -c 'import apport;print(apport.packaging.is_distro_package("coreutils"))' 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.update(); self._cache.open() could be called to download lists. Alternatively it could just check to see if lists have been downloaded. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1775219/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1775219] Re: incorrectly reports package as unsupported if apt cache is empty
** Branch linked: lp:~tdaitx/ubuntu/groovy/apport/ubuntu -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apport in Ubuntu. https://bugs.launchpad.net/bugs/1775219 Title: incorrectly reports package as unsupported if apt cache is empty Status in apport package in Ubuntu: Confirmed Bug description: Cloud images ship with empty /var/lib/apt/lists/ to save on size. Running 'ubuntu-bug ' will erroneously report that the package is unsupported: $ 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;print(apport.packaging.is_distro_package("coreutils"))' False $ sudo apt update -qq All packages are up to date. $ python3 -c 'import apport;print(apport.packaging.is_distro_package("coreutils"))' 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.update(); self._cache.open() could be called to download lists. Alternatively it could just check to see if lists have been downloaded. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1775219/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1775219] Re: incorrectly reports package as unsupported if apt cache is empty
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: apport (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apport in Ubuntu. https://bugs.launchpad.net/bugs/1775219 Title: incorrectly reports package as unsupported if apt cache is empty Status in apport package in Ubuntu: Confirmed Bug description: Cloud images ship with empty /var/lib/apt/lists/ to save on size. Running 'ubuntu-bug ' will erroneously report that the package is unsupported: $ 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;print(apport.packaging.is_distro_package("coreutils"))' False $ sudo apt update -qq All packages are up to date. $ python3 -c 'import apport;print(apport.packaging.is_distro_package("coreutils"))' 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.update(); self._cache.open() could be called to download lists. Alternatively it could just check to see if lists have been downloaded. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1775219/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1775219] Re: incorrectly reports package as unsupported if apt cache is empty
** Tags added: id-5b1fe4c2babaab7ab6fd5d37 -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apport in Ubuntu. https://bugs.launchpad.net/bugs/1775219 Title: incorrectly reports package as unsupported if apt cache is empty Status in apport package in Ubuntu: New Bug description: Cloud images ship with empty /var/lib/apt/lists/ to save on size. Running 'ubuntu-bug ' will erroneously report that the package is unsupported: $ 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;print(apport.packaging.is_distro_package("coreutils"))' False $ sudo apt update -qq All packages are up to date. $ python3 -c 'import apport;print(apport.packaging.is_distro_package("coreutils"))' 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.update(); self._cache.open() could be called to download lists. Alternatively it could just check to see if lists have been downloaded. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1775219/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1775219] Re: incorrectly reports package as unsupported if apt cache is empty
Brian, the hack doesn't seem workable. Touching channel.ini would then flag all images as being supported, which isn't true. It's unclear what knock-on effects we would have touching this file (i.e. what other tools see it and take different code-paths). The existence of the file indicates that the image is a read-only system image, this is untrue for minimal. I would still like to see this resolved, even if that is just an improvement in the error message suggesting 'apt-get update' and retrying. Hack details: * packaging-apt-dpkg.py, is_distro_package(): If there is no origin and /etc/system-image/channel.ini exists, assume the package is from a read-only system image and accept it as distro package. With this we don't need /var/lib/apt/lists/ indexes any more just to confirm the origin. (LP: #1489410) -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apport in Ubuntu. https://bugs.launchpad.net/bugs/1775219 Title: incorrectly reports package as unsupported if apt cache is empty Status in apport package in Ubuntu: New Bug description: Cloud images ship with empty /var/lib/apt/lists/ to save on size. Running 'ubuntu-bug ' will erroneously report that the package is unsupported: $ 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;print(apport.packaging.is_distro_package("coreutils"))' False $ sudo apt update -qq All packages are up to date. $ python3 -c 'import apport;print(apport.packaging.is_distro_package("coreutils"))' 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.update(); self._cache.open() could be called to download lists. Alternatively it could just check to see if lists have been downloaded. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1775219/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1775219] Re: incorrectly reports package as unsupported if apt cache is empty
And here is another one with a specific way of hacking around the problem: https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1489410 -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apport in Ubuntu. https://bugs.launchpad.net/bugs/1775219 Title: incorrectly reports package as unsupported if apt cache is empty Status in apport package in Ubuntu: New Bug description: Cloud images ship with empty /var/lib/apt/lists/ to save on size. Running 'ubuntu-bug ' will erroneously report that the package is unsupported: $ 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;print(apport.packaging.is_distro_package("coreutils"))' False $ sudo apt update -qq All packages are up to date. $ python3 -c 'import apport;print(apport.packaging.is_distro_package("coreutils"))' 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.update(); self._cache.open() could be called to download lists. Alternatively it could just check to see if lists have been downloaded. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1775219/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1775219] Re: incorrectly reports package as unsupported if apt cache is empty
Here is a previous bug report about this issue. https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1217517 -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apport in Ubuntu. https://bugs.launchpad.net/bugs/1775219 Title: incorrectly reports package as unsupported if apt cache is empty Status in apport package in Ubuntu: New Bug description: Cloud images ship with empty /var/lib/apt/lists/ to save on size. Running 'ubuntu-bug ' will erroneously report that the package is unsupported: $ 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;print(apport.packaging.is_distro_package("coreutils"))' False $ sudo apt update -qq All packages are up to date. $ python3 -c 'import apport;print(apport.packaging.is_distro_package("coreutils"))' 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.update(); self._cache.open() could be called to download lists. Alternatively it could just check to see if lists have been downloaded. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1775219/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1775219] Re: incorrectly reports package as unsupported if apt cache is empty
** Tags added: bionic cosmic -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apport in Ubuntu. https://bugs.launchpad.net/bugs/1775219 Title: incorrectly reports package as unsupported if apt cache is empty Status in apport package in Ubuntu: New Bug description: Cloud images ship with empty /var/lib/apt/lists/ to save on size. Running 'ubuntu-bug ' will erroneously report that the package is unsupported: $ 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;print(apport.packaging.is_distro_package("coreutils"))' False $ sudo apt update -qq All packages are up to date. $ python3 -c 'import apport;print(apport.packaging.is_distro_package("coreutils"))' 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.update(); self._cache.open() could be called to download lists. Alternatively it could just check to see if lists have been downloaded. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1775219/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1775219] Re: incorrectly reports package as unsupported if apt cache is empty
** Description changed: Cloud images ship with empty /var/lib/apt/lists/ to save on size. Running 'ubuntu-bug ' will erroneously report that the package is unsupported: - $ ubuntu-bug coreutils + $ ubuntu-bug coreutils - *** Collecting problem information + *** Collecting problem information - The collected information can be sent to the developers to improve the - application. This might take a few minutes. - . + The collected information can be sent to the developers to improve the + application. This might take a few minutes. + . - *** Problem in coreutils + *** Problem in coreutils - The problem cannot be reported: + The problem cannot be reported: - This is not an official Ubuntu package. Please remove any third party + This is not an official Ubuntu package. Please remove any third party package and try again. A simpler recreate is: $ python3 -c 'import apport;print(apport.packaging.is_distro_package("coreutils"))' False $ sudo apt update -qq All packages are up to date. $ python3 -c 'import apport;print(apport.packaging.is_distro_package("coreutils"))' 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.update(); self._cache.open() could be called to download lists. + + Alternatively it could just check to see if lists have been downloaded. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apport in Ubuntu. https://bugs.launchpad.net/bugs/1775219 Title: incorrectly reports package as unsupported if apt cache is empty Status in apport package in Ubuntu: New Bug description: Cloud images ship with empty /var/lib/apt/lists/ to save on size. Running 'ubuntu-bug ' will erroneously report that the package is unsupported: $ 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;print(apport.packaging.is_distro_package("coreutils"))' False $ sudo apt update -qq All packages are up to date. $ python3 -c 'import apport;print(apport.packaging.is_distro_package("coreutils"))' 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.update(); self._cache.open() could be called to download lists. Alternatively it could just check to see if lists have been downloaded. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1775219/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp