香港云服务器ubuntu18.04安装宝塔失败

[复制链接] |主动推送
查看54 | 回复0 | 2024-9-11 18:32:47 | 显示全部楼层 |阅读模式
故障描述:宝塔安装不上
164341ue9hp4vz22249env.png
故障分析: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

164341op8bj2usk97o7o79.png
5、升级
sudo apt upgrade

164342rafxpa959kaz1ar9.png
yum换好以后,测试宝塔正常安装。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则