Hi Martin,
thanks for the fast reply. I only had an Oracle Linux Box as a VM available at home but I did some tests and think they are also meaningful.
Actually the correct
command to refresh is pkcon refresh force
.
Setting a proxy within /etc/PackageKit/PackageKit.conf
with ProxyHTTP=
was not even recognized or interpreted I think.
I ran packagekitd manually in verbose mode and saw nothing about
a proxy.
In the end your mail took me in the right direction pointing me
at PackageKit.
I created an override
for the packagekit.service as /usr/lib/systemd/system/packagekit.service.d/override.conf
with
the following content:
[Service]
Environment="http_proxy=http://10.11.12.13:8080/"
Environment="https_proxy=http://10.11.12.13:8080/"
Now cockpit worked but this “was not a nice approach”.
But then my inventive
spirit was awakened and i checked a CentOS7 applicance we got
from a 3rd party at work that i know connects via proxy to the
updates
and the updates also work via cockpit. While I am not allowed to
change config there to play arround I could find out, where this
box has the proxy settings in
place:
find /etc/ -type f -exec grep -Hni '10.11.12.13' '{}' \;
/etc/yum.conf:28:proxy=http://10.11.12.13:8080/
/etc/sysconfig/proxy:1:HTTPS_PROXY="http://10.11.12.13:8080/"
/etc/sysconfig/proxy:2:HTTP_PROXY="http://10.11.12.13:8080/"
/etc/sysconfig/proxy:4:PROXY="http://10.11.12.13:8080/"
On this Centos7 appliance box updates via yum and cockpit (PackageKit) work like a charm.
So I added the same
settings to my test VM and removed the previously added override
directory /usr/lib/systemd/system/packagekit.service.d/
entirely.
I did a reboot then and aftewards everything worked (including pkcon
).
It would be nice if
someone could just confirm if ProxyHTTP=
should or is really and still recognized by PackageKit or if it
is only one more rumor.
I think currently it is not used in any way.
Thank you very much for your reply and idea. At least I have now a working way.
Regards
Peter aka PCFreak
https://chemnitzer.linux-tage.de/2021/de/programm/beitrag/193
Am 12.03.21 um 10:36 schrieb Martin Pitt:
Hello PCFreak, Der PCFreak [2021-03-12 9:17 +0100]:https://bugzilla.redhat.com/show_bug.cgi?id=1348843 Any idea how to set a proxy for cockpit-packagekit or is packagekit still not supporting it?That bugzilla's comment #14 says: You need to set the ProxyHTTP= key in /etc/PackageKit/PackageKit.conf – this came up on #fedora-kde today and setting the key worked. Does that work for you? Note, you can test this outside of cockpit with e.g. pkcon refresh --force pkcon get-updates or pkcon update Martin _______________________________________________ cockpit-devel mailing list -- cockpit-devel@lists.fedorahosted.org To unsubscribe send an email to cockpit-devel-leave@lists.fedorahosted.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedorahosted.org/archives/list/cockpit-devel@lists.fedorahosted.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
Am 12.03.21 um 10:36 schrieb Martin Pitt:
Hello PCFreak, Der PCFreak [2021-03-12 9:17 +0100]:https://bugzilla.redhat.com/show_bug.cgi?id=1348843 Any idea how to set a proxy for cockpit-packagekit or is packagekit still not supporting it?That bugzilla's comment #14 says: You need to set the ProxyHTTP= key in /etc/PackageKit/PackageKit.conf – this came up on #fedora-kde today and setting the key worked. Does that work for you? Note, you can test this outside of cockpit with e.g. pkcon refresh --force pkcon get-updates or pkcon update Martin _______________________________________________ cockpit-devel mailing list -- cockpit-devel@lists.fedorahosted.org To unsubscribe send an email to cockpit-devel-leave@lists.fedorahosted.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedorahosted.org/archives/list/cockpit-devel@lists.fedorahosted.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure