SUMMARY Error messages shown on opening Discover: "E: Repository 'https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble InRelease' changed its 'Label' value from '***** The main PPA for supported PHP versions with many PECL extensions *****' to 'PPA for PHP' W: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details. E: Repository 'https://dl.ui.com/unifi/debian stable InRelease' changed its 'Codename' value from 'unifi-9.0' to 'unifi-9.1'" Now way to proceed in Discover, a major UI issue. Just copy to clipboard button shown. STEPS TO REPRODUCE 1. ? (some apt source changes) 2. Open discover OBSERVED RESULT No way to proceed. EXPECTED RESULT A clear way to proceed, e.g. primary button shown as Ignore or Fix etc. SOFTWARE/OS VERSIONS Operating System: KDE neon 6.3 KDE Plasma Version: 6.3.5 KDE Frameworks Version: 6.14.0 Qt Version: 6.9.0 Kernel Version: 6.11.0-25-generic (64-bit) Graphics Platform: Wayland
This is a limitation in the APT PackageKit plugin, which Discover uses for this. Because the PackageKit library intentionally does not support showing multiple-choice UI prompts to the user, there are two remaining options for how the APT plugin can handle this situation: 1. Automatically proceed, assuming you're okay with whatever changes it needs to make 2. Automatically fail, showing you an ugly error message and leaving you to figure it out It chose #2. The only practical way for this to be improved is to stop using PackageKit, and to write a custom APT backend specially for Discover, which could then handle situations like this better. However that's something that would really need initiative from people in the APT packaging world. All the custom backends in Discover that do exist (e.g. for SteamOS, Kinoite, Alpine Linux, and KDE Linux) were contributed by the people working on those distros. It would have to be the same for any hypothetical custom APD backend in Discover. It's a sucky situation, but it is what it is.
(In reply to Nate Graham from comment #1) > This is a limitation in the APT PackageKit plugin, which Discover uses for > this. Because the PackageKit library intentionally does not support showing > multiple-choice UI prompts to the user, there are two remaining options for > how the APT plugin can handle this situation: > 1. Automatically proceed, assuming you're okay with whatever changes it > needs to make > 2. Automatically fail, showing you an ugly error message and leaving you to > figure it out > [...snip...] > It's a sucky situation, but it is what it is. Thanks for the explanation, I appreciate you taking time to do that. What I forgot to post was my solution was simply running: `apt-get update --allow-releaseinfo-change` Once that was finished, Discover works OK again. I found some (old) kdialog use in PackageKit sources. Maybe this could work? ``` kdialog --title "Some repositories changed" --warningcontinuecancel "Some repos have changed their info. Fix the distro changes?" ```
That would be something to bring up with the PackageKit folks. But I doubt they would accept that solution for multiple reasons (objection to the concept of offering user interactivity; objection to the use of a CLI program rather than a proper API; objection to the use of a KDE-specific tool rather than something cross-platform).