检查环境...
开始下载升级环境脚本...
开始执行升级环境脚本...
=============================================================
[INFO] 宝塔面板Python 3.13环境升级脚本开始执行...
[INFO] 编译模式：优先使用预编译包
[INFO] 环境替换模式：直接替换方式（默认）
=============================================================
[INFO] 步骤1: 系统环境检查
[INFO] Root权限检查通过
[INFO] 系统架构检查通过：64位
[INFO] 宝塔面板检查通过
[INFO] 下载工具检查通过
[INFO] 步骤2: 获取下载节点
[INFO] Selected download node...
[INFO] Download node: https://cf1-node.aapanel.com
[INFO] 步骤3: 环境准备
[INFO] 安装系统依赖包...

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Hit:1 https://mirrors.tencent.com/debian bookworm InRelease
Hit:2 https://mirrors.tencent.com/debian bookworm-updates InRelease
Hit:3 https://mirrors.tencent.com/debian bookworm-backports InRelease
Reading package lists...
Building dependency tree...
Reading state information...
All packages are up to date.
Reading package lists...
Building dependency tree...
Reading state information...
liblzma-dev is already the newest version (5.4.1-1).
libncurses5-dev is already the newest version (6.4-4).
The following package was automatically installed and is no longer required:
  linux-image-6.1.0-10-amd64
Use 'apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up mariadb-common (1:10.11.14-0+deb12u2) ...
update-alternatives: error: alternative path /etc/mysql/mariadb.cnf doesn't exist
dpkg: error processing package mariadb-common (--configure):
 installed mariadb-common package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of libmariadb3:amd64:
 libmariadb3:amd64 depends on mariadb-common; however:
  Package mariadb-common is not configured yet.

dpkg: error processing package libmariadb3:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of mariadb-client-core:
 mariadb-client-core depends on libmariadb3 (>= 10.5.4); however:
  Package libmariadb3:amd64 is not configured yet.
 mariadb-client-core depends on mariadb-common (>= 1:10.11.14-0+deb12u2); however:
  Package mariadb-common is not configured yet.

dpkg: error processing package mariadb-client-core (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of mariadb-client:
 mariadb-client depends on mariadb-client-core (>= 1:10.11.14-0+deb12u2); however:
  Package mariadb-client-core is not configured yet.

dpkg: error processing package mariadb-client (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 mariadb-common
 libmariadb3:amd64
 mariadb-client-core
 mariadb-client
E: Sub-process /usr/bin/dpkg returned an error code (1)

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
build-essential is already the newest version (12.9).
libssl-dev is already the newest version (3.0.17-1~deb12u2).
zlib1g-dev is already the newest version (1:1.2.13.dfsg-1).
libreadline-dev is already the newest version (8.2-1.3).
libsqlite3-dev is already the newest version (3.40.1-2+deb12u2).
libffi-dev is already the newest version (3.4.4-1).
libbz2-dev is already the newest version (1.0.8-5+b1).
wget is already the newest version (1.21.3-1+deb12u1).
curl is already the newest version (7.88.1-10+deb12u14).
unzip is already the newest version (6.0-28).
The following package was automatically installed and is no longer required:
  linux-image-6.1.0-10-amd64
Use 'apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up mariadb-common (1:10.11.14-0+deb12u2) ...
update-alternatives: error: alternative path /etc/mysql/mariadb.cnf doesn't exist
dpkg: error processing package mariadb-common (--configure):
 installed mariadb-common package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of libmariadb3:amd64:
 libmariadb3:amd64 depends on mariadb-common; however:
  Package mariadb-common is not configured yet.

dpkg: error processing package libmariadb3:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of mariadb-client-core:
 mariadb-client-core depends on libmariadb3 (>= 10.5.4); however:
  Package libmariadb3:amd64 is not configured yet.
 mariadb-client-core depends on mariadb-common (>= 1:10.11.14-0+deb12u2); however:
  Package mariadb-common is not configured yet.

dpkg: error processing package mariadb-client-core (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of mariadb-client:
 mariadb-client depends on mariadb-client-core (>= 1:10.11.14-0+deb12u2); however:
  Package mariadb-client-core is not configured yet.

dpkg: error processing package mariadb-client (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 mariadb-common
 libmariadb3:amd64
 mariadb-client-core
 mariadb-client
E: Sub-process /usr/bin/dpkg returned an error code (1)
=================================================
[1;31;40m系统依赖包安装失败[0m
Debian GNU/Linux 12 
 \l
Bit:64 Mem:7939M Core:8
Linux ser926288815277 6.1.0-35-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.137-1 (2025-05-07) x86_64 GNU/Linux
请截图以上报错信息发帖至论坛www.bt.cn/bbs求助
环境准备失败！