thanks for your investigations!
Der PCFreak [2021-03-12 22:56 +0100]:
Actually the correct command to refresh is |pkcon refresh force|.
Oops, sorry, yes -- (non)intuitive syntax for the win :-/
Setting a proxy within |/etc/PackageKit/PackageKit.conf| with
was not even recognized or interpreted I think.
# strings /usr/lib64/packagekit-backend/libpk_backend_* | grep Proxy
# strings /usr/libexec/packagekitd | grep Proxy
SetProxy method called: %s, %s
/usr/share/dbus-1/interfaces/org.freedesktop.PackageKit.xml indeed offers a
SetProxy() method, but `rpm -ql PackageKit | xargs grep SetProxy` does not show
any binary for that -- i.e. it seems nothing implements that interface.
I followed up to https://bugzilla.redhat.com/show_bug.cgi?id=1348843
that out, so that other people don't get misled either.
I created an override for the packagekit.service as
the following content:
Now cockpit worked but this “was not a nice approach”.
Indeed, so that is actually not a bad approach -- $http_proxy etc. are standard
env variable, and injecting them into services that way is a standard approach.
Of course it sucks a bit that this needs to be done for every service
Interesting! I don't see PackageKit to even look at /sysconfig (according to
`strings`), but if this works, so much the better!
It would be nice if someone could just confirm if |ProxyHTTP=| should
really and still recognized by PackageKit or if it is only one more rumor.
I think currently it is not used in any way.
Correct.. Possibly this?
Deprecations and Removed Features:
- Do not allow the user to specify the proxy in PackageKit.conf (Richard Hughes)