树莓派4B安装宝塔面板

首先参考此帖为树莓派安装好Ubuntu系统:https://www.zuantouxc.cn/archives/584

然后ssh连接到树莓派,输入密码正确后执行如下命令

1.获取管理员权限

sudo su

2.更改镜像源(如果不改安装成功得等明天了)

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak 
sudo vim /etc/apt/sources.list

替换默认的

archive.ubuntu.com

mirrors.aliyun.com

效果如下

## Note, this file is written by cloud-init on first boot of an instance
## modifications made here will not survive a re-bundle.
## if you wish to make changes you can:
## a.) add 'apt_preserve_sources_list: true' to /etc/cloud/cloud.cfg
##     or do the same in user-data
## b.) add sources in /etc/apt/sources.list.d
## c.) make changes to template file /etc/cloud/templates/sources.list.tmpl

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://mirrors.aliyun.com/ubuntu-ports bionic main restricted
# deb-src http://mirrors.aliyun.com/ubuntu-ports bionic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://mirrors.aliyun.com/ubuntu-ports bionic-updates main restricted
# deb-src http://mirrors.aliyun.com/ubuntu-ports bionic-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://mirrors.aliyun.com/ubuntu-ports bionic universe
# deb-src http://mirrors.aliyun.com/ubuntu-ports bionic universe
deb http://mirrors.aliyun.com/ubuntu-ports bionic-updates universe
# deb-src http://mirrors.aliyun.com/ubuntu-ports bionic-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://mirrors.aliyun.com/ubuntu-ports bionic multiverse
# deb-src http://mirrors.aliyun.com/ubuntu-ports bionic multiverse
deb http://mirrors.aliyun.com/ubuntu-ports bionic-updates multiverse
# deb-src http://mirrors.aliyun.com/ubuntu-ports bionic-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://mirrors.aliyun.com/ubuntu-ports bionic-backports main restricted universe multiverse
# deb-src http://mirrors.aliyun.com/ubuntu-ports bionic-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu bionic partner
# deb-src http://archive.canonical.com/ubuntu bionic partner

deb http://mirrors.aliyun.com/ubuntu-ports bionic-security main restricted
# deb-src http://mirrors.aliyun.com/ubuntu-ports bionic-security main restricted
deb http://mirrors.aliyun.com/ubuntu-ports bionic-security universe
# deb-src http://mirrors.aliyun.com/ubuntu-ports bionic-security universe
deb http://mirrors.aliyun.com/ubuntu-ports bionic-security multiverse
# deb-src http://mirrors.aliyun.com/ubuntu-ports bionic-security multiverse

3.安装面板

curl -sSO http://download.bt.cn/install/install_panel.sh && bash install_panel.sh

即可完成

原创文章,作者:钻头,如若转载,请注明出处:https://www.zuantouxc.cn/archives/573

本博客使用简单好用的服务器运维面板搭建:宝塔面板

本博客使用服务器由阿里云长期提供:阿里云

发表评论

电子邮件地址不会被公开。 必填项已用*标注

评论列表(1条)

  • 钻头
    钻头 2020年6月23日 下午1:29

    一定要使用64位的系统镜像进行安装,否则报错。
    安装时遇到了任何问题,欢迎在评论区交流。