As there it seems now to be clear that this is about 15.2, I will change the prefix.
And @beyond911, you are welcome here, but please be precise in what you tell people here. So not “SUSE” when you mean “openSUSE” and not “15.3” when you mean “15.2”. Every character counts!
And, because of your badly readable image, there is a better way to post your computer text here:
There is an important, but not easy to find feature on the forums.
Please in the future use CODE tags around copied/pasted computer text in a post. It is the # button in the tool bar of the post editor. When applicable copy/paste complete, that is including the prompt, the command, the output and the next prompt.
1. When I execute sudo zypper ref , the error is following:
harry@localhost:~> sudo zypper ref
[sudo] password for root:
Retrieving repository ‘main’ metadata …[error]
Repository ‘main’ is invalid.
[main|Index of /pub/opensuse/discontinued/distribution/11.3/repo/oss/suse/] Valid metadata not found at specified URL
History:
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository ‘main’ because of the above error.
Retrieving repository ‘nonoss’ metadata …[error]
Repository ‘nonoss’ is invalid.
[nonoss|http://download.opensuse.org/distribution/11.3/repo/non-oss/suse/] Valid metadata not found at specified URL
History:
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository ‘nonoss’ because of the above error.
Repository ‘openSUSE-Leap-15.2-1’ is up to date.
Problem retrieving files from ‘Non-OSS Repository’.
Download (curl) error for ‘http://download.opensuse.org/distribution/leap/15.2/repo/non-oss/repodata/repomd.xml’:
Error code: Curl error 56
Error message: Recv failure: Connection reset by peer
Please see the above error message for a hint.
Skipping repository ‘Non-OSS Repository’ because of the above error.
Problem retrieving files from ‘Main Repository’.
Download (curl) error for ‘http://download.opensuse.org/distribution/leap/15.2/repo/oss/repodata/repomd.xml’:
Error code: Curl error 56
Error message: Recv failure: Connection reset by peer
Please see the above error message for a hint.
Skipping repository ‘Main Repository’ because of the above error.
Problem retrieving files from ‘Main Update Repository’.
Download (curl) error for ‘http://download.opensuse.org/update/leap/15.2/oss/repodata/repomd.xml’:
Error code: Curl error 56
Error message: Recv failure: Connection reset by peer
Please see the above error message for a hint.
Skipping repository ‘Main Update Repository’ because of the above error.
Problem retrieving files from ‘Update Repository (Non-Oss)’.
Download (curl) error for ‘http://download.opensuse.org/update/leap/15.2/non-oss/repodata/repomd.xml’:
Error code: Curl error 56
Error message: Recv failure: Connection reset by peer
Please see the above error message for a hint.
Skipping repository ‘Update Repository (Non-Oss)’ because of the above error.
Retrieving repository ‘upate’ metadata …[error]
Repository ‘upate’ is invalid.
[upate|http://download.opensuse.org/update/11.3/suse] Valid metadata not found at specified URL
History:
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository ‘upate’ because of the above error.
Retrieving repository ‘update’ metadata …[error]
Repository ‘update’ is invalid.
[update|http://download.opensuse.org/update/11.3/suse] Valid metadata not found at specified URL
History:
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository ‘update’ because of the above error.
Some of the repositories have not been refreshed because of an error.
harry@localhost:~>
**1. When I execute sudo zypper ref , the error is following:
harry@localhost:~> sudo zypper ref
[sudo] password for root:
Retrieving repository 'main' metadata ............................................................................................................................................................[error]
Repository 'main' is invalid.
[main|["]http://ftp5.gwdg.de/pub/opensuse/dis...repo/oss/suse]](http://ftp5.gwdg.de/pub/opensuse/discontinued/distribution/11.3/repo/oss/suse) Valid metadata not found at specified URL
History:
- |] Error trying to read from 'http://ftp5.gwdg.de/pub/opensuse/discontinued/distribution/11.3/repo/oss/suse'
- Download (curl) error for 'http://ftp5.gwdg.de/pub/opensuse/discontinued/distribution/11.3/repo/oss/suse/content':
Error code: Curl error 56
Error message: Recv failure: Connection reset by peer
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'main' because of the above error.
Retrieving repository 'nonoss' metadata ..........................................................................................................................................................[error]
Repository 'nonoss' is invalid.
[nonoss|["]http://download.opensuse.org/distrib...non-oss/suse/]](http://download.opensuse.org/distribution/11.3/repo/non-oss/suse/) Valid metadata not found at specified URL
History:
- |] Error trying to read from 'http://download.opensuse.org/distribution/11.3/repo/non-oss/suse/'
- Download (curl) error for 'http://download.opensuse.org/distribution/11.3/repo/non-oss/suse/content':
Error code: Curl error 56
Error message: Recv failure: Connection reset by peer
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'nonoss' because of the above error.
Repository 'openSUSE-Leap-15.2-1' is up to date.
Problem retrieving files from 'Non-OSS Repository'.
Download (curl) error for 'http://download.opensuse.org/distribution/leap/15.2/repo/non-oss/repodata/repomd.xml':
Error code: Curl error 56
Error message: Recv failure: Connection reset by peer
Please see the above error message for a hint.
Skipping repository 'Non-OSS Repository' because of the above error.
Problem retrieving files from 'Main Repository'.
Download (curl) error for 'http://download.opensuse.org/distribution/leap/15.2/repo/oss/repodata/repomd.xml':
Error code: Curl error 56
Error message: Recv failure: Connection reset by peer
Please see the above error message for a hint.
Skipping repository 'Main Repository' because of the above error.
Problem retrieving files from 'Main Update Repository'.
Download (curl) error for 'http://download.opensuse.org/update/leap/15.2/oss/repodata/repomd.xml':
Error code: Curl error 56
Error message: Recv failure: Connection reset by peer
Please see the above error message for a hint.
Skipping repository 'Main Update Repository' because of the above error.
Problem retrieving files from 'Update Repository (Non-Oss)'.
Download (curl) error for 'http://download.opensuse.org/update/leap/15.2/non-oss/repodata/repomd.xml':
Error code: Curl error 56
Error message: Recv failure: Connection reset by peer
Please see the above error message for a hint.
Skipping repository 'Update Repository (Non-Oss)' because of the above error.
Retrieving repository 'upate' metadata ...........................................................................................................................................................[error]
Repository 'upate' is invalid.
[upate|http://download.opensuse.org/update/11.3/suse] Valid metadata not found at specified URL
History:
- |] Error trying to read from 'http://download.opensuse.org/update/11.3/suse'
- Download (curl) error for 'http://download.opensuse.org/update/11.3/suse/content':
Error code: Curl error 56
Error message: Recv failure: Connection reset by peer
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'upate' because of the above error.
Retrieving repository 'update' metadata ..........................................................................................................................................................[error]
Repository 'update' is invalid.
[update|http://download.opensuse.org/update/11.3/suse] Valid metadata not found at specified URL
History:
- |] Error trying to read from 'http://download.opensuse.org/update/11.3/suse'
- Download (curl) error for 'http://download.opensuse.org/update/11.3/suse/content':
Error code: Curl error 56
Error message: Recv failure: Connection reset by peer
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'update' because of the above error.
Some of the repositories have not been refreshed because of an error.
harry@localhost:~>
Yes, based on the output of what zypper ref gave you are still on 11.3 but by answering the questions from @Miuku we know for sure.
If you are still on 11.3 it is I think best to do a fresh install of 15.2, you seem to have the .iso already (“openSUSE-Leap-15.2-DVD-x86_64.iso is my mirror.”)