Upgrade from SLES 15 SP7 to 16 doesn't work

Okay, the file is not needed. It maybe belongs to SLE 15 SP6.

See: https://packagehub.suse.com/package-hub-faq/ , I would try to mv the the to /tmp and try again.

Sorry, no clue what should I try as next.

mv /etc/products.d/sle-module-packagehub-subpackages.prod /tmp

And try again.

Thank you very much! This worked!
But now I can’t log in remotely as root. I changed the below settings in /etc/ssh/sshd_config to these values:

  • PasswordAuthentication yes
  • PermitRootLogin Yes

and ran systemctl restart sshd.service
This at least allowed me to log in directly on the Citrix host and I can log in from another VM using the public key with ssh root@hostname.

This is the output when I try to log in remotely:
[SSH] FAIL: root@****: Permission denied (server offers publickey,password,keyboard-interactive).

What else is missing?

Direct root login in SLE 16 is not allowed by default. You need to install openssh-server-config-rootlogin pkg.

I installed it. See the output below. I don’t see any error in the zypper.log file. Running zypper again stops because the package is already installed. I still can’t remotely log in.

Refreshing service 'SUSE_Linux_Enterprise_Server_16.0_x86_64'.
Refreshing service 'SUSE_Package_Hub_16.0_x86_64'.
Loading repository data...
Reading installed packages...
'pkg' not found in package names. Trying capabilities.
No provider of 'pkg' found.
Resolving package dependencies...

The following NEW package is going to be installed:
  openssh-server-config-rootlogin

1 new package to install.

Package download size:   278.2 KiB

Package install size change:
            |        20 B  required by packages that will be installed
      20 B  |  -      0 B  released by packages that will be removed

Backend:  classic_rpmtrans
Continue? [y/n/v/...? shows all options] (y): y
Preloading: openssh-server-config-rootlogin-10.0p2-160000.4.1.x86_64.rpm [done]
Preload finished. [success (13.8 KiB/s) ] ............................................................................................................................................................................................................................................................................................................................................[done]
Retrieving: openssh-server-config-rootlogin-10.0p2-160000.4.1.x86_64 (SLE-Product-SLES-16.0)                                                                                                                                                                                                                                                                            (1/1), 278.2 KiB

Checking for file conflicts: .........................................................................................................................................................................................................................................................................................................................................................[done]
(1/1) Installing: openssh-server-config-rootlogin-10.0p2-160000.4.1.x86_64 ...........................................................................................................................................................................................................................................................................................................[done]
Running post-transaction scripts .....................................................................................................................................................................................................................................................................................................................................................[done]
Installation has completed with error.

Running it again produces this:

Refreshing service 'SUSE_Linux_Enterprise_Server_16.0_x86_64'.
Refreshing service 'SUSE_Package_Hub_16.0_x86_64'.
Loading repository data...
Reading installed packages...
'openssh-server-config-rootlogin' is already installed.
No update candidate for 'openssh-server-config-rootlogin-10.0p2-160000.4.1.x86_64'. The highest available version is already installed.
'pkg' not found in package names. Trying capabilities.
No provider of 'pkg' found.
Resolving package dependencies...
Nothing to do.

I think you need to give ssh a restart. https://documentation.suse.com/sles-sap/16.0/html/SLE-differences-faq/index.html#sle16-differences-faq-security-root

I know, I restarted the whole VM. No change. Forget it. Now it works. Strange. Thx

FYI:

Another VM had the problem, that /etc/resolv.conf did exist but it was empty. Therefore nothing worked, no zypper and so on. I copied the content from other VM in the same network and then it worked. Strange, or do you have an idea? Also, yast can’t be found.

I have reverted the VM from a previously created snapshot to SLES 15 SP7 and I try it again. The upgrade seems to be broken for the 2nd VM.

The /etc/resolv.conf is now a link not a normal file, and it should be created using:

netconfig update -f

And for YaST , yes it doesn’t exists on SLE 16. You need to use Cockpit.

Take a look at this docs: https://documentation.suse.com/sles-sap/16.0/html/SLE-differences-faq/index.html#sle16-differences-faq-installation-yast