![](https://seccdn.libravatar.org/avatar/77cb4da5f72bc176182dcc33f03a18f3.jpg?s=120&d=mm&r=g)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday, 2021-12-09 at 14:12 +0100, karl García Gestido wrote:
Hola!!
O martes, 7 de decembro de 2021 18:54:49 CET Carlos E. R. escribiu:
On 07/12/2021 16.34, Carlos Ayala wrote:
On Tue, Dec 7, 2021 at 5:09 AM Carlos E. R. <> wrote:
...
Alguna experiencia sobre la actualización de openSUSE 15.2 a 15.3 cambiando los repositorios?
Cuidadin si usas zypper dup, porque a la manera oficial se hace en dos golpes.
Al principio, tienes $releasever y tal. Vale, pero es que la 15.3 tiene nuevos repos que provienen de SLE directamente y que no están incluidos. Al terminar el primer dup, uno de los paquetes los mete, por lo que si haces un segundo zypper ref y dup, te pueden resultar otros mil paquetes que actualizar. Cuando haces los dos, entonces has terminado. Si rebotas entre un dup y el otro, pueden quedarte cosas inestables.
Otra opción es meter tú a mano esos repos nuevos antes de empezar. Yo pienso hacer esto, pero no está documentado. Me gustaría probarlo en una máquina virtual antes.
Hasta donde yo recuerdo, no hace falta tal cosa. Son repos estándares y funcionan como cualquier otro repo.
El sistema se actualiza con
# zypper --releasever=15.3 dup
He hecho la comprobación, y efectivamente el upgrade se hace en dos golpes como dije. Primero instalé una máquina virtual con 15.2, con packman, y tomé un snapshot. Los repos eran: Eleanor152:~ # zypper lr --details # | Alias | Name | Enabled | GPG Check | Refresh | Priority | Type | URI | Service - ---+---------------------------------------+------------------------------------+---------+-----------+---------+----------+--------+--------------------------------------------------------------------------+-------- 1 | ftp.gwdg.de-openSUSE_Leap_$releasever | Packman Repository | Yes | (r ) Yes | Yes | 99 | rpm-md | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.2/ | 2 | openSUSE-Leap-15.2-1 | openSUSE-Leap-15.2-1 | No | ---- | ---- | 99 | rpm-md | cd:/?devices=/dev/disk/by-id/ata-VBOX_CD-ROM_VB2-01700376 | 3 | repo-debug | Debug Repository | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/debug/distribution/leap/15.2/repo/oss/ | 4 | repo-debug-non-oss | Debug Repository (Non-OSS) | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/debug/distribution/leap/15.2/repo/non-oss/ | 5 | repo-debug-update | Update Repository (Debug) | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/debug/update/leap/15.2/oss/ | 6 | repo-debug-update-non-oss | Update Repository (Debug, Non-OSS) | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/debug/update/leap/15.2/non-oss/ | 7 | repo-non-oss | Non-OSS Repository | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/distribution/leap/15.2/repo/non-oss/ | 8 | repo-oss | Main Repository | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/distribution/leap/15.2/repo/oss/ | 9 | repo-source | Source Repository | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/source/distribution/leap/15.2/repo/oss/ | 10 | repo-source-non-oss | Source Repository (Non-OSS) | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/source/distribution/leap/15.2/repo/non-oss/ | 11 | repo-update | Main Update Repository | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/update/leap/15.2/oss | 12 | repo-update-non-oss | Update Repository (Non-Oss) | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/update/leap/15.2/non-oss/ | Eleanor152:~ # Lo actualicé a 15.3 tal y como ponen las instrucciones: # zypper --releasever=15.3 dup refresh # time zypper --releasever=15.3 dup --download-in-advance 1796 packages to upgrade, 228 to downgrade, 155 new, 28 to remove, 1684 to change vendor. Overall download size: 1.60 GiB. Already cached: 0 B. After the operation, 121.5 MiB will be freed. .... Since the last system boot core libraries or services have been updated. Reboot is suggested to ensure that your system benefits from these updates. real 44m22.080s user 6m6.825s sys 1m39.820s Eleanor152:~ # Por en medio hubo errores, tal y como yo me esperaba: 517/2194) Installing: virtualbox-kmp-default-6.1.30_k5.3.18_59.34-lp153.2.15.1.x86_64 ...[error] Installation of virtualbox-kmp-default-6.1.30_k5.3.18_59.34-lp153.2.15.1.x86_64 failed: Error: Subprocess failed. Error: RPM failed: /var/tmp/rpm-tmp.e0Rp5N: line 1: /usr/lib/module-init-tools/kernel-scriptlets/kmp-pre: No such file or directory error: %prein(virtualbox-kmp-default-6.1.30_k5.3.18_59.34-lp153.2.15.1.x86_64) scriptlet failed, exit status 127 error: virtualbox-kmp-default-6.1.30_k5.3.18_59.34-lp153.2.15.1.x86_64: install failed Abort, retry, ignore? [a/r/i] (a): i ... Removal of (99576)kernel-default-5.3.18-lp152.106.1.x86_64(@System) failed: Error: Subprocess failed. Error: RPM failed: /var/tmp/rpm-tmp.fAQzVr: line 1: /usr/lib/module-init-tools/kernel-scriptlets/rpm-preun: No such file or directory error: %preun(kernel-default-5.3.18-lp152.106.1.x86_64) scriptlet failed, exit status 127 error: kernel-default-5.3.18-lp152.106.1.x86_64: erase failed Abort, retry, ignore? [a/r/i] (a): i Observad que la acción por defecto es abortar, lo que hubiera destruido el sistema. Un par de comprobaciones: Eleanor152:~ # cat /etc/os-release NAME="openSUSE Leap" VERSION="15.3" ID="opensuse-leap" ID_LIKE="suse opensuse" VERSION_ID="15.3" PRETTY_NAME="openSUSE Leap 15.3" ANSI_COLOR="0;32" CPE_NAME="cpe:/o:opensuse:leap:15.3" BUG_REPORT_URL="https://bugs.opensuse.org" HOME_URL="https://www.opensuse.org/" Eleanor152:~ # Eleanor152:~ # zypper lr --details # | Alias | Name | Enabled | GPG Check | Refresh | Priority | Type | URI | Service - ---+---------------------------------------+---------------------------------------------------------------------------------------------+---------+-----------+---------+----------+--------+--------------------------------------------------------------------------+-------- 1 | ftp.gwdg.de-openSUSE_Leap_$releasever | Packman Repository | Yes | (r ) Yes | Yes | 99 | rpm-md | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.3/ | 2 | openSUSE-Leap-15.2-1 | openSUSE-Leap-15.2-1 | No | ---- | ---- | 99 | rpm-md | cd:/?devices=/dev/disk/by-id/ata-VBOX_CD-ROM_VB2-01700376 | 3 | repo-backports-debug-update | Update repository with updates for openSUSE Leap debuginfo packages from openSUSE Backports | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/update/leap/15.3/backports_debug/ | 4 | repo-backports-update | Update repository of openSUSE Backports | Yes | ( p) Yes | Yes | 99 | NONE | http://download.opensuse.org/update/leap/15.3/backports/ | 5 | repo-debug | Debug Repository | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/debug/distribution/leap/15.3/repo/oss/ | 6 | repo-debug-non-oss | Debug Repository (Non-OSS) | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/debug/distribution/leap/15.3/repo/non-oss/ | 7 | repo-debug-update | Update Repository (Debug) | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/debug/update/leap/15.3/oss/ | 8 | repo-debug-update-non-oss | Update Repository (Debug, Non-OSS) | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/debug/update/leap/15.3/non-oss/ | 9 | repo-non-oss | Non-OSS Repository | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/distribution/leap/15.3/repo/non-oss/ | 10 | repo-oss | Main Repository | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/distribution/leap/15.3/repo/oss/ | 11 | repo-sle-debug-update | Update repository with debuginfo for updates from SUSE Linux Enterprise 15 | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/debug/update/leap/15.3/sle/ | 12 | repo-sle-update | Update repository with updates from SUSE Linux Enterprise 15 | Yes | ( p) Yes | Yes | 99 | NONE | http://download.opensuse.org/update/leap/15.3/sle/ | 13 | repo-source | Source Repository | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/source/distribution/leap/15.3/repo/oss/ | 14 | repo-source-non-oss | Source Repository (Non-OSS) | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/source/distribution/leap/15.3/repo/non-oss/ | 15 | repo-update | Main Update Repository | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/update/leap/15.3/oss | 16 | repo-update-non-oss | Update Repository (Non-Oss) | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/update/leap/15.3/non-oss/ | Eleanor152:~ # Entonces, y sin reiniciar, hice un segundo dup, porque ahí había dos repositorios nuevos activos, el 4 y el 12. Eleanor152:~ # time zypper dup --download-in-advance Retrieving repository 'Update repository of openSUSE Backports' metadata ...................[done] Building repository 'Update repository of openSUSE Backports' cache ........................[done] Retrieving repository 'Update repository with updates from SUSE Linux Enterprise 15' metadat[done] Building repository 'Update repository with updates from SUSE Linux Enterprise 15' cache ...[done] Retrieving repository 'Main Update Repository' metadata ....................................[done] Building repository 'Main Update Repository' cache .........................................[done] 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... The following 2 items are locked and will not be changed by any action: Available: pk-update-icon plymouth ... The following package requires a system reboot: kernel-default-5.3.18-59.37.2 419 packages to upgrade, 5 new, 1 to remove. Overall download size: 740.4 MiB. Already cached: 0 B. After the operation, additional 151.5 MiB will be used. Note: System reboot required. Continue? [y/n/v/...? shows all options] (y): ... Executing %posttrans 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. Since the last system boot core libraries or services have been updated. Reboot is suggested to ensure that your system benefits from these updates. real 17m35.550s user 2m41.449s sys 0m37.177s Eleanor152:~ # Es decir, hice dos zyppers dups seguidos sin reinicio entre medias: uno de 1796 paquetes y otro de 419. El segundo corrigió los errores del primero, se debe a que el primero añade varios repositorios de SLE que no están al principio. Así que vuelvo a intentar el proceso, con mi modificación de las instrucciones. Es una máquina virtual, es un click retroceder a la foto que hice cuando era 15.2. Y ejecuto: zypper ar -f -n "Update repository of openSUSE Backports" "http://download.opensuse.org/update/leap/15.3/backports/" "repo-backports-update" zypper ar -f -n "Update repository with updates from SUSE Linux Enterprise 15" "http://download.opensuse.org/update/leap/15.3/sle/" "repo-sle-update" zypper --releasever=15.3 refresh zypper --releasever=15.3 dup --download-in-advance # time zypper --releasever=15.3 dup --download-in-advance ... The following 27 packages are going to be REMOVED: exo-branding-openSUSE exo-helpers hardlink kernel-firmware kmod-compat libebml4 libexo-1-0 libmatroska6 libndr0 libre2-6 libupnp6 libxfce4panel-1_0-4 libxfce4ui-1-0 libyui-ncurses-pkg11 libyui-qt-pkg11 patterns-base-apparmor_opt patterns-base-enhanced_base_opt patterns-base-x11_opt python3-pycairo python3-pysmbc systemd-bash-completion typelib-1_0-libxfce4util-1_0 xfce4-panel-plugin-multiload-nandhp xfce4-statusnotifier-plugin xfce4-statusnotifier-plugin-lang xreader-backends yast2-qt-branding-openSUSE The following 3 patterns are going to be REMOVED: apparmor_opt enhanced_base_opt x11_opt The following product is going to be REMOVED: "openSUSE Leap 15.2" The following package requires a system reboot: kernel-default-5.3.18-59.37.2 1870 packages to upgrade, 153 to downgrade, 153 new, 27 to remove, 1687 to change vendor. Overall download size: 1.61 GiB. Already cached: 0 B. After the operation, additional 242.5 MiB will be used. Note: System reboot required. Continue? [y/n/v/...? shows all options] (y): ... Executing %posttrans 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. Since the last system boot core libraries or services have been updated. Reboot is suggested to ensure that your system benefits from these updates. real 52m36.005s user 5m54.954s sys 1m34.944s Eleanor152:~ # Y el proceso sucede sin ningún error. 1870 paquetes en un solo zypper dup (y diez minutos más rápido). Un segundo dup o up no produce nada nuevo. Por supuesto, con ambos sistemas hay que hacer un "rpmconfigcheck" y la subsequente limpieza. - -- Cheers, Carlos E. R. (from openSUSE 15.2 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCYcO+jhwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfVAlcAnR5/if7LBWd4gf0SyQFH iYLc7y3KAKCUjieXsO+bJD2JMoXD+7HzmRLjWQ== =f1ac -----END PGP SIGNATURE-----