Zypper appears to install packages but doesn't

Zypper appears to install packages but packages are not installed. Can repeat installing over and over without ever working.

Example: “zypper in php” will appear to install php8 packages as expected but they do not actually get installed. Doing “zypper in php” again will download the same packages and appear to install them again.

XXXXXXXXXX:~> sudo zypper in php
[sudo] password for root: 
Refreshing service 'NVIDIA'.
Refreshing service 'openSUSE'.
Loading repository data...
Reading installed packages...
'php' not found in package names. Trying capabilities.
Resolving package dependencies...

The following 8 recommended packages were automatically selected:
  php8-ctype php8-dom php8-iconv php8-openssl php8-sqlite php8-tokenizer php8-xmlreader php8-xmlwriter

The following 4 packages are suggested, but will not be installed:
  php8-gd php8-gettext php8-mbstring php8-mysql

The following 13 NEW packages are going to be installed:
  libargon2-1 libcapstone5 php8 php8-cli php8-ctype php8-dom php8-iconv php8-openssl php8-pdo php8-sqlite
  php8-tokenizer php8-xmlreader php8-xmlwriter

13 new packages to install.

Package download size:     6.4 MiB

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

Backend:  classic_rpmtrans
Continue? [y/n/v/...? shows all options] (y): y
Preloading: php8-dom-8.5.7-1.1.x86_64.rpm [done]
Preloading: php8-ctype-8.5.7-1.1.x86_64.rpm [done]
Preloading: libcapstone5-5.0.6-1.3.x86_64.rpm [done]
Preloading: php8-8.5.7-1.1.x86_64.rpm [done]
Preloading: php8-iconv-8.5.7-1.1.x86_64.rpm [done]
Preloading: php8-cli-8.5.7-1.1.x86_64.rpm [done]
Preloading: php8-pdo-8.5.7-1.1.x86_64.rpm [done]
Preloading: php8-openssl-8.5.7-1.1.x86_64.rpm [done]
Preloading: php8-tokenizer-8.5.7-1.1.x86_64.rpm [done]
Preloading: php8-sqlite-8.5.7-1.1.x86_64.rpm [done]
Preloading: php8-xmlwriter-8.5.7-1.1.x86_64.rpm [done]
Preloading: php8-xmlreader-8.5.7-1.1.x86_64.rpm [done]
Preload finished. [success (4.6 MiB/s) ] ...............................................................[done]
Retrieving: libargon2-1-20190702-4.5.x86_64 (Main Repository (OSS))                      (1/13),  20.5 KiB    
Retrieving: libcapstone5-5.0.6-1.3.x86_64 (Main Repository (OSS))                        (2/13), 900.4 KiB    
Retrieving: php8-cli-8.5.7-1.1.x86_64 (Main Repository (OSS))                            (3/13),   3.7 MiB    
Retrieving: php8-8.5.7-1.1.x86_64 (Main Repository (OSS))                                (4/13), 199.9 KiB    
Retrieving: php8-dom-8.5.7-1.1.x86_64 (Main Repository (OSS))                            (5/13), 297.4 KiB    
Retrieving: php8-ctype-8.5.7-1.1.x86_64 (Main Repository (OSS))                          (6/13), 146.6 KiB    
Retrieving: php8-iconv-8.5.7-1.1.x86_64 (Main Repository (OSS))                          (7/13), 161.1 KiB    
Retrieving: php8-openssl-8.5.7-1.1.x86_64 (Main Repository (OSS))                        (8/13), 225.9 KiB    
Retrieving: php8-pdo-8.5.7-1.1.x86_64 (Main Repository (OSS))                            (9/13), 193.9 KiB    
Retrieving: php8-sqlite-8.5.7-1.1.x86_64 (Main Repository (OSS))                        (10/13), 184.2 KiB    
Retrieving: php8-tokenizer-8.5.7-1.1.x86_64 (Main Repository (OSS))                     (11/13), 154.3 KiB    
Retrieving: php8-xmlreader-8.5.7-1.1.x86_64 (Main Repository (OSS))                     (12/13), 158.7 KiB    
Retrieving: php8-xmlwriter-8.5.7-1.1.x86_64 (Main Repository (OSS))                     (13/13), 156.6 KiB    

Checking for file conflicts: ...........................................................................[done]

Warning: 295 packages had to be excluded from file conflicts check because they are not yet downloaded.

    Note: Checking for file conflicts requires not installed packages to be downloaded in advance in
    order to access their file lists. See option '--download-in-advance / --dry-run --download-only'
    in the zypper manual page for details.

( 1/13) Installing: libargon2-1-20190702-4.5.x86_64 ....................................................[done]
( 2/13) Installing: libcapstone5-5.0.6-1.3.x86_64 ......................................................[done]
( 3/13) Installing: php8-cli-8.5.7-1.1.x86_64 ..........................................................[done]
( 4/13) Installing: php8-8.5.7-1.1.x86_64 ..............................................................[done]
( 5/13) Installing: php8-dom-8.5.7-1.1.x86_64 ..........................................................[done]
( 6/13) Installing: php8-ctype-8.5.7-1.1.x86_64 ........................................................[done]
( 7/13) Installing: php8-iconv-8.5.7-1.1.x86_64 ........................................................[done]
( 8/13) Installing: php8-openssl-8.5.7-1.1.x86_64 ......................................................[done]
( 9/13) Installing: php8-pdo-8.5.7-1.1.x86_64 ..........................................................[done]
(10/13) Installing: php8-sqlite-8.5.7-1.1.x86_64 .......................................................[done]
(11/13) Installing: php8-tokenizer-8.5.7-1.1.x86_64 ....................................................[done]
(12/13) Installing: php8-xmlreader-8.5.7-1.1.x86_64 ....................................................[done]
(13/13) Installing: php8-xmlwriter-8.5.7-1.1.x86_64 ....................................................[done]
Running post-transaction scripts .......................................................................[done]

A clue is this warning that I can’t solve:

Warning: 295 packages had to be excluded from file conflicts check because they are not yet downloaded.

Is your system up to date?
sudo zypper dup

Yes.

~> sudo zypper dup
Refreshing service 'NVIDIA'.
Refreshing service 'openSUSE'.
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...
Nothing to do.

Looks like a corrupted rpmdb. Run sudo rpm --rebuilddb.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.