My system is still on openSUSE LEAP 15.6. Trying to update to Leap 16.0 fails actually because zypper reports on two repositories “Repository type can’t be determined.”
Here’s output of zypper lr after having performed sudo zypper clean -a and sudo zypper refresh
Repositories 7 (repo-non-oss) and 10 (repo-oss) generate message
retrieving repository 'repo-non-oss (15.6)' metadata ............................................................[error]
Repository 'repo-non-oss (15.6)' is invalid.
[openSUSE:repo-non-oss|https://download.opensuse.org/distribution/leap/15.6/repo/non-oss/x86_64] Failed to retrieve new repository metadata.
History:
- [openSUSE:repo-non-oss|https://download.opensuse.org/distribution/leap/15.6/repo/non-oss/x86_64] Repository type can't be determined.
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'repo-non-oss (15.6)' because of the above error.
Retrieving repository 'repo-oss (15.6)' metadata ................................................................[error]
Repository 'repo-oss (15.6)' is invalid.
[openSUSE:repo-oss|https://download.opensuse.org/distribution/leap/15.6/repo/oss/x86_64] Failed to retrieve new repository metadata.
History:
- [openSUSE:repo-oss|https://download.opensuse.org/distribution/leap/15.6/repo/oss/x86_64] Repository type can't be determined.
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'repo-oss (15.6)' because of the above error.
Could not refresh the repositories because of errors.
Obviously the reason is that zypper tries to query repository data () at the wrong place, x86_64 here. But how can this be fixed?
Additional info, output of zypper lr -pu 7 10:
Alias : openSUSE:repo-non-oss
Name : repo-non-oss (15.6)
URI : https://download.opensuse.org/distribution/leap/15.6/repo/non-oss/x86_64
Enabled : Yes
GPG Check : ( p) Yes
Priority : 99 (default priority)
Autorefresh : On
Keep Packages : Off
Type : N/A
GPG Key URI : https://download.opensuse.org/distribution/leap/15.6/repo/non-oss/repodata/repomd.xml.key
Path Prefix : /
Parent Service : openSUSE
Keywords : ---
Repo Info Path : /etc/zypp/repos.d/openSUSE:repo-non-oss.repo
MD Cache Path : /var/cache/zypp/raw/openSUSE:repo-non-oss
Alias : openSUSE:repo-oss
Name : repo-oss (15.6)
URI : https://download.opensuse.org/distribution/leap/15.6/repo/oss/x86_64
Enabled : Yes
GPG Check : ( p) Yes
Priority : 99 (default priority)
Autorefresh : On
Keep Packages : Off
Type : N/A
GPG Key URI : https://download.opensuse.org/distribution/leap/15.6/repo/oss/repodata/repomd.xml.key
Path Prefix : /
Parent Service : openSUSE
Keywords : ---
Repo Info Path : /etc/zypp/repos.d/openSUSE:repo-oss.repo
MD Cache Path : /var/cache/zypp/raw/openSUSE:repo-oss
Strange thing: GPG key URI is correct, at least Browser is able to download file repomd.xml.key, but zypper reports an error anyway!
There seems something completely off in your setup and update procedure.
normally, if the repos would be managed by the service (as some parts of the code snippets suggest), the URLs would be cdn.o.o. instead of d.o.o
there are many Leap 15.6 repos missing (backport, update, SLE)
why would someone try to perform a zypper ref on a repolist where ALL Leap 15.6 update and backport repos are missing?
so was/is your Leap 15.6 up to date or not?
how did you end with such a repolist?
did you remove some of the Leap 15.6 repos on purpose? If yes (coming back to point 3), why do you try to refresh the Leap 15.6 repos then instead of changing the URL to Leap 16 and performing the refresh afterwards?
This repolist and procedure raises only questions…
System is still on Leap 15.6 and up to date, as far as this is possible for Leap 15.6;
First ( I wanted to give opensuse-migration-tool --dry-run a try. After selecting 10_keepselinux it reported Dry run completed, feel free to continue.
Second run told me something about failing packages and terminated with hints about packages to deactive, namely repo-oss (15.6). Sorry, did not copy and save those details.
Trying to get that cleaned I did start “YaST2 Software” and it did report in a window Während der Repository-Initialisierung ist ein Fehler aufgetreten. [openSUSE:repo-oss|http://cdn.opensuse.org/distribution/leap/15.6/repo/oss/x86_64] Neue Repository-Metadaten konnten nicht abgerufen werden. Verlauf: - [openSUSE:repo-oss|http://cdn.opensuse.org/distribution/leap/15.6/repo/oss/x86_64] Repository type can't be determined. That’s why I’m fiddling with this issue.
As you can see, original URIs did point to cdn.opensuse.org.
15.6 cannot be up-to-date unless you had the three update repos Update, BP and SLE enabled when you updated, unless you updated with them, then removed them.
No improvement. zypper clean/zypper refresh give same results. here details about repositories 7 and 10:
LANG=C sudo zypper lr -d 7 10
Alias : openSUSE:repo-non-oss
Name : repo-non-oss (15.6)
URI : https://cdn.opensuse.org/distribution/leap/15.6/repo/non-oss/x86_64
Enabled : Yes
GPG Check : ( p) Yes
Priority : 99 (default priority)
Autorefresh : On
Keep Packages : Off
Type : N/A
GPG Key URI : https://cdn.opensuse.org/distribution/leap/15.6/repo/non-oss/repodata/repomd.xml.key
Path Prefix : /
Parent Service : openSUSE
Keywords : ---
Repo Info Path : /etc/zypp/repos.d/openSUSE:repo-non-oss.repo
MD Cache Path : /var/cache/zypp/raw/openSUSE:repo-non-oss
Alias : openSUSE:repo-oss
Name : repo-oss (15.6)
URI : https://cdn.opensuse.org/distribution/leap/15.6/repo/oss/x86_64
Enabled : Yes
GPG Check : ( p) Yes
Priority : 99 (default priority)
Autorefresh : On
Keep Packages : Off
Type : N/A
GPG Key URI : https://cdn.opensuse.org/distribution/leap/15.6/repo/oss/repodata/repomd.xml.key
Path Prefix : /
Parent Service : openSUSE
Keywords : ---
Repo Info Path : /etc/zypp/repos.d/openSUSE:repo-oss.repo
MD Cache Path : /var/cache/zypp/raw/openSUSE:repo-oss
and here result of LANG=C sudo zypper refresh -d 7 10
Forcing raw metadata refresh
Retrieving repository 'repo-non-oss (15.6)' metadata .........................................................................................................................................[error]
Repository 'repo-non-oss (15.6)' is invalid.
[openSUSE:repo-non-oss|https://cdn.opensuse.org/distribution/leap/15.6/repo/non-oss/x86_64] Failed to retrieve new repository metadata.
History:
- [openSUSE:repo-non-oss|https://cdn.opensuse.org/distribution/leap/15.6/repo/non-oss/x86_64] Repository type can't be determined.
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'repo-non-oss (15.6)' because of the above error.
Forcing raw metadata refresh
Retrieving repository 'repo-oss (15.6)' metadata .............................................................................................................................................[error]
Repository 'repo-oss (15.6)' is invalid.
[openSUSE:repo-oss|https://cdn.opensuse.org/distribution/leap/15.6/repo/oss/x86_64] Failed to retrieve new repository metadata.
History:
- [openSUSE:repo-oss|https://cdn.opensuse.org/distribution/leap/15.6/repo/oss/x86_64] Repository type can't be determined.
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'repo-oss (15.6)' because of the above error.
Could not refresh the repositories because of errors.
I’m a bit confused. What’s going on here?
In my understanding zypper does not get the repository metadata, thus failing to detect the repository type? But why that?
I did remove deactivated repos without any impact. Exactly the same situation.
The same two repositories get not recognized as valid ones and get listed as type “N/A”.
Removing update repos was done because it’s somewhere noted, that Leap 16.0 does not use them anymore …
But why does this breaks recognition of repos oss and non-oss? IMHO that doesn’t make any sense.
I’ve added repos update-oss and update-non-oss again. This makes sense because it holds updated packages. But those new repos aren’t recognized as well. Now I’ve 4 repos that raise an error during repo refresh and are listed with type “N/A”!
My steps where
Add two new entries in /usr/share/zypp/local/service/openSUSE/repo/opensuse-leap-repoindex.xml
Save file.
Enter YaST Software, go to “Repositorys”, chose Services, select service openSUSE and leave this clicking on button OK, then close YaST Software. That updates files in /etc/zypp/repos.d
Run sudo zypper clean -a
Run sudo zypper refresh
zypper lr -d
# | Alias | Name | Enabled | GPG Check | Refresh | Keep | Priority | Type | URI | Service
---+-------------------------------------+-----------+---------+-----------+---------+------+----------+--------+--------------------------------------------------------------------------+---------
1 | NVIDIA:repo-non-free | repo-no-> | Ja | (r ) Ja | Ja | - | 99 | rpm-md | https://download.nvidia.com/opensuse/leap/15.6 | NVIDIA
2 | Packman:openSUSE Leap | PackMan-> | Ja | (r ) Ja | Ja | - | 120 | rpm-md | https://ftp.fau.de/packman/suse/openSUSE_Leap_15.6/ |
3 | home_plater_lilypond | Music T-> | Ja | (r ) Ja | Nein | - | 120 | rpm-md | https://download.opensuse.org/repositories/home:/plater:/lilypond/15.6/ |
4 | home_redwil_15.6 | Various-> | Ja | (r ) Ja | Nein | - | 101 | rpm-md | https://download.opensuse.org/repositories/home:/redwil:/15.6/15.6/ |
5 | http-download.opensuse.org-8bbdb8cb | Email s-> | Ja | (r ) Ja | Ja | - | 122 | rpm-md | https://cdn.opensuse.org/repositories/server:/mail/15.6/ |
6 | openSUSE:repo-non-oss | repo-no-> | Ja | ( p) Ja | Ja | - | 99 | N/A | https://download.opensuse.org/distribution/leap/15.6/repo/non-oss/x86_64 | openSUSE
7 | openSUSE:repo-openh264 | repo-op-> | Ja | (r ) Ja | Ja | - | 99 | rpm-md | https://codecs.opensuse.org/openh264/openSUSE_Leap | openSUSE
8 | openSUSE:repo-oss | repo-os-> | Ja | ( p) Ja | Ja | - | 99 | N/A | https://download.opensuse.org/distribution/leap/15.6/repo/oss/x86_64 | openSUSE
9 | openSUSE:repo-update-non-oss | repo-up-> | Ja | ( p) Ja | Ja | - | 99 | N/A | https://download.opensuse.org/update/leap/15.6/repo/non-oss/x86_64 | openSUSE
10 | openSUSE:repo-update-oss | repo-up-> | Ja | ( p) Ja | Ja | - | 99 | N/A | https://download.opensuse.org/update/leap/15.6/repo/oss/x86_64 | openSUSE
11 | snappy | snappy | Ja | (r ) Ja | Ja | - | 120 | rpm-md | https://cdn.opensuse.org/repositories/system:/snappy/openSUSE_Leap_15.6 |
12 | teamviewer | TeamVie-> | Ja | (r ) Ja | Ja | - | 120 | rpm-md | https://linux.teamviewer.com/yum/stable/main/binary-x86_64/ |
13 | virtualbox | Virtual-> | Ja | (r ) Ja | Ja | - | 120 | rpm-md | http://download.virtualbox.org/virtualbox/rpm/opensuse/15.6/x86_64 |
Here’s output of zypper refresh:
LANG=C sudo zypper refresh
Retrieving repository 'repo-update-non-oss (15.6)' metadata ..................................................................................................................................[error]
Repository 'repo-update-non-oss (15.6)' is invalid.
[openSUSE:repo-update-non-oss|https://download.opensuse.org/update/leap/15.6/repo/non-oss/x86_64] Failed to retrieve new repository metadata.
History:
- [openSUSE:repo-update-non-oss|https://download.opensuse.org/update/leap/15.6/repo/non-oss/x86_64] Repository type can't be determined.
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'repo-update-non-oss (15.6)' because of the above error.
Retrieving repository 'repo-update-oss (15.6)' metadata ......................................................................................................................................[error]
Repository 'repo-update-oss (15.6)' is invalid.
[openSUSE:repo-update-oss|https://download.opensuse.org/update/leap/15.6/repo/oss/x86_64] Failed to retrieve new repository metadata.
History:
- [openSUSE:repo-update-oss|https://download.opensuse.org/update/leap/15.6/repo/oss/x86_64] Repository type can't be determined.
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'repo-update-oss (15.6)' because of the above error.
Retrieving repository 'repo-non-free (15.6)' metadata .........................................................................................................................................[done]
Building repository 'repo-non-free (15.6)' cache ..............................................................................................................................................[done]
Retrieving repository 'PackMan openSUSE Leap 15.6' metadata ...................................................................................................................................[done]
Building repository 'PackMan openSUSE Leap 15.6' cache ........................................................................................................................................[done]
Looking for gpg keys in repository Music Typesetter (15.6).
gpgkey=https://download.opensuse.org/repositories/home:/plater:/lilypond/15.6/repodata/repomd.xml.key
Retrieving repository 'Music Typesetter (15.6)' metadata ......................................................................................................................................[done]
Building repository 'Music Typesetter (15.6)' cache ...........................................................................................................................................[done]
Looking for gpg keys in repository Various packages I use for 15.6 (15.6).
gpgkey=https://download.opensuse.org/repositories/home:/redwil:/15.6/15.6/repodata/repomd.xml.key
Retrieving repository 'Various packages I use for 15.6 (15.6)' metadata .......................................................................................................................[done]
Building repository 'Various packages I use for 15.6 (15.6)' cache ............................................................................................................................[done]
Looking for gpg keys in repository Email services (15.6).
gpgkey=https://cdn.opensuse.org/repositories/server:/mail/15.6/repodata/repomd.xml.key
Retrieving repository 'Email services (15.6)' metadata ........................................................................................................................................[done]
Building repository 'Email services (15.6)' cache .............................................................................................................................................[done]
Retrieving repository 'repo-non-oss (15.6)' metadata .........................................................................................................................................[error]
Repository 'repo-non-oss (15.6)' is invalid.
[openSUSE:repo-non-oss|https://download.opensuse.org/distribution/leap/15.6/repo/non-oss/x86_64] Failed to retrieve new repository metadata.
History:
- [openSUSE:repo-non-oss|https://download.opensuse.org/distribution/leap/15.6/repo/non-oss/x86_64] Repository type can't be determined.
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'repo-non-oss (15.6)' because of the above error.
Looking for gpg keys in repository repo-openh264 (15.6).
gpgkey=https://codecs.opensuse.org/openh264/openSUSE_Leap/repodata/repomd.xml.key
Retrieving repository 'repo-openh264 (15.6)' metadata .........................................................................................................................................[done]
Building repository 'repo-openh264 (15.6)' cache ..............................................................................................................................................[done]
Retrieving repository 'repo-oss (15.6)' metadata .............................................................................................................................................[error]
Repository 'repo-oss (15.6)' is invalid.
[openSUSE:repo-oss|https://download.opensuse.org/distribution/leap/15.6/repo/oss/x86_64] Failed to retrieve new repository metadata.
History:
- [openSUSE:repo-oss|https://download.opensuse.org/distribution/leap/15.6/repo/oss/x86_64] Repository type can't be determined.
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'repo-oss (15.6)' because of the above error.
Looking for gpg keys in repository snappy.
gpgkey=https://cdn.opensuse.org/repositories/system:/snappy/openSUSE_Leap_15.6/repodata/repomd.xml.key
Retrieving repository 'snappy' metadata .......................................................................................................................................................[done]
Building repository 'snappy' cache ............................................................................................................................................................[done]
Looking for gpg keys in repository TeamViewer - x86_64.
gpgkey=https://linux.teamviewer.com/pubkey/currentkey.asc
Retrieving repository 'TeamViewer - x86_64' metadata ..........................................................................................................................................[done]
Building repository 'TeamViewer - x86_64' cache ...............................................................................................................................................[done]
Looking for gpg keys in repository VirtualBox for openSUSE 15.6 - x86_64.
gpgkey=https://www.virtualbox.org/download/oracle_vbox_2016.asc
Retrieving repository 'VirtualBox for openSUSE 15.6 - x86_64' metadata ........................................................................................................................[done]
Building repository 'VirtualBox for openSUSE 15.6 - x86_64' cache .............................................................................................................................[done]
Some of the repositories have not been refreshed because of an error.