赞
踩
找到源文件地址
1.编辑软件源:
sudo gedit /etc/apt/sources.list
2.添加(中科大)源地址
deb http://mirrors.ustc.edu.cn/debian buster main contrib non-free
deb http://mirrors.ustc.edu.cn/debian buster-updates main contrib non-free
deb http://mirrors.ustc.edu.cn/debian buster-backports main contrib non-free
deb http://mirrors.ustc.edu.cn/debian-security/ buster/updates main contrib non-free
#deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic main multiverse restricted universe
#deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-backports main multiverse restricted universe
#deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-proposed main multiverse restricted universe
#deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-security main multiverse restricted universe
#deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-updates main multiverse restricted universe
#deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic main multiverse restricted universe
#deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-backports main multiverse restricted universe
#deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-proposed main multiverse restricted universe
#deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-security main multiverse restricted universe
#deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-updates main multiverse
阿里云源
deb http://mirrors.aliyun.com/ubuntu-ports/ xenial main
deb-src http://mirrors.aliyun.com/ubuntu-ports/ xenial main
deb http://mirrors.aliyun.com/ubuntu-ports/ xenial-updates main
deb-src http://mirrors.aliyun.com/ubuntu-ports/ xenial-updates main
deb http://mirrors.aliyun.com/ubuntu-ports/ xenial universe
deb-src http://mirrors.aliyun.com/ubuntu-ports/ xenial universe
deb http://mirrors.aliyun.com/ubuntu-ports/ xenial-updates universe
deb-src http://mirrors.aliyun.com/ubuntu-ports/ xenial-updates universe
deb http://mirrors.aliyun.com/ubuntu-ports/ xenial-security main
deb-src http://mirrors.aliyun.com/ubuntu-ports/ xenial-security main
deb http://mirrors.aliyun.com/ubuntu-ports/ xenial-security universe
deb-src http://mirrors.aliyun.com/ubuntu-ports/ xenial-security universe
清华源:
deb http://mirrors.tuna.tsinghua.edu.cn/armbian/ bionic main bionic-utils bionic-desktop
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main non-free contrib
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main non-free contrib
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main non-free contrib
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main non-free contrib
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main non-free contrib
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main non-free contrib
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security/ stretch/updates main non-free contrib
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security/ stretch/updates main non-free contrib
deb http://packages.openmediavault.org/public usul main
注:OMV源需要源公钥验证签名,否则会报错,可以先把OMV的源注释掉。后面的博客里面会说明如何设置
3.更新软件列表
sudo apt-get update &&sudo apt-get upgrade
4.更新软件
sudo apt-get upgrade
安装宝塔面板
开始安装宝塔,由于是32位系统,官方版本不支持,安装下列魔改版
#sudo apt-get install python-setuptools
------------------
错误信息: /usr/bin/python3: No module named pip
如果提示文件夹错误则需要使用手动安装方法
sudo apt-get install python-pip
---------------
pip install wheel 安装轮子
pip install --upgrade setuptools 更新tools
---------------------
python -m pip install --upgrade --force pip
pip install setuptools==33.1.1
pip install --upgrade Pillow
安装 python-setuptools 以后再次安装宝塔即可解决
wget -O install.sh http://api.yunwk.top/bt/install-ubuntu_6.0.sh && sudo bash install.sh
官方安装地址:
wget -O install.sh http://download.bt.cn/install/install-ubuntu.sh && bash install.sh
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。