Zypper doesn't download all packages when installing an app

Hi.
Today I installed opensuse tumbleweed on my laptop and I have a weird problem with zypper
when i want to refresh the repos or install an app, zypper can’t download the content unless i abort or retry the process

for example i tried to install vlc on my computer, the first few packages from pakman downloaded in few second but when zypper tried to install packages from openSUSE-Tumbleweed-Oss, it download one package and the download stops for the next package and i had to hit ctrl + c and retry the process to download the next package

Anybody have any idea why this is happening?

Did you switch to CDN? I don’t think it’s used by default though.

Seems like a problem with CDN availability to me. I think it is still in a testing period, at least I didn’t read anyting about the trial being finished:

Here is the description on how to switch back to the previous repos in case you don’t want to use CDN anymore:

It will likely be pulled in on every system with NVIDIA unless user disabled recommends.

1 Like

Thanks for the remark. I haven’t been aware of that.

I don’t think I enabled these repos

my laptop does not have NVIDIA graphics

here’s my active repos and i don’t think any of them are the new one

indeed, those URL seem to be the default ones.
But in your first screenshot zypper is trying to download from cdn.opensuse.org

what does zypper lr -u return?

oh i didn’t notice that in my first screenshot
here is the output:

This also are the default repos. That appears to be a bit strange to me.
What exact commands did you use for refreshing and updating?

Could you please verify that openSUSE-repos-Tumbleweed are not installed with
zypper se openSUSE-repos-*

it seems there are 4 packages with these names and as @arvidjaar mentioned two of them has nvidia name in it although my laptop does not have nvidia graphics

S | Name                             | Summary                                | Type
--+----------------------------------+----------------------------------------+--------
  | openSUSE-repos-MicroOS           | openSUSE package repositories          | package
  | openSUSE-repos-MicroOS-NVIDIA    | openSUSE NVIDIA repository definitions | package
  | openSUSE-repos-Tumbleweed        | openSUSE package repositories          | package
  | openSUSE-repos-Tumbleweed-NVIDIA | openSUSE NVIDIA repository definitions | package

It’s fine. They are not flagged installed. Otherwise there would be an “i” in the first column.
What you see means just that they are available in repositories.

So, did you run sudo zypper ref && sudo zypper dup for refresh and update?

Unfortunately i can’t even refresh the repos and it tried to download from the CDN!

Retrieving repository 'openSUSE-Tumbleweed-Non-Oss' metadata ............[error]
Repository 'openSUSE-Tumbleweed-Non-Oss' is invalid.
[repo-non-oss|http://download.opensuse.org/tumbleweed/repo/non-oss/] Valid metadata not found at specified URL
History:
 - Timeout exceeded when accessing 'http://cdn.opensuse.org/tumbleweed/repo/non-oss/repodata/631794a9ef84f65b6ecabb0fe4294a1ce54b304af893d452d74642fc27ac5af1465b1488e71a0435c78615054f3be0764cefb87dfdc4c795567735e8b8d1a132-primary.xml.gz'.
 - Can't provide ./repodata/631794a9ef84f65b6ecabb0fe4294a1ce54b304af893d452d74642fc27ac5af1465b1488e71a0435c78615054f3be0764cefb87dfdc4c795567735e8b8d1a132-primary.xml.gz

Can you check the content of the file /etc/zypp/repos.d/download.opensuse.org-non-oss.repo ?
Especially the baseurl

Also please list the content of the folder /etc/zypp/repos.d/

baseurl=http://download.opensuse.org/tumbleweed/repo/non-oss/

I did a search on “cdn.opensuse.org” string on my system and I got a hit in: /var/cache/zypp/geoip.d/download.opensuse.org
I searched for this file and found that this file is created with zypper and there is a section about this in Zypp Configuration

## Whether to use the geoip feature of download.opensuse.org
##
## Valid values: boolean
## Default value: true
##
## The media backend can rewrite download requests to the geographically closest availble mirror.
## Which exact mirror is used will be determined by requesting a "geoip" file from download.opensuse.org
## via a HTTP GET request to https://download.opensuse.org/geoip , the server will use the clients IP to
## determine the closest mirror if available.
## Some specific files are however excluded from this redirection due to security reasons, especially the
## repo metdata index and it's key and checksum files: repomd.xml, repomd.xml.key and repomd.xml.asc
##
## download.use_geoip_mirror = true

https://download.opensuse.org/geoip” returns this “cdn.opensuse.org” url and I think this is the problem.
How can I change this config? Just change true to false or uncomment it or something?
I’m not very good at zypper.

1 Like

Uncomment and change to false. Delete /var/cache/zypp/geoip.d/download.opensuse.org

1 Like

It seems changing the config file and disabling geoip solved my problem.
Thank you for your help @arvidjaar @404_UsernameNotFound

1 Like