On one of my Leap15.2 installations I had for several days update problems. Over the time I received several messages from packagekit that packman repo is not available. So I have changed the packman repo URL from http://packman.inode.at/suse/openSUSE_Leap_15.2/ to http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.2/. But the problem is the same. Alredady the first download of the repo hunguntil I clicked “Skip Autorefresh” the zypper ref command can download the packman repo. However if I enter the URL in the Browser the repo is there instantly. So it is no connection problem. If I use YAST to refresh the repo it says "Downloading: http://…primary.xml.gz (on average 1.3Kbps). Zypper ref breaks off.
zypper ref
Repository 'libdvdcss' is up to date. zy
Retrieving repository 'packman' metadata ..............................................................................................................................................[error]
Repository 'packman' is invalid.
[packman|http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.2/] Valid metadata not found at specified URL
History:
- Timeout exceeded when accessing 'http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.2/repodata/primary.xml.gz'.
- Can't provide ./repodata/primary.xml.gz
Why does the repo open instantly in the browser however in Yast it takes ages and in command line it times out? I tried "zypper ref -f packman and it had the same result. I can stream videos through the internet but I cannot update the repo?
For your info here is zypper lr
linux-osd0:~ # zypper ref
Repository 'libdvdcss' is up to date.
Retrieving repository 'packman' metadata ..............................................................................................................................................[error]
Repository 'packman' is invalid.
[packman|http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_Leap_15.2/] Valid metadata not found at specified URL
History:
- Timeout exceeded when accessing 'http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_Leap_15.2/repodata/primary.xml.gz'.
- Can't provide ./repodata/primary.xml.gz
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'packman' because of the above error.
Repository 'Non-OSS Repository' is up to date.
Repository 'Main Update Repository' is up to date.
Repository 'Update Repository (Non-Oss)' is up to date.
Some of the repositories have not been refreshed because of an error.
linux-osd0:~
I’m getting timeouts trying to use download.opensuse.org repo URLs, but not if I’m using ftp.gwdg.de URLs. This has been happening on and off for several days with TW, 15.2 and 15.1.
nrickert, when I try your URL in the browser I can go manually to the primary.xml.gz file and it downloads quickly - so I don’t know what the problem is, however:
Perhaps there is some bad cached information about that repo.
Try removing the repo. You can use “zypper removerepo” to remove it. That should delete all cached information. And then add it back and see if it works then.
OK, back again but without success. First I followed nrickert’s advice with removerepo and then as repo I only added the packman essential repo since I thought the xml file of the repodata is smaller.
THen I used karlmistelberger’s methode with clean --all:
linux-osd0:~ # zypper clean --all
All repositories have been cleaned up.
linux-osd0:~ # zypper ref
Retrieving repository 'libdvdcss' metadata .............................................................................................................................................[done]
Building repository 'libdvdcss' cache ..................................................................................................................................................[done]
Retrieving repository 'packman-essentials' metadata ...................................................................................................................................[error]
Repository 'packman-essentials' is invalid.
[packman-essentials|http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.2/Essentials] Valid metadata not found at specified URL
History:
- Timeout exceeded when accessing 'http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.2/Essentials/repodata/primary.xml.gz'.
- Can't provide ./repodata/primary.xml.gz
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'packman-essentials' because of the above error.
Retrieving repository 'Non-OSS Repository' metadata ....................................................................................................................................[done]
Building repository 'Non-OSS Repository' cache .........................................................................................................................................[done]
Retrieving repository 'Main Update Repository' metadata ................................................................................................................................[done]
Building repository 'Main Update Repository' cache .....................................................................................................................................[done]
Retrieving repository 'Update Repository (Non-Oss)' metadata ...........................................................................................................................[done]
Building repository 'Update Repository (Non-Oss)' cache ................................................................................................................................[done]
Some of the repositories have not been refreshed because of an error.
linux-osd0:~ #
It seems I understand less and less- hopefully someone here can clear this up. I assumed the GPG cjheck setting to ‘p’ was causing the slow download speed and the time-out error. So I did the following:
linux-osd0:~ # zypper mr -G 'packman essentials'
GPG check has been disabled for repository 'Essentials'.
linux-osd0:~ # zypper lr -P
# | Alias | Name | Enabled | GPG Check | Refresh | Priority
---+---------------------------+------------------------------------+---------+-----------+---------+---------
1 | Essentials | packman essentials | Yes | ( ) No | Yes | 90
2 | libdvdcss | libdvdcss | Yes | (r ) Yes | Yes | 99
3 | openSUSE-Leap-15.2-1 | openSUSE-Leap-15.2-1 | No | ---- | ---- | 99
4 | repo-debug | Debug Repository | No | ---- | ---- | 99
5 | repo-debug-non-oss | Debug Repository (Non-OSS) | No | ---- | ---- | 99
6 | repo-debug-update | Update Repository (Debug) | No | ---- | ---- | 99
7 | repo-debug-update-non-oss | Update Repository (Debug, Non-OSS) | No | ---- | ---- | 99
8 | repo-non-oss | Non-OSS Repository | Yes | (r ) Yes | Yes | 99
9 | repo-oss | Main Repository | Yes | (r ) Yes | Yes | 99
10 | repo-source | Source Repository | No | ---- | ---- | 99
11 | repo-source-non-oss | Source Repository (Non-OSS) | No | ---- | ---- | 99
12 | repo-update | Main Update Repository | Yes | (r ) Yes | Yes | 99
13 | repo-update-non-oss | Update Repository (Non-Oss) | Yes | (r ) Yes | Yes | 99
linux-osd0:~ # zypper clean --all
All repositories have been cleaned up.
linux-osd0:~ # zypper ref 'packman essentials'
Retrieving repository 'packman essentials' metadata ...................................................................................................................................[error]
Repository 'packman essentials' is invalid.
[Essentials|http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.2/Essentials] Valid metadata not found at specified URL
History:
- Timeout exceeded when accessing 'http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.2/Essentials/repodata/primary.xml.gz'.
- Can't provide ./repodata/primary.xml.gz
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'packman essentials' because of the above error.
Could not refresh the repositories because of errors.
linux-osd0:~ # zypper mr -g 'packman essentials'
GPG check has been enabled for repository 'Essentials'.
linux-osd0:~ # zypper clean --all
All repositories have been cleaned up.
linux-osd0:~ # zypper lr -P
# | Alias | Name | Enabled | GPG Check | Refresh | Priority
---+---------------------------+------------------------------------+---------+-----------+---------+---------
1 | Essentials | packman essentials | Yes | ( p) Yes | Yes | 90
2 | libdvdcss | libdvdcss | Yes | ( p) Yes | Yes | 99
3 | openSUSE-Leap-15.2-1 | openSUSE-Leap-15.2-1 | No | ---- | ---- | 99
4 | repo-debug | Debug Repository | No | ---- | ---- | 99
5 | repo-debug-non-oss | Debug Repository (Non-OSS) | No | ---- | ---- | 99
6 | repo-debug-update | Update Repository (Debug) | No | ---- | ---- | 99
7 | repo-debug-update-non-oss | Update Repository (Debug, Non-OSS) | No | ---- | ---- | 99
8 | repo-non-oss | Non-OSS Repository | Yes | ( p) Yes | Yes | 99
9 | repo-oss | Main Repository | Yes | ( p) Yes | Yes | 99
10 | repo-source | Source Repository | No | ---- | ---- | 99
11 | repo-source-non-oss | Source Repository (Non-OSS) | No | ---- | ---- | 99
12 | repo-update | Main Update Repository | Yes | ( p) Yes | Yes | 99
13 | repo-update-non-oss | Update Repository (Non-Oss) | Yes | ( p) Yes | Yes | 99
linux-osd0:~ #
As you can see without GPG check there is still the timeout error. however after trying to set this back with the command " zypper mr -g ‘packman essentials’ " suddenly all GPG checks in this column were set to ‘p’ even though the modifyrepo command was only for ‘packman essentials’ . I have no more ideas of how to fix this and why it is behaving like that.
I only ever see “r” there. But you seem to be correct, that “p” indicates checking package signatures while “r” indicates checking repo metadata signatures. Perhaps some kinds of error causes it to switch from “r” to “p”.
Is there a way to force it to switch to ‘r’ in GPG check? I think I have read the zypper man page 20 times and I cannot find any answers on the internet. I have now disabled the packman repo that I get at least the updates of the other repos without packman forcing a timout from packagekit.
I have updated 4 computers from Leap15.1 to 15.2. For multimedia I used exactly the same commands (from the multimedia forum here where I changed 15.1 to 15.2) with copy and paste. I have no idea why on one computer suddenly the GPG check is set to ‘p’ and on the other computers it is ‘r’.
I don’t understand what you want to say, karlmitelberger. I added at 4 different URLs for packman with the zypper ar <URL> <reponame> command. I removed them and tried to add them with YAST. Altogether I probably have added 4 different URLs 8 times as packman repos, each time on this computer the GPG Check column listed the ‘p’ and not the ‘r’ as on the other computers. The enabled repo files in /etc/zypp/repos.d are identical except for repo name and URL. However the repo with the ‘p’ in the GPG Check column downloads in speeds between 500B/s and 1.5KB/s and times out after a few minutes - already when refreshing (downloading the XML file). The other repos with the ‘r’ in the GPG Check column download with 500KB/s to 1MB/s. In the browser ALL repos (including the packman repo) download in seconds. I am not sure why the ‘p’ is there but as I understands it does a GPG check for every package. Something with this GPG check seems not to work. I deleted the key already and reloaded it but to no effect.
It is late here and I will finish for today. But in YAST I can see that it starts downloading and it tells me e.g. the speed of 1kB/s and I can see the progress bar creeping up a few centimeters in 10 minutes. Further the download in the browser is no problem. The xml file of packman essentials downloads there in under 3 seconds (530KB) in the browser so it cannot be a network problem. Why would the network work with the browser but not with YAST or command line. Tomorrow I will continue to investigate so maybe you find a solution by then