Error when running sudo zypper dup. "Requirement cannot be provided"

See error code below. What should I do?

Is something in my system using python? Or can python be safely uninstalled?

advait@localhost:~> sudo zypper dup
[sudo] password for root: 
Loading repository data...
Reading installed packages...
Warning: You are about to do a distribution upgrade with all enabled repositories. Make sure these repositories are compatible before you continue. See 'man zypper' for more information about this command.
Computing distribution upgrade...

Problem: 1: the installed python311-numba-0.60.0-1.2.x86_64 requires '(python311-numpy >= 1.22 with python311-numpy < 2.1)', but this requirement cannot be provided
deleted providers: python311-numpy-2.0.0-1.2.x86_64
not installable providers: python311-numpy1-1.26.4-1.1.x86_64[download.opensuse.org-oss]

 Solution 1: Following actions will be done:
  deinstallation of python311-pandas-performance-2.2.2-6.1.noarch
  deinstallation of python311-numba-0.60.0-1.2.x86_64
 Solution 2: deinstallation of python311-numpy-2.0.0-1.2.x86_64
 Solution 3: keep obsolete python311-numpy-2.0.0-1.2.x86_64
 Solution 4: break python311-numba-0.60.0-1.2.x86_64 by ignoring some of its dependencies

Choose from above solutions by number or cancel [1/2/3/4/c/d/?] (c): 

Let’s see the output to zypper lr -d so we can see what the repos are that you have configured.

1 Like

Sure. See below. Anything helpful? What should I do next?

advait@localhost:~> zypper lr -d
#  | Alias                            | Name                                   | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                            | Service
---+----------------------------------+----------------------------------------+---------+-----------+---------+----------+--------+--------------------------------------------------------------------------------+--------
 1 | Virtualization                   | Virtualization (openSUSE_Tumbleweed)   | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/Virtualization/openSUSE_Tumbleweed/ | 
 2 | download.opensuse.org-non-oss    | Main Repository (NON-OSS)              | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/tumbleweed/repo/non-oss/                          | 
 3 | download.opensuse.org-oss        | Main Repository (OSS)                  | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/tumbleweed/repo/oss/                              | 
 4 | download.opensuse.org-tumbleweed | Main Update Repository                 | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/tumbleweed/                                | 
 5 | google-chrome                    | google-chrome                          | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://dl.google.com/linux/chrome/rpm/stable/x86_64                           | 
 6 | openSUSE-20240112-0              | openSUSE-20240112-0                    | No      | ----      | ----    |   99     | rpm-md | hd:/?device=/dev/disk/by-id/usb-hp_v250w_0426580071705207-0:0-part2            | 
 7 | repo-debug                       | openSUSE-Tumbleweed-Debug              | No      | ----      | ----    |   99     | N/A    | http://download.opensuse.org/debug/tumbleweed/repo/oss/                        | 
 8 | repo-openh264                    | Open H.264 Codec (openSUSE Tumbleweed) | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://codecs.opensuse.org/openh264/openSUSE_Tumbleweed                        | 
 9 | repo-source                      | openSUSE-Tumbleweed-Source             | No      | ----      | ----    |   99     | N/A    | http://download.opensuse.org/source/tumbleweed/repo/oss/                       | 
10 | snappy                           | snappy                                 | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/system:/snappy/openSUSE_Tumbleweed  | 
11 | teamviewer                       | TeamViewer - x86_64                    | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://linux.teamviewer.com/yum/stable/main/binary-x86_64/                    | 
advait@localhost:~> 

@invalid_user_name It’s a packaging error with python-numba shoulb be <= numpy 2.1… rather than < as numpy version is 2.1

If you don’t think it’s needed, go with Solution 1…

3 Likes

See below. So it’s unlikely that any of my apps are using either of these 2 python files? If that’s true, then I’ll execute Solution 1 per your suggestion. I just want to be cautious and check first.

python311-pandas-performance-2.2.2-6.1.noarch
python311-numba-0.60.0-1.2.x86_64

I’m not doing any python coding or any kind of dev work.

I have tried solution 2, and no problem.

1 Like

Hmmm… I’ve got one vote for Solution 1 and one for Solution 2. I’ll flip a coin, proceed from there and report back. :slightly_smiling_face:

@invalid_user_name Solution 1 allows python311-numpy to update to 2.1 from 2.0…

1 Like

Do you think it is likely that the creators of this problem will fix it? Therefore, I should just be a bit patient…

Kind regards
Pedro

1 Like

@pedroSMS Not sure if it’s a problem if you don’t need numba, one wonders if python311-numpy needs to be downgraded to python311-numpy1 two different packages…

Bug report is probably required to confirm…

1 Like

Thanks for your reply @malcolmlewis. I’ll leave it for a week and see if anything changes…

Kind regards
Pedro

1 Like

I went with Solution 1 and it seems to have worked. I ran sudo zypper dup successfully with no error messages. Thanks!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.