I am trying to update Fedora 40 (KDE Spin) using Discover. Recently, I encountered the following error:
Package not found:
Curl error (5): Couldn’t resolve proxy name for https://mirrors.fedoraproject.org/metalink?repo=updates-released-f40&arch=x86_64 [Unsupported proxy syntax in ‘http://:0/’: No host part in the URL]
However, I do not use a proxy, as you can see in the attached image. What should I do? Are there other ways to update my packages besides:
sudo dnf update --refresh
sudo dnf upgrade
flatpak update
barryascott
(Barry A Scott)
September 4, 2024, 10:31am
2
Maybe you set the proxy using environment variables in a config file?
From a terminal review what environment variables you have.
You can get a list using the env
command.
1 Like
Thank you for your reply. I checked my environment variables and confirmed that there are no proxy variables set, as I have attempted to unset all proxies.
I found the solution by running sudo dnf makecache
and then performing the update.
zokorin
(Stanislav Zotov)
September 26, 2024, 10:09am
4
I have the same problem. The solution using dns makecache
did not help. This applies only to updates from the fedora40-update repository
1 Like
You are right. This could be a long-standing bug in PackageKit. I’ve found the solution here:
opened 07:47PM - 06 Apr 20 UTC
I am using KDE neon, which is based on ubuntu 18.04.
I had to enable a proxy … for my homeoffice and tried doing that by changing the global setting. Doing so did not bring the results I wanted, so I disabled it. After that I was unable to update any packages and instead got error messages like these whenever I used `pkcon update`:
```
E: http://security.ubuntu.com/ubuntu bionic-updates/main amd64 python3-problem-report all 2.20.9-0ubuntu7.14 is not (yet) available (403 Forbidden [IP: 193.196.136.221 80])
E: http://archive.neon.kde.org/user bionic/main amd64 libkwinglutils12 amd64 4:5.18.4.1-0xneon+18.04+bionic+build67 is not (yet) available (403 Forbidden [IP: 193.196.136.221 80])
E: http://security.ubuntu.com/ubuntu bionic-updates/main amd64 python3-apport all 2.20.9-0ubuntu7.14 is not (yet) available (403 Forbidden [IP: 193.196.136.221 80])
E: http://archive.neon.kde.org/user bionic/main amd64 libkwinxrenderutils12 amd64 4:5.18.4.1-0xneon+18.04+bionic+build67 is not (yet) available (403 Forbidden [IP: 193.196.136.221 80])
E: http://archive.neon.kde.org/user bionic/main amd64 libkwin4-effect-builtins1 amd64 4:5.18.4.1-0xneon+18.04+bionic+build67 is not (yet) available (403 Forbidden [IP: 193.196.136.221 80])
E: http://archive.neon.kde.org/user bionic/main amd64 libkwineffects12 amd64 4:5.18.4.1-0xneon+18.04+bionic+build67 is not (yet) available (403 Forbidden [IP: 193.196.136.221 80])
```
using `pkcon refresh` got me these errors:
```
Refreshing cache [=========================]
Loading cache [=========================]
Downloading packages [=========================]
Finished [=========================]
Fatal error: E: Failed to fetch http://ppa.launchpad.net/oibaf/graphics-drivers/ubuntu/dists/bionic/InRelease 403 Forbidden [IP: 193.196.136.221 80]
E: The repository 'http://ppa.launchpad.net/oibaf/graphics-drivers/ubuntu bionic InRelease' is no longer signed.
W: Updating from such a repository can't be done securely, and is therefore disabled by default.
W: See apt-secure(8) manpage for repository creation and user configuration details.
E: http://ppa.launchpad.net/oibaf/graphics-drivers/ubuntu bionic InRelease is not (yet) available (403 Forbidden [IP: 193.196.136.221 80])
E: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease 403 Forbidden [IP: 193.196.136.221 80]
E: The repository 'http://de.archive.ubuntu.com/ubuntu bionic-backports InRelease' is no longer signed.
W: Updating from such a repository can't be done securely, and is therefore disabled by default.
W: See apt-secure(8) manpage for repository creation and user configuration details.
E: http://de.archive.ubuntu.com/ubuntu bionic-backports InRelease is not (yet) available (403 Forbidden [IP: 193.196.136.221 80])
```
After looking on [reddit](https://www.reddit.com/r/kdeneon/comments/fvwxxo/errors_updating_kde_neon/) for help, I searched further and found a [topic on the German KDE neon Forums, that explains the error and the solution](https://www.kde-neon.de/topic/pkcon-referesh-und-discover-mit-proxy-error/). According to the post, PackageKit saves the proxy setting in its database, but never removes it. Removing the `/var/lib/PackageKit/transactions.db` file and restarting PackageKit with `sudo systemctl restart packagekit.service` rebuilds the database with the correct proxy settings. Simply restarting the computer did *not* help.
If needed, I can upload a before/after of the `transactions.db`.
It may actually be related to #189?
1 Like