Bug 1175984

Summary: zypper dup (15.1->15.2) requires OpenSUSE Leap 15.1 DVD medium
Product: [openSUSE] openSUSE Distribution Reporter: Ulrich Windl <Ulrich.Windl>
Component: YaST2Assignee: E-mail List <yast2-maintainers>
Status: RESOLVED INVALID QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: fvogt, Ulrich.Windl
Version: Leap 15.2   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Ulrich Windl 2020-09-01 05:58:41 UTC
Running "zypper dup" to upgrade from Leap 15.1 to Leap 15.2, I see this:
Retrieving package libicu60_2-ledata-60.2-lp151.2.4.noarch
                                        (1/5485),   6.2 MiB ( 25.7 MiB unpacked)
Failed to mount cd:/?devices=/dev/disk/by-id/ata-DVDR_PX-750A on /var/adm/mount/AP_0xSWAmMb: Mounting media failed (mount: /var/adm/mount/AP_0xSWAmMb: no medium found on /dev/sr0.)

The path comes from:
grep DVD /etc/zypp/repos.d/*
/etc/zypp/repos.d/openSUSE-Leap-15.1-1.repo:baseurl=cd:/?devices=/dev/disk/by-id/ata-DVDR_PX-750A

Why should an upgrade install an old package from 15.1?

Is it due to this?:
The following 12 packages are going to be downgraded:
  libbrlapi0_6 libdcadec0 libfreerdp2 libicu60_2 libicu60_2-ledata
  libopencore-amrnb0 libopencore-amrwb0 librtmp1 libvo-aacenc0 libwinpr2
  virt-what xboard

Even if so, shouldn't the package to downgrade be fetched from the 15.2 repository? I guess it's a newer build at least...
Comment 1 Ulrich Windl 2020-09-01 05:59:43 UTC
If I cancel the medium, upgrade aborts:
Please insert medium [openSUSE-Leap-15.1-1] #1 and type 'y' to continue or 'n' to cancel the operation. [yes/no] (no): n
Problem occurred during or after installation or removal of packages:
Installation has been aborted as directed.
Please see the above error message for a hint.
Comment 2 Fabian Vogt 2020-09-01 09:33:11 UTC
Sounds like you added the 15.1 DVD as repo some time ago and didn't remove it before running zypper dup. If you didn't do it manually, YaST probably did it during install. IIRC it's supposed to remove it later though.
Comment 3 Ulrich Windl 2020-10-02 21:10:07 UTC
(In reply to Fabian Vogt from comment #2)
> Sounds like you added the 15.1 DVD as repo some time ago and didn't remove
> it before running zypper dup. If you didn't do it manually, YaST probably
> did it during install. IIRC it's supposed to remove it later though.

In the past I had upgraded via local DVD medium, so the medium is present in the repositories, and no, I did not deactivate the DVD repository.
Comment 4 Ladislav Slezák 2020-10-05 08:16:49 UTC
The https://en.opensuse.org/SDB:System_upgrade#Command_line_2 documentation says to update all repositories to point to 15.2 before running the upgrade.

That applies to HTTP repositories, the old DVD repositories need to be removed or disabled.