香港云服务器ubuntu18.04安装宝塔失败
故障描述:宝塔安装不上故障分析: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换好以后,测试宝塔正常安装。
页:
[1]