关于我们

质量为本、客户为根、勇于拼搏、务实创新

< 返回新闻公共列表

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

发布时间:2023-05-10 10:11:25
1491984010112764.jpg

故障描述:宝塔安装不上

image.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

image.png

5、升级

sudo apt upgrade

image.png

yum换好以后,测试宝塔正常安装。




/template/Home/8a/PC/Static