如果在用Armbian安装宝塔面板的时候遇到ModuleNotFoundError: No module named '_sqlite3'
报错,并且无法进入web面板界面,可以尝试以下操作。
报错界面展示:
步骤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 multiversedeb 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 multiversedeb 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 multiversedeb 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
安装结束后,这个时候不出意外的话,应该就能正常运行了: