Do Note

儒道佛魔修心地

树莓派安装宝塔面板


1.修改源文件更换为中科大站点
sudo nano /etc/apt/sources.list
修改为以下内容
deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi
deb-src http://mirrors.ustc.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi
Ctrl+O -> Enter -> Ctrl+X

2.更改系统源文件
sudo nano /etc/apt/sources.list.d/raspi.list
修改为以下内容
deb http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ buster main
deb-src http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ buster main
Ctrl+O -> Enter -> Ctrl+X

3.更新
sudo apt-get update
sudo apt-get upgrade

4.开启Root权限并安装宝塔
sudo -s
wget -O install.sh http://download.bt.cn/install/install-ubuntu.sh && bash install.sh

备用1.备份原文件
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo cp /etc/apt/sources.list.d/raspi.list /etc/apt/sources.list.d/raspi.list.bak

备用2.修改宝塔登录密码
cat /www/server/panel/default.pl

备用3.卸载宝塔
rm -f /etc/init.d/bt && rm -rf /www/server/panel


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.