尝试将phpmyadmin升级到5.1.3时出错



当运行apt upgrade时,我得到与phpmyadmin相关的升级:

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/sql-hint.js' 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/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: Fehler beim Bearbeiten des Archivs /tmp/apt-dpkg-install-LiE4n0/28-phpmyadmin_4%3a5.0.4+dfsg2-2_all.deb (--unpack):
»neues phpmyadmin-Skript des Paketes pre-installation«-Unterprozess gab den Fehlerwert 1 zurück

看起来像我,一个旧版本的phpmyadmin在某处注册。我怎么才能摆脱这个?

使用PHP 7.4.28运行Debian Bullseye服务器

Ubuntu 20.04.6 LTS和PHP 7.4.33

dpkg-maintscript-helper: error: file '/usr/share/phpmyadmin/themes/bootstrap/jquery/images' not owned by package 'phpmyadmin:all'
dpkg-maintscript-helper: error: file '/usr/share/phpmyadmin/themes/bootstrap/jquery/images/ui-bg_glass_55_fbf9ee_1x400.png' not owned by package 'phpmyadmin:all'
dpkg-maintscript-helper: error: file '/usr/share/phpmyadmin/themes/bootstrap/jquery/images/ui-bg_highlight-soft_75_cccccc_1x100.png' not owned by package 'phpmyadmin:all'
dpkg-maintscript-helper: error: file '/usr/share/phpmyadmin/themes/bootstrap/jquery/images/ui-bg_glass_75_dadada_1x400.png' not owned by package 'phpmyadmin:all'
dpkg-maintscript-helper: error: file '/usr/share/phpmyadmin/themes/bootstrap/jquery/images/ui-bg_glass_75_e6e6e6_1x400.png' not owned by package 'phpmyadmin:all'
dpkg-maintscript-helper: error: file '/usr/share/phpmyadmin/themes/bootstrap/jquery/images/ui-icons_2e83ff_256x240.png' not owned by package 'phpmyadmin:all'
dpkg-maintscript-helper: error: file '/usr/share/phpmyadmin/themes/bootstrap/jquery/images/ui-bg_glass_65_ffffff_1x400.png' not owned by package 'phpmyadmin:all'
dpkg-maintscript-helper: error: file '/usr/share/phpmyadmin/themes/bootstrap/jquery/images/ui-icons_cd0a0a_256x240.png' not owned by package 'phpmyadmin:all'
dpkg-maintscript-helper: error: file '/usr/share/phpmyadmin/themes/bootstrap/jquery/images/ui-icons_222222_256x240.png' not owned by package 'phpmyadmin:all'
dpkg-maintscript-helper: error: file '/usr/share/phpmyadmin/themes/bootstrap/jquery/images/ui-bg_glass_95_fef1ec_1x400.png' not owned by package 'phpmyadmin:all'
dpkg-maintscript-helper: error: file '/usr/share/phpmyadmin/themes/bootstrap/jquery/images/ui-icons_888888_256x240.png' not owned by package 'phpmyadmin:all'
dpkg-maintscript-helper: error: file '/usr/share/phpmyadmin/themes/bootstrap/jquery/images/ui-icons_454545_256x240.png' not owned by package 'phpmyadmin:all'
dpkg-maintscript-helper: error: directory '/usr/share/phpmyadmin/themes/bootstrap/jquery/images' contains files not owned by package phpmyadmin:all, cannot switch to symlink
dpkg: error processing archive /var/cache/apt/archives/phpmyadmin_4%3a5.2.1+dfsg-1+focal2_all.deb (--unpack):
new phpmyadmin package pre-installation script subprocess returned error exit status 1
Determining localhost credentials from /etc/mysql/debian.cnf: succeeded.
dbconfig-common: flushing administrative password
Errors were encountered while processing:
/var/cache/apt/archives/phpmyadmin_4%3a5.2.1+dfsg-1+focal2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

通过以下操作使升级工作:

apt purge --remove phpmyadmin

apt install phpmyadmin -y

通过指定DB用户的密码来指定是否要连接到现有的SQL实例,或者是否要创建一个新实例。

相关内容

  • 没有找到相关文章

最新更新