Zypper dup, installation has completed with an error, couldn't download file, fixed by zypper refresh

In short the recommendations above can be token together in two advises:

start studying

man zypper

and post (as root):

zypper lr -d