Error upgrading phpmyadmin

After upgrading MariaDB to version 10.6 I proceeded to upgrade Debian 10 with “apt update && apt upgrade && apt dis-upgrade” (not yet apt full-upgrade) and in the last two I get the following error which seems to be related to the database:

root@vps:~# apt dist-upgrade 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  bind9utils bsdmainutils libapache2-mod-php7.3 libapache2-mod-php7.4 libbind9-161 libboost-iostreams1.67.0 libboost-system1.67.0 libcwidget3v5 libdns-export1104 libdns1104 libdns1110
  libevent-2.1-6 libgeoip1 libicu63 libicu65 libipset11 libirs161 libisc-export1100 libisc1100 libisc1105 libisccc161 libisccfg163 libjson-c3 liblwres161 libmpdec2 libperl5.28 libprocps7
  libpython2-stdlib libpython3.7-minimal libpython3.7-stdlib libx265-165 perl-modules-5.28 php-php-gettext php7.3 php7.3-cgi php7.3-curl php7.4 php7.4-cgi php7.4-curl python2 python2-minimal
  python3-asn1crypto python3.7 python3.7-minimal python3.7-venv
Use 'apt autoremove' to remove them.
The following packages will be upgraded:
  phpmyadmin
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
215 not fully installed or removed.
Need to get 0 B/4,106 kB of archives.
After this operation, 4,000 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Preconfiguring packages ...
Determining localhost credentials from /etc/mysql/debian.cnf: failed (no client section).
(Reading database ... 70297 files and directories currently installed.)
Preparing to unpack .../phpmyadmin_4%3a5.0.4+dfsg2-2_all.deb ...
Determining localhost credentials from /etc/mysql/debian.cnf: failed (no client section).
dpkg-maintscript-helper: error: file '/usr/share/phpmyadmin/js/vendor/codemirror/addon/hint' not owned by package 'phpmyadmin:all'
dpkg-maintscript-helper: error: file '/usr/share/phpmyadmin/js/vendor/codemirror/addon/hint/show-hint.js' not owned by package 'phpmyadmin:all'
dpkg-maintscript-helper: error: file '/usr/share/phpmyadmin/js/vendor/codemirror/addon/hint/sql-hint.js' not owned by package 'phpmyadmin:all'
dpkg-maintscript-helper: error: file '/usr/share/phpmyadmin/js/vendor/codemirror/addon/hint/show-hint.css' not owned by package 'phpmyadmin:all'
dpkg-maintscript-helper: error: directory '/usr/share/phpmyadmin/js/vendor/codemirror/addon/hint' contains files not owned by package phpmyadmin:all, cannot switch to symlink
dpkg: error processing archive /var/cache/apt/archives/phpmyadmin_4%3a5.0.4+dfsg2-2_all.deb (--unpack):
 new phpmyadmin package pre-installation script subprocess returned error exit status 1
Determining localhost credentials from /etc/mysql/debian.cnf: failed (no client section).
dbconfig-common: flushing administrative password
Errors were encountered while processing:
 /var/cache/apt/archives/phpmyadmin_4%3a5.0.4+dfsg2-2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@vps:~#

I would suggest use the manuall upgrade script:

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