I am running openSUSE 13.2 in VMware Workstation Player 12. I am trying to upgrade to openSUSE Leap 42.1. I should start off by saying how much of a pain in the ass it is to not have a graphical way to perform a system upgrade on openSUSE (like on Ubuntu) or at least a single terminal command (also like on Ubuntu with do-release-upgrade).
I followed the instructions for upgrading from 13.2 to Leap 42.1 listed on this page. I chose not to remove my third-party repositories. Here is the state of the screen:
linux-a2s1:~ # sed -i 's/openSUSE_13\.2/openSUSE_Leap_42\.1/g' /etc/zypp/repos.d/*
linux-a2s1:~ # sed -i 's/13\.2/leap\/42\.1/g' /etc/zypp/repos.d/*
linux-a2s1:~ # zypper rr repo-update repo-update-non-oss && zypper ar -f http://download.opensuse.org/update/leap/42.1/oss/ openSUSE-Leap-42.1-Update && zypper ar -f http://download.opensuse.org/update/leap/42.1/non-oss/ openSUSE-Leap-42.1-Update-Non-Oss
Removing repository 'openSUSE-leap/42.1-Update' ..........................................................................................................................................[done]
Repository 'openSUSE-leap/42.1-Update' has been removed.
Removing repository 'openSUSE-leap/42.1-Update-Non-Oss' ..................................................................................................................................[done]
Repository 'openSUSE-leap/42.1-Update-Non-Oss' has been removed.
Adding repository 'openSUSE-Leap-42.1-Update' ............................................................................................................................................[done]
Repository 'openSUSE-Leap-42.1-Update' successfully added
Enabled : Yes
Autorefresh : Yes
GPG Check : Yes
URI : http://download.opensuse.org/update/leap/42.1/oss/
Adding repository 'openSUSE-Leap-42.1-Update-Non-Oss' ....................................................................................................................................[done]
Repository 'openSUSE-Leap-42.1-Update-Non-Oss' successfully added
Enabled : Yes
Autorefresh : Yes
GPG Check : Yes
URI : http://download.opensuse.org/update/leap/42.1/non-oss/
linux-a2s1:~ # zypper refresh
Retrieving repository 'UEFI Secure Boot (openSUSE_Leap_42.1)' metadata ...................................................................................................................[done]
Building repository 'UEFI Secure Boot (openSUSE_Leap_42.1)' cache ........................................................................................................................[done]
Retrieving repository 'openSUSE-Leap-42.1-Update' metadata ...............................................................................................................................[done]
Building repository 'openSUSE-Leap-42.1-Update' cache ....................................................................................................................................[done]
Retrieving repository 'openSUSE-Leap-42.1-Update-Non-Oss' metadata .......................................................................................................................[done]
Building repository 'openSUSE-Leap-42.1-Update-Non-Oss' cache ............................................................................................................................[done]
Retrieving repository 'openSUSE-leap/42.1-0' metadata ---------------------------------------------------------------------------------------------------------------------------------------/]
Failed to mount cd:///?devices=/dev/disk/by-id/ata-VMware_Virtual_SATA_CDRW_Drive_01000000000000000001 on /var/adm/mount/AP_0x0om4al: Mounting media failed (mount: no medium found on /dev/sr0)
Please insert medium ] #1 and type 'y' to continue or 'n' to cancel the operation. [yes/no] (no):
Installed repositories on operating systems should have no dependency on their installation medium! At this point, I hit Ctrl+C to exit interrupt the process.
The source of this problem would seem to be the file /etc/zypp/repos.d/penSUSE-13.2-0.repo. The contents of it after running the above commands are:
[openSUSE-leap/42.1-0]
name=openSUSE-leap/42.1-0
enabled=1
autorefresh=0
baseurl=cd:///?devices=/dev/disk/by-id/ata-VMware_Virtual_SATA_CDRW_Drive_01000000000000000001
path=/
type=yast2
keeppackages=0
Why is the base URL referring to the CD drive? Do I have to reattach the openSUSE 13.2 installation ISO to the VM? (If I do, then this is a pretty dumb upgrade procedure.)
Is that file necessary? Is that line right? What do I do to continue my system upgrade?