故障描述:宝塔安装不上
故障分析:yum的问题导致安装失败,更换阿里云yum即可。
处理过程方法:
1.第一步:备份 sources.list
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
2.第二步:编辑 sources.list
sudo vim /etc/apt/sources.list
3.第三步:删除原文件内容,替换下面的阿里源!(i编辑把原来的文本全部删完,然后把下面的全部复制上去,然后:wq)
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
4、更新
sudo apt update
5、升级
sudo apt upgrade
yum换好以后,测试宝塔正常安装。
Copyright © 2013-2021 8a.hk All Rights Reserved. 八艾云 版权所有 中山市八艾云计算有限公司 粤ICP备14095776号