SUMMARY local deb (and probably rpm) installation is called with the `only-trusted` transaction flag. At least for deb that makes no sense, a randomly side loaded deb will almost never pass signature validation and as a consequence installing side loaded debs never works because they can't be validated. This is different from pkcon which doesn't set the flag and works as expected. STEPS TO REPRODUCE 1. on neon 2. download https://www.microsoftedgeinsider.com/en-us/download/?platform=linux 3. open 4. click install OBSERVED RESULT 'cannot install from unsigned repo' error EXPECTED RESULT deb installs ADDITIONAL INFORMATION Debug output from packagekit Discover: 10:47:36 PackageKit InstallFiles method called: /home/me/Downloads/microsoft-edge-dev_88.0.673.0-1_amd64.deb (transaction_flags: only-trusted) pkcon (working): 10:48:01 PackageKit InstallFiles method called: /home/me/Downloads/microsoft-edge-dev_88.0.673.0-1_amd64.deb (transaction_flags: none)
Is this a thing we can fix from within Discover?
Sure. The packagekit transaction needs to be created with the right flags.
OK cool. Something must have changed recently because this totally used to work.
*** Bug 426752 has been marked as a duplicate of this bug. ***
A possibly relevant merge request was started @ https://invent.kde.org/plasma/discover/-/merge_requests/45
Git commit 34d82541ab5dabeb284e081878f49d476c4c0403 by Alexander Lohnau. Committed on 12/11/2020 at 17:10. Pushed by alex into branch 'master'. Fix installation of local packages In newer versions they were considered untrusted, that is why the installation always failed. FIXED-in: 5.20.4 M +5 -1 libdiscover/backends/PackageKitBackend/PKTransaction.cpp https://invent.kde.org/plasma/discover/commit/34d82541ab5dabeb284e081878f49d476c4c0403
Git commit 0db81d6e944356c07bd38994afc1c5f4ec19f6e1 by Alexander Lohnau. Committed on 12/11/2020 at 17:10. Pushed by alex into branch 'Plasma/5.20'. Fix installation of local packages In newer versions they were considered untrusted, that is why the installation always failed. FIXED-in: 5.20.4 M +5 -1 libdiscover/backends/PackageKitBackend/PKTransaction.cpp https://invent.kde.org/plasma/discover/commit/0db81d6e944356c07bd38994afc1c5f4ec19f6e1
I wonder if this is worth backporting to 5.18 too?
*** Bug 429214 has been marked as a duplicate of this bug. ***
*** Bug 427898 has been marked as a duplicate of this bug. ***
*** Bug 429396 has been marked as a duplicate of this bug. ***