Zypper up checksum errot

Receiving this when doing zypper up. How do I fix?

Retrieving repository ‘openSUSE-Leap-42.1-Update’ metadata ------------------------------------------------------------------------------------------------------------/]

Warning: Digest verification failed for file ‘04d0f2036a4752520ff032d240aa3b3039760fff904f5c22fa026b5b43b9d620-appdata.xml.gz’
[/var/cache/zypp/raw/repo-updateO0LRde/repodata/04d0f2036a4752520ff032d240aa3b3039760fff904f5c22fa026b5b43b9d620-appdata.xml.gz]

expected 4ba4abc917eaf7bab915fe3a030a9b0a8b6e84630870c7eb1f66fe2913ce690c
but got 7838a5f7df59135459f7e97a19be0e0a13b40e9d47f2208fabcae17e36610798

Accepting packages with wrong checksums can lead to a corrupted system and in extreme cases even to a system compromise.

However if you made certain that the file with checksum ‘7838…’ is secure, correct
and should be used within this operation, enter the first 4 characters of the checksum
to unblock using this file on your own risk. Empty input will discard the file.

Unblock or discard? [7838/? shows all options] (discard): 7838/?
Invalid answer ‘7838/?’. [7838/? shows all options] (discard): ?

7838 - Unblock using this file on your own risk.
discard - Discard the file.

[7838/? shows all options] (discard):
Retrieving repository ‘openSUSE-Leap-42.1-Update’ metadata …[error]
Repository ‘openSUSE-Leap-42.1-Update’ is invalid.
[repo-update|http://download.opensuse.org/update/leap/42.1/oss/] Valid metadata not found at specified URL
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository ‘openSUSE-Leap-42.1-Update’ because of the above error.

Hi
Possibly using an unsynced mirror, try refreshing in an hour or so. Or try a forced rebuild;


zypper ref -f

Pointed to a different mirror, ran zypper up, then reset to default solved the error.

Hi
If it happens again, I would set a mirror close by and just use that…

I ran into a similar problem a few days ago.

I skipped the update. Then I tried again a few hours later and all was fine.

As Malcolm said, it has to do with mirrors updating.

I had a similar error but discarded the package:

Retrieving repository 'openSUSE-Leap-42.1-Update' metadata ----------------------------------------------------------------------------/]

Warning: Digest verification failed for file '04d0f2036a4752520ff032d240aa3b3039760fff904f5c22fa026b5b43b9d620-appdata.xml.gz'
[/var/cache/zypp/raw/repo-updateTmsPOP/repodata/04d0f2036a4752520ff032d240aa3b3039760fff904f5c22fa026b5b43b9d620-appdata.xml.gz]

  expected 682809a035dab8a2ed5b1c53d0d914bb402707993ec7cab269b9ff01b47332a1
  but got  7838a5f7df59135459f7e97a19be0e0a13b40e9d47f2208fabcae17e36610798

Accepting packages with wrong checksums can lead to a corrupted system and in extreme cases even to a system compromise.

However if you made certain that the file with checksum '7838..' is secure, correct
and should be used within this operation, enter the first 4 characters of the checksum
to unblock using this file on your own risk. Empty input will discard the file.

Unblock or discard? [7838/? shows all options] (discard): discard
Retrieving repository 'openSUSE-Leap-42.1-Update' metadata ........................................................................[error]
Repository 'openSUSE-Leap-42.1-Update' is invalid.
[repo-update|http://download.opensuse.org/update/leap/42.1/oss/] Valid metadata not found at specified URL
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'openSUSE-Leap-42.1-Update' because of the above error.
Loading repository data...
Reading installed packages...

Nothing to do.

Was it correct to do so?

The current status of the Repisotories is:

linux-dlkr:/home/vibha # zypper ref -f
Forcing raw metadata refresh
Retrieving repository 'openSUSE-Leap-42.1-Oss' metadata ............................................................................[done]
Forcing building of repository cache
Building repository 'openSUSE-Leap-42.1-Oss' cache .................................................................................[done]
Forcing raw metadata refresh
Retrieving repository 'openSUSE-Leap-42.1-Update' metadata .........................................................................[done]
Forcing building of repository cache
Building repository 'openSUSE-Leap-42.1-Update' cache ..............................................................................[done]
Forcing raw metadata refresh
Retrieving repository 'openSUSE-Leap-42.1-Update-Non-Oss' metadata .................................................................[done]
Forcing building of repository cache
Building repository 'openSUSE-Leap-42.1-Update-Non-Oss' cache ......................................................................[done]
All repositories have been refreshed.
linux-dlkr:/home/vibha # zypper up
Loading repository data...
Reading installed packages...

Nothing to do.

Yes, that was correct.