Repository 'Main Repository' is invalid. 15.2

Hi,

Please help me with the error message “Repository ‘Main Repository’ is invalid.”
I tried another mirror (ftp.gwdg.de) and the error is the same.


# zypper clean --all
All repositories have been cleaned up.



# zypper refresh -f
Forcing raw metadata refresh
Retrieving repository 'Non-OSS Repository' metadata ..........................................................................................[error]
Repository 'Non-OSS Repository' is invalid.
[repo-non-oss|http://download.opensuse.org/distribution/leap/15.2/repo/non-oss/] Valid metadata not found at specified URL
History:
 - Location 'http://download.opensuse.org/distribution/leap/15.2/repo/non-oss/repodata/32fa8d1af44375db895c8794881e97ee971318e074e6b6b82cea11410ee7697e-appdata-icons.tar.gz' is temporarily unaccessible.
 - Can't provide ./repodata/32fa8d1af44375db895c8794881e97ee971318e074e6b6b82cea11410ee7697e-appdata-icons.tar.gz


Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'Non-OSS Repository' because of the above error.
Forcing raw metadata refresh
Retrieving repository 'Main Repository' metadata .............................................................................................[error]
Repository 'Main Repository' is invalid.
[repo-oss|http://download.opensuse.org/distribution/leap/15.2/repo/oss/] Valid metadata not found at specified URL
History:
 - Location 'http://download.opensuse.org/distribution/leap/15.2/repo/oss/repodata/42cef66af7008cd62f8190fb8d3f7f3a567d2b353ccb9ed287eac1d4fe539bf8-appdata-icons.tar.gz' is temporarily unaccessible.
 - Can't provide ./repodata/42cef66af7008cd62f8190fb8d3f7f3a567d2b353ccb9ed287eac1d4fe539bf8-appdata-icons.tar.gz


Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'Main Repository' because of the above error.
Forcing raw metadata refresh
Retrieving repository 'Main Update Repository' metadata .......................................................................................[done]
Forcing building of repository cache
Building repository 'Main Update Repository' cache ............................................................................................[done]
Forcing raw metadata refresh
Retrieving repository 'Update Repository (Non-Oss)' metadata ..................................................................................[done]
Forcing building of repository cache
Building repository 'Update Repository (Non-Oss)' cache .......................................................................................[done]
Some of the repositories have not been refreshed because of an error.

zypper lr -u
Repository priorities are without effect. All enabled repositories share the same priority.


#  | Alias                     | Name                               | Enabled | GPG Check | Refresh | URI
---+---------------------------+------------------------------------+---------+-----------+---------+------------------------------------------------------------------------------------
 1 | openSUSE-Leap-15.2-1      | openSUSE-Leap-15.2-1               | No      | ----      | ----    | cd:/?devices=/dev/disk/by-id/scsi-14d534654202020207305e3437703544694957d7ced624a7d
 2 | repo-debug                | Debug Repository                   | No      | ----      | ----    | http://download.opensuse.org/debug/distribution/leap/15.2/repo/oss/
 3 | repo-debug-non-oss        | Debug Repository (Non-OSS)         | No      | ----      | ----    | http://download.opensuse.org/debug/distribution/leap/15.2/repo/non-oss/
 4 | repo-debug-update         | Update Repository (Debug)          | No      | ----      | ----    | http://download.opensuse.org/debug/update/leap/15.2/oss/
 5 | repo-debug-update-non-oss | Update Repository (Debug, Non-OSS) | No      | ----      | ----    | http://download.opensuse.org/debug/update/leap/15.2/non-oss/
 6 | repo-non-oss              | Non-OSS Repository                 | Yes     | ( p) Yes  | Yes     | http://download.opensuse.org/distribution/leap/15.2/repo/non-oss/
 7 | repo-oss                  | Main Repository                    | Yes     | ( p) Yes  | Yes     | http://download.opensuse.org/distribution/leap/15.2/repo/oss/
 8 | repo-source               | Source Repository                  | No      | ----      | ----    | http://download.opensuse.org/source/distribution/leap/15.2/repo/oss/
 9 | repo-source-non-oss       | Source Repository (Non-OSS)        | No      | ----      | ----    | http://download.opensuse.org/source/distribution/leap/15.2/repo/non-oss/
10 | repo-update               | Main Update Repository             | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/update/leap/15.2/oss/
11 | repo-update-non-oss       | Update Repository (Non-Oss)        | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/update/leap/15.2/non-oss/






Thanks,

I suggest you edit main repository and remove everything after …/repo/oss/

It is not only “Main Repository”, but also “Non-OSS Repository”.

I do not see anything after …/repo.oss/ in the URLs of the repo list that can be removed.

Normally I would say, wait a few hours or use another mirror, but you have done the second option already.

To check, I just did the same zypper clean -all and zypper ref -f and all goes fine.

same error

zypper ref  
Retrieving repository 'Non-OSS Repository' metadata ........................................................................................................[error]
Repository 'Non-OSS Repository' is invalid.
[repo-non-oss|http://download.opensuse.org/distribution/leap/15.2/repo/non-oss] Valid metadata not found at specified URL
History:
 - Location 'http://download.opensuse.org/distribution/leap/15.2/repo/non-oss/repodata/32fa8d1af44375db895c8794881e97ee971318e074e6b6b82cea11410ee7697e-appdata-icons.tar.gz' is temporarily unaccessible.
 - Can't provide ./repodata/32fa8d1af44375db895c8794881e97ee971318e074e6b6b82cea11410ee7697e-appdata-icons.tar.gz


Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'Non-OSS Repository' because of the above error.
Retrieving repository 'Main Repository' metadata ...........................................................................................................[error]
Repository 'Main Repository' is invalid.
[repo-oss|http://download.opensuse.org/distribution/leap/15.2/repo/oss] Valid metadata not found at specified URL
History:
 - Location 'http://download.opensuse.org/distribution/leap/15.2/repo/oss/repodata/42cef66af7008cd62f8190fb8d3f7f3a567d2b353ccb9ed287eac1d4fe539bf8-appdata-icons.tar.gz' is temporarily unaccessible.
 - Can't provide ./repodata/42cef66af7008cd62f8190fb8d3f7f3a567d2b353ccb9ed287eac1d4fe539bf8-appdata-icons.tar.gz


Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'Main Repository' because of the above error.
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.



some error

zypper clean -all
The flag l is not known.
robin:~ # zypper clean
All repositories have been cleaned up.
robin:~ # zypper ref -f
Forcing raw metadata refresh
Retrieving repository 'Non-OSS Repository' metadata ........................................................................................................[error]
Repository 'Non-OSS Repository' is invalid.
[repo-non-oss|http://download.opensuse.org/distribution/leap/15.2/repo/non-oss] Valid metadata not found at specified URL
History:
 - Location 'http://download.opensuse.org/distribution/leap/15.2/repo/non-oss/repodata/32fa8d1af44375db895c8794881e97ee971318e074e6b6b82cea11410ee7697e-appdata-icons.tar.gz' is temporarily unaccessible.
 - Can't provide ./repodata/32fa8d1af44375db895c8794881e97ee971318e074e6b6b82cea11410ee7697e-appdata-icons.tar.gz


Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'Non-OSS Repository' because of the above error.
Forcing raw metadata refresh
Retrieving repository 'Main Repository' metadata ...........................................................................................................[error]
Repository 'Main Repository' is invalid.
[repo-oss|http://download.opensuse.org/distribution/leap/15.2/repo/oss] Valid metadata not found at specified URL
History:
 - Location 'http://download.opensuse.org/distribution/leap/15.2/repo/oss/repodata/42cef66af7008cd62f8190fb8d3f7f3a567d2b353ccb9ed287eac1d4fe539bf8-appdata-icons.tar.gz' is temporarily unaccessible.
 - Can't provide ./repodata/42cef66af7008cd62f8190fb8d3f7f3a567d2b353ccb9ed287eac1d4fe539bf8-appdata-icons.tar.gz


Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'Main Repository' because of the above error.
Forcing raw metadata refresh
Retrieving repository 'Main Update Repository' metadata .....................................................................................................[done]
Forcing building of repository cache
Building repository 'Main Update Repository' cache ..........................................................................................................[done]
Forcing raw metadata refresh
Retrieving repository 'Update Repository (Non-Oss)' metadata ................................................................................................[done]
Forcing building of repository cache
Building repository 'Update Repository (Non-Oss)' cache .....................................................................................................[done]
Some of the repositories have not been refreshed because of an error.



Everything OK here, so at least the Italian mirror is working:
http://opensuse.mirror.garr.it/mirrors/opensuse/distribution/leap/15.2/repo/oss/
http://opensuse.mirror.garr.it/mirrors/opensuse/distribution/leap/15.2/repo/non-oss/

maybe some mirrors have temporary hiccups…


zypper ref -fForcing raw metadata refresh
Retrieving repository 'Non-OSS Repository' metadata ........................................................................................................[error]
Repository 'Non-OSS Repository' is invalid.
[repo-non-oss|http://opensuse.mirror.garr.it/mirrors/opensuse/distribution/leap/15.2/repo/non-oss/] Valid metadata not found at specified URL
History:
 - Location 'http://opensuse.mirror.garr.it/mirrors/opensuse/distribution/leap/15.2/repo/non-oss/repodata/32fa8d1af44375db895c8794881e97ee971318e074e6b6b82cea11410ee7697e-appdata-icons.tar.gz' is temporarily unaccessible.
 - Can't provide ./repodata/32fa8d1af44375db895c8794881e97ee971318e074e6b6b82cea11410ee7697e-appdata-icons.tar.gz




Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'Non-OSS Repository' because of the above error.
Forcing raw metadata refresh
Retrieving repository 'OSS' metadata .......................................................................................................................[error]
Repository 'OSS' is invalid.
[repo-oss|http://opensuse.mirror.garr.it/mirrors/opensuse/distribution/leap/15.2/repo/oss/] Valid metadata not found at specified URL
History:
 - Location 'http://opensuse.mirror.garr.it/mirrors/opensuse/distribution/leap/15.2/repo/oss/repodata/42cef66af7008cd62f8190fb8d3f7f3a567d2b353ccb9ed287eac1d4fe539bf8-appdata-icons.tar.gz' is temporarily unaccessible.
 - Can't provide ./repodata/42cef66af7008cd62f8190fb8d3f7f3a567d2b353ccb9ed287eac1d4fe539bf8-appdata-icons.tar.gz




Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'OSS' because of the above error.
Forcing raw metadata refresh
Retrieving repository 'Main Update Repository' metadata .....................................................................................................[done]
Forcing building of repository cache
Building repository 'Main Update Repository' cache ..........................................................................................................[done]
Forcing raw metadata refresh
Retrieving repository 'Update Repository (Non-Oss)' metadata ................................................................................................[done]
Forcing building of repository cache
Building repository 'Update Repository (Non-Oss)' cache .....................................................................................................[done]
Some of the repositories have not been refreshed because of an error.


zypper lr -u
Repository priorities are without effect. All enabled repositories share the same priority.




#  | Alias                     | Name                               | Enabled | GPG Check | Refresh | URI
---+---------------------------+------------------------------------+---------+-----------+---------+-------------------------------------------------------------------------------------
 1 | openSUSE-Leap-15.2-1      | openSUSE-Leap-15.2-1               | No      | ----      | ----    | cd:/?devices=/dev/disk/by-id/scsi-14d534654202020207305e3437703544694957d7ced624a7d
 2 | repo-debug                | Debug Repository                   | No      | ----      | ----    | http://download.opensuse.org/debug/distribution/leap/15.2/repo/oss/
 3 | repo-debug-non-oss        | Debug Repository (Non-OSS)         | No      | ----      | ----    | http://download.opensuse.org/debug/distribution/leap/15.2/repo/non-oss/
 4 | repo-debug-update         | Update Repository (Debug)          | No      | ----      | ----    | http://download.opensuse.org/debug/update/leap/15.2/oss/
 5 | repo-debug-update-non-oss | Update Repository (Debug, Non-OSS) | No      | ----      | ----    | http://download.opensuse.org/debug/update/leap/15.2/non-oss/
 6 | repo-non-oss              | Non-OSS Repository                 | Yes     | ( p) Yes  | Yes     | http://opensuse.mirror.garr.it/mirrors/opensuse/distribution/leap/15.2/repo/non-oss/
 7 | repo-oss                  | OSS                                | Yes     | ( p) Yes  | Yes     | http://opensuse.mirror.garr.it/mirrors/opensuse/distribution/leap/15.2/repo/oss/
 8 | repo-source               | Source Repository                  | No      | ----      | ----    | http://download.opensuse.org/source/distribution/leap/15.2/repo/oss/
 9 | repo-source-non-oss       | Source Repository (Non-OSS)        | No      | ----      | ----    | http://download.opensuse.org/source/distribution/leap/15.2/repo/non-oss/
10 | repo-update               | Main Update Repository             | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/update/leap/15.2/oss/
11 | repo-update-non-oss       | Update Repository (Non-Oss)        | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/update/leap/15.2/non-oss/







 wget http://opensuse.mirror.garr.it/mirrors/opensuse/distribution/leap/15.2/repo/oss/repodata/42cef66af7008cd62f8190fb8d3f7f3a567d2b353ccb9ed287eac1d4fe539bf8-appdata-icons.tar.gz
--2020-12-24 14:40:05--  http://opensuse.mirror.garr.it/mirrors/opensuse/distribution/leap/15.2/repo/oss/repodata/42cef66af7008cd62f8190fb8d3f7f3a567d2b353ccb9ed287eac1d4fe539bf8-appdata-icons.tar.gz
Resolving opensuse.mirror.garr.it (opensuse.mirror.garr.it)... 90.147.160.70, 90.147.160.72, 90.147.160.73, ...
Connecting to opensuse.mirror.garr.it (opensuse.mirror.garr.it)|90.147.160.70|:80... connected.
HTTP request sent, awaiting response... 503 Service Unavailable
2020-12-24 14:40:05 ERROR 503: Service Unavailable.

Apparently the problem is somewhere else in your network routing… this is what I get here:

bruno@LT_B:~> wget http://opensuse.mirror.garr.it/mirrors/opensuse/distribution/leap/15.2/repo/oss/repodata/42cef66af7008cd62f8190fb8d3f7f3a567d2b353ccb9ed287eac1d4fe539bf8-appdata-icons.tar.gz
--2020-12-24 14:11:10--  http://opensuse.mirror.garr.it/mirrors/opensuse/distribution/leap/15.2/repo/oss/repodata/42cef66af7008cd62f8190fb8d3f7f3a567d2b353ccb9ed287eac1d4fe539bf8-appdata-icons.tar.gz
Resolving opensuse.mirror.garr.it (opensuse.mirror.garr.it)... 90.147.160.70, 90.147.160.72, 90.147.160.73, ...
Connecting to opensuse.mirror.garr.it (opensuse.mirror.garr.it)|90.147.160.70|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3789715 (3,6M) [application/octet-stream]
Saving to: ‘42cef66af7008cd62f8190fb8d3f7f3a567d2b353ccb9ed287eac1d4fe539bf8-appdata-icons.tar.gz’

42cef66af7008cd62f8190fb8d3f7f3a 100%==========================================================>]   3,61M   111KB/s    in 10s     

2020-12-24 14:11:20 (370 KB/s) - ‘42cef66af7008cd62f8190fb8d3f7f3a567d2b353ccb9ed287eac1d4fe539bf8-appdata-icons.tar.gz’ saved [3789715/3789715]

bruno@LT_B:~>

As root:

zypper clean -a
zypper up

Well, that is what we all do (or something equivalent) and does work for all of us, except for the OP.

My fault, have to read better.

The original poster actually ran ’ zypper clean -all’ which doesn’t do anything. He might try ‘zypper clean --all’.

This is from his post #5

# zypper clean --all
All repositories have been cleaned up.

And I see the same in his post #1.

So, what do you mean? Do I miss something obvious or could you explain more extensive what you mean?

I checked again: #1 has --all; I missed that. #5 has -all as indicated by message ‘The flag l is not known.’

Thanks, the problem was with an existing filtering policy on the router