openSUSE / opi

OBS Package Installer (CLI)
GNU General Public License v3.0
244 stars 22 forks source link

v 4.3.0 adds the wrong packman repo for Slowroll #168

Closed zebh closed 9 months ago

zebh commented 9 months ago
  1. Install opi from Slowroll repo and then manually update to 4.3 from Tumbleweed repos.
  2. run opi codecs
  3. follow on-screen instructions accepting defaults.

This sets up packman targeting Tumbleweed and installs packages from there, causing conflicts. In this particular case that would be due to pipewire 1.0 being in Tumbleweed but not yet in Slowroll.

As far as I understand it, the correct packman url to use for slowroll would be: http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Slowroll/Essentials/

asdil12 commented 9 months ago

Hi,

which repo did opi add for you? And are you sure that opi did add it and that it wasn't added when running opi<4.3 before? I just tested it and it added the correct packman repo. Could you send me the output of zypper lr -u and also the dependency issue? Also the content of /etc/os-release.

zebh commented 9 months ago

which repo did opi add for you?

I got this one: https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/

And are you sure that opi did add it and that it wasn't added when running opi<4.3 before?

I just tried it again, running opi 4.0 gave me the same one, I then deleted the file and ran 4.3 and it gave me the same file.

I just tested it and it added the correct packman repo.

Could you send me the output of zypper lr -u and also the dependency issue? Also the content of /etc/os-release.

zypper lr -u:

# | Alias        | Name         | Enabled | GPG Check | Refresh | URI
--+--------------+--------------+---------+-----------+---------+---------------------------------------------------------------------
1 | base-non-oss | base-non-oss | Yes     | (r ) Yes  | Yes     | http://cdn.opensuse.org/slowroll/repo/non-oss/
2 | base-oss     | base-oss     | Yes     | (r ) Yes  | Yes     | http://cdn.opensuse.org/slowroll/repo/oss/
3 | base-src-oss | base-src-oss | No      | ----      | ----    | http://cdn.opensuse.org/slowroll/repo/src-oss/
4 | h264         | h264         | Yes     | (r ) Yes  | Yes     | http://codecs.opensuse.org/openh264/openSUSE_Tumbleweed/
5 | packman      | Packman      | Yes     | (r ) Yes  | Yes     | https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/
6 | update       | update       | Yes     | (r ) Yes  | Yes     | http://cdn.opensuse.org/update/slowroll/repo/oss/

Dependency issue:

Problem: nothing provides 'pipewire >= 1.0.0' needed by the to be installed pipewire-aptx-1.0.0-1699.1.pm.1.x86_64
 Solution 1: do not install pipewire-aptx-1.0.0-1699.1.pm.1.x86_64
 Solution 2: break pipewire-aptx-1.0.0-1699.1.pm.1.x86_64 by ignoring some of its dependencies

os-release:

NAME="openSUSE Tumbleweed"
# VERSION="20231119"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20231119"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:tumbleweed:20231119"
BUG_REPORT_URL="https://bugzilla.opensuse.org"
SUPPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Tumbleweed"
LOGO="distributor-logo-Tumbleweed"

Slowroll was installed by following these instructions: https://en.opensuse.org/openSUSE:Slowroll

asdil12 commented 9 months ago

There we have it: You still have the openSUSE-release RPM from tumbleweed installed. So for opi this is still a tumbleweed system. Running zypper dup after switching to slowroll repos should have installed the slowroll variant of that package:

5f08b27524a1:/ # rpm -qi openSUSE-release
Name        : openSUSE-release
Version     : 20231119
Release     : 7.1
Architecture: x86_64
Install Date: Wed Dec 20 10:17:11 2023
Group       : System/Fhs
Size        : 235376
License     : BSD-3-Clause
Signature   : DSA/SHA1, Thu Nov 23 11:15:25 2023, Key ID f9a8b79beae4fd92
Source RPM  : openSUSE-release-20231119-7.1.src.rpm
Build Date  : Thu Nov 23 00:00:00 2023
Build Host  : reproducible
Packager    : https://bugs.opensuse.org
Vendor      : openSUSE
Summary     : openSUSE Tumbleweed/Slowroll
Description :
openSUSE Tumbleweed is the rolling distribution by the openSUSE.org project.
Distribution: openSUSE Slowroll
5f08b27524a1:/ # cat /etc/os-release
NAME="openSUSE Tumbleweed-Slowroll"
# VERSION="20231119"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20231119"
PRETTY_NAME="openSUSE Tumbleweed-Slowroll"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:tumbleweed:20231119"
BUG_REPORT_URL="https://bugzilla.opensuse.org"
SUPPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org"
DOCUMENTATION_URL="https://en.opensuse.org/openSUSE:Slowroll"
LOGO="distributor-logo-Tumbleweed"
zebh commented 9 months ago

I've ran dup several times, before messing with opi... :thinking:

Seems I have somehow managed to dig up a bug somewhere else.

❯ zypper lr -u
Repository priorities in effect:                                                                                       (See 'zypper lr -P' for details)
      70 (raised priority)  :  1 repository
      80 (raised priority)  :  1 repository
      99 (default priority) :  3 repositories

# | Alias        | Name         | Enabled | GPG Check | Refresh | URI
--+--------------+--------------+---------+-----------+---------+-----------------------------------------------------------------------------
1 | base-non-oss | base-non-oss | Yes     | (r ) Yes  | Yes     | http://cdn.opensuse.org/slowroll/repo/non-oss/
2 | base-oss     | base-oss     | Yes     | (r ) Yes  | Yes     | http://cdn.opensuse.org/slowroll/repo/oss/
3 | base-src-oss | base-src-oss | No      | ----      | ----    | http://cdn.opensuse.org/slowroll/repo/src-oss/
4 | h264         | h264         | Yes     | (r ) Yes  | Yes     | http://codecs.opensuse.org/openh264/openSUSE_Tumbleweed/
5 | packman      | packman      | Yes     | (r ) Yes  | Yes     | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Slowroll/Essentials/
6 | update       | update       | Yes     | (r ) Yes  | Yes     | http://cdn.opensuse.org/update/slowroll/repo/oss/
❯ sudo zypper install --force openSUSE-release
Loading repository data...
Reading installed packages...
Forcing installation of 'openSUSE-release-20231119-2598.1.x86_64' from repository 'base-oss'.
Resolving package dependencies...

The following package is going to be reinstalled:
  openSUSE-release

The following product is going to be reinstalled:
  "openSUSE Tumbleweed"

1 package to reinstall.
Overall download size: 1,6 MiB. Already cached: 0 B. No additional space will be used or freed after the operation.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving: openSUSE-release-20231119-2598.1.x86_64 (base-oss)                                                                     (1/1),   1,6 MiB
Retrieving: openSUSE-release-20231119-2598.1.x86_64.rpm .............................................................................[done (5,3 MiB/s)]

Checking for file conflicts: ....................................................................................................................[done]
(1/1) Installing: openSUSE-release-20231119-2598.1.x86_64 .......................................................................................[done]
Running post-transaction scripts ................................................................................................................[done]
❯ rpm -qi openSUSE-release
Name        : openSUSE-release
Version     : 20231119
Release     : 2598.1
Architecture: x86_64
Install Date: ons 20 dec 2023 15:17:02
Group       : System/Fhs
Size        : 235170
License     : BSD-3-Clause
Signature   : RSA/SHA512, mån 20 nov 2023 07:08:56, Key ID 35a2f86e29b700a4
Source RPM  : openSUSE-release-20231119-2598.1.src.rpm
Build Date  : mån 20 nov 2023 07:08:49
Build Host  : i04-ch2d
Packager    : https://bugs.opensuse.org
Vendor      : openSUSE
Summary     : openSUSE Tumbleweed
Description :
openSUSE Tumbleweed is the rolling distribution by the openSUSE.org project.
Distribution: openSUSE Tumbleweed
❯ cat /etc/os-release
NAME="openSUSE Tumbleweed"
# VERSION="20231119"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20231119"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:tumbleweed:20231119"
BUG_REPORT_URL="https://bugzilla.opensuse.org"
SUPPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Tumbleweed"
LOGO="distributor-logo-Tumbleweed"
❯ sudo zypper products
Loading repository data...
Reading installed packages...
S  | Repository   | Internal Name         | Name                         | Version    | Arch   | Is Base
---+--------------+-----------------------+------------------------------+------------+--------+--------
   | base-non-oss | openSUSE-Addon-NonOss | openSUSE NonOSS Addon        | 20231119-0 | x86_64 | No
i+ | base-oss     | openSUSE              | openSUSE Tumbleweed          | 20231119-0 | x86_64 | Yes
   | base-oss     | MicroOS               | openSUSE MicroOS             | 20231119-0 | x86_64 | No
   | base-oss     | Aeon                  | openSUSE Aeon                | 20231119-0 | x86_64 | No
i+ | update       | openSUSE              | openSUSE Tumbleweed/Slowroll | 20231119-0 | x86_64 | Yes
   | update       | MicroOS               | openSUSE MicroOS/Slowroll    | 20231119-0 | x86_64 | No
   | update       | openSUSE-Addon-NonOss | openSUSE NonOSS Addon        | 20231119-0 | x86_64 | No
   | update       | openSUSE-Addon-NonOss | openSUSE NonOSS Addon        | 20231003-0 | i586   | No
zebh commented 9 months ago

Aha! I fixed it, and confirmed that opi 4.3 is indeed doing the right thing.

❯ sudo zypper install --force -t product openSUSE
Loading repository data...
Reading installed packages...
Forcing installation of 'product:openSUSE-20231119-0.x86_64' from repository 'update'.
Resolving package dependencies...

The following package is going to be downgraded:
  openSUSE-release

The following product is going to be reinstalled:
  "openSUSE Tumbleweed"

1 package to downgrade.
Overall download size: 1,6 MiB. Already cached: 0 B. After the operation, additional 206,0 B will be used.
Continue? [y/n/v/...? shows all options] (y): v

The following package is going to be downgraded:
  openSUSE-release  20231119-2598.1 -> 20231119-7.1

The following product is going to be reinstalled:
  openSUSE Tumbleweed  20231119-0

1 package to downgrade.
Overall download size: 1,6 MiB. Already cached: 0 B. After the operation, additional 206,0 B will be used.
Continue? [y/n/v/...? shows all options] (y):
Retrieving: openSUSE-release-20231119-7.1.x86_64 (update)                                                                          (1/1),   1,6 MiB
Retrieving: openSUSE-release-20231119-7.1.x86_64.rpm ................................................................................[done (1,4 MiB/s)]

Checking for file conflicts: ....................................................................................................................[done]
(1/1) Installing: openSUSE-release-20231119-7.1.x86_64 ..........................................................................................[done]
Running post-transaction scripts ................................................................................................................[done]
There are running programs which still use files and libraries deleted or updated by recent upgrades. They should be restarted to benefit from the latest updates. Run 'zypper ps -s' to list these programs.
❯ cat /etc/os-release
NAME="openSUSE Tumbleweed-Slowroll"
# VERSION="20231119"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20231119"
PRETTY_NAME="openSUSE Tumbleweed-Slowroll"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:tumbleweed:20231119"
BUG_REPORT_URL="https://bugzilla.opensuse.org"
SUPPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org"
DOCUMENTATION_URL="https://en.opensuse.org/openSUSE:Slowroll"
LOGO="distributor-logo-Tumbleweed"

After opi codecs I get this:

❯ zypper lr -u
Repository priorities in effect:                                                                                       (See 'zypper lr -P' for details)
      80 (raised priority)  :  1 repository
      90 (raised priority)  :  1 repository
      99 (default priority) :  3 repositories

# | Alias        | Name         | Enabled | GPG Check | Refresh | URI
--+--------------+--------------+---------+-----------+---------+-------------------------------------------------------------------
1 | base-non-oss | base-non-oss | Yes     | (r ) Yes  | Yes     | http://cdn.opensuse.org/slowroll/repo/non-oss/
2 | base-oss     | base-oss     | Yes     | (r ) Yes  | Yes     | http://cdn.opensuse.org/slowroll/repo/oss/
3 | base-src-oss | base-src-oss | No      | ----      | ----    | http://cdn.opensuse.org/slowroll/repo/src-oss/
4 | h264         | h264         | Yes     | (r ) Yes  | Yes     | http://codecs.opensuse.org/openh264/openSUSE_Tumbleweed/
5 | packman      | Packman      | Yes     | (r ) Yes  | Yes     | https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Slowroll/
6 | update       | update       | Yes     | (r ) Yes  | Yes     | http://cdn.opensuse.org/update/slowroll/repo/oss/

A dup gives nothing except complains that librist4 in packman is older than in openSUSE. (and of course, it wants to downgrade opi)

asdil12 commented 9 months ago

Okay - so I guess we can close the issue then.