Package: phpmyadmin
Version: 4:5.2.2-really+dfsg-1+deb13u1
Severity: important

Dear Maintainer,

I attempted to update the phpmyadmin package on Debian 13 (trixie). The package
was previously installed and working, but during `apt full-upgrade` dpkg failed
while running the phpmyadmin maintainer scripts. The pre-removal and
post-installation scripts exited with status 10, leaving phpmyadmin in a
broken "iF" (half-installed, removal failed) state. From that point onward,
dpkg and apt could not complete any operations until the package was manually
repaired.

I inspected the maintainer scripts under `/var/lib/dpkg/info/` and confirmed
that the failure was triggered during dbconfig-common operations inside the
postinst script.

I temporarily neutralized the phpmyadmin maintainer scripts by replacing prerm,
postinst, preinst and postrm with minimal scripts containing only `exit 0`.

After doing that, I successfully removed the broken package using
`dpkg --remove --force-remove-reinstreq phpmyadmin`, which restored dpkg/apt
functionality.

Attempting to reinstall phpmyadmin without workarounds resulted in the same
postinst failure every time.

Neutralizing the maintainer scripts allowed the system to remove the broken
phpmyadmin package and restore normal dpkg behavior. However, installing
phpmyadmin again still triggers the exact same error
(`post-installation script returned error exit status 10`),
meaning that the issue persists even after a clean reinstall.

I expected phpmyadmin to upgrade or install cleanly using dbconfig-common,
without errors in the maintainer scripts and without breaking dpkg.
The phpmyadmin package should complete configuration without requiring manual
intervention.


-- System Information:
Debian Release: 13.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.48+deb13-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages phpmyadmin depends on:
ii  dbconfig-common                   2.0.25
ii  dbconfig-mysql                    2.0.25
ii  debconf [debconf-2.0]             1.5.91
ii  libapache2-mod-php8.4 [php-json]  8.4.11-1
ii  libjs-bootstrap5                  5.3.5+dfsg-4
ii  libjs-codemirror                  5.65.0+~cs5.83.9-3
ii  libjs-jquery                      3.6.1+dfsg+~3.5.14-1
ii  libjs-jquery-mousewheel           1:3.1.13-5
ii  libjs-jquery-tablesorter          1:2.31.3+dfsg1-4
ii  libjs-jquery-timepicker           1.6.3-6
ii  libjs-jquery-ui                   1.13.2+dfsg-1
ii  libjs-sphinxdoc                   8.1.3-5
ii  php-cli                           2:8.4+96
ii  php-common                        2:96
ii  php-composer-ca-bundle            1.5.6-1
ii  php-google-recaptcha              1.3.0-2+deb13u1
ii  php-mariadb-mysql-kbs             1.3.0-2
ii  php-mbstring                      2:8.4+96
ii  php-mysql                         2:8.4+96
ii  php-nikic-fast-route              1.3.0-6
ii  php-phpmyadmin-motranslator       5.4.0-1
ii  php-phpmyadmin-shapefile          3.0.2-2
ii  php-phpmyadmin-sql-parser         5.10.3-2
ii  php-psr-http-factory              1.1.0-1
ii  php-psr-http-message              1.1-2
ii  php-slim-psr7                     1.7.0-3
ii  php-symfony-config                6.4.21+dfsg-2
ii  php-symfony-dependency-injection  6.4.21+dfsg-2
ii  php-symfony-expression-language   6.4.21+dfsg-2
ii  php-twig                          3.20.0-2
ii  php-twig-i18n-extension           5.0.0-1.1
ii  php-webmozart-assert              1.11.0-4
ii  php-xml                           2:8.4+96
ii  php8.4-cli [php-json]             8.4.11-1
ii  php8.4-mbstring [php-mbstring]    8.4.11-1
ii  php8.4-xml [php-xml]              8.4.11-1
ii  sensible-utils                    0.0.25
ii  ucf                               3.0052

Versions of packages phpmyadmin recommends:
ii  apache2 [httpd]                             2.4.65-2
ii  libapache2-mod-php                          2:8.4+96
ii  libapache2-mod-php8.4 [libapache2-mod-php]  8.4.11-1
ii  php-bz2                                     2:8.4+96
ii  php-curl                                    2:8.4+96
ii  php-gd                                      2:8.4+96
ii  php-tcpdf                                   6.9.1+dfsg-1
ii  php-zip                                     2:8.4+96
ii  php8.4-bz2 [php-bz2]                        8.4.11-1
ii  php8.4-curl [php-curl]                      8.4.11-1
ii  php8.4-gd [php-gd]                          8.4.11-1
ii  php8.4-zip [php-zip]                        8.4.11-1

Versions of packages phpmyadmin suggests:
ii  chromium [www-browser]                 142.0.7444.175-1~deb13u1
ii  firefox-esr [www-browser]              140.5.0esr-1~deb13u1
ii  lynx [www-browser]                     2.9.2-1
ii  mariadb-server [virtual-mysql-server]  1:11.8.3-0+deb13u1
pn  php-bacon-qr-code                      <none>
pn  php-code-lts-u2f-php-server            <none>
pn  php-gd2                                <none>
pn  php-pragmarx-google2fa-qrcode          <none>
pn  php-recode                             <none>
ii  php8.4-opcache [php-opcache]           8.4.11-1

-- debconf information:
* phpmyadmin/reconfigure-webserver: apache2, lighttpd

Reply via email to