Ubuntu14.04安装宝塔面板

Posted by Kaka Blog on March 24, 2020

环境准备

  • Ubuntu 14.04
  • 配置apt软件源,不然下载很慢

安装步骤

1、安装命令

wget -O install.sh http://download.bt.cn/install/install-ubuntu.sh && sudo bash install.sh

2、正常启动,但是提示”抱歉,程序异常-您请求的页面因发生异常而中断!”

3、升级命令:

wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh

4、提示“/etc/init.d/bt: Permission denied”

5、重新拷贝文件,执行命令:

cp /www/server/panel/init.sh /etc/init.d/bt && chmod +x /etc/init.d/bt

6、重启面板

/etc/init.d/bt restart

7、查看访问路径

/etc/init.d/bt default

存在问题

安装php7.2失败,问了宝塔的工作人员,说是Ubuntu 14.04不兼容,建议更换系统

使用Ubuntu 16.04安装

wget -O install.sh http://download.bt.cn/install/install_panel.sh && bash install.sh

遇到问题:Unable to correct problems, you have held broken packages

处理:替换/etc/apt/sources.list的源内容

deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
##测试版源
deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
# 源码
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
##测试版源
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
# Canonical 合作伙伴和附加
deb http://archive.canonical.com/ubuntu/ xenial partner
deb http://extras.ubuntu.com/ubuntu/ xenial main

然后:

sudo  apt-get update

参考资料