刃减胸 发表于 2025-6-11 15:22:07

宝塔面板ModuleNotFoundError: No module named '_sqlite3'的问题

如果在用Armbian安装宝塔面板的时候遇到ModuleNotFoundError: No module named '_sqlite3'报错,并且无法进入web面板界面,可以尝试以下操作。


报错界面展示:

https://img2024.cnblogs.com/blog/3582327/202503/3582327-20250331153917499-775233333.png

步骤1:更换或添加Ubuntu软件源地址到/etc/apt/source.list.d文件夹的文件中

例如:将下面的地址添加到/etc/apt/source.list.d/ubuntu-ports.list中。

请注意自己的设备上ARM64还是x64架构,以添加对应的软件源地址。

这里以ARM64架构、阿里云镜像站地址为例。


点击查看镜像站地址 deb https://mirrors.aliyun.com/ubuntu-ports/ noble main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu-ports/ noble main restricted universe multiverse deb https://mirrors.aliyun.com/ubuntu-ports/ noble-security main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu-ports/ noble-security main restricted universe multiverse deb https://mirrors.aliyun.com/ubuntu-ports/ noble-updates main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu-ports/ noble-updates main restricted universe multiverse # deb https://mirrors.aliyun.com/ubuntu-ports/ noble-proposed main restricted universe multiverse # deb-src https://mirrors.aliyun.com/ubuntu-ports/ noble-proposed main restricted universe multiverse deb https://mirrors.aliyun.com/ubuntu-ports/ noble-backports main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu-ports/ noble-backports main restricted universe multiverse
步骤2:更新apt缓存并下载软件libssl-dev

sudo apt update
sudo apt install libssl-dev -y

如果不先安装这个软件就去安装宝塔面板,可能会遇到这个报错:



步骤3:软件安装完毕后,重新执行宝塔面板安装命令

sudo curl -sSO https://download.bt.cn/install/install_panel.sh;sudo bash install_panel.sh

安装结束后,这个时候不出意外的话,应该就能正常运行了:



如果你的系统还是无法成功安装宝塔面板,请另寻其他方法。


来源:程序园用户自行投稿发布,如果侵权,请联系站长删除
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!
页: [1]
查看完整版本: 宝塔面板ModuleNotFoundError: No module named '_sqlite3'的问题