当前位置:论坛首页 > Linux面板 > 讨论

【已解答】宝塔面板安装失败

发表在 Linux面板2026-5-19 12:38 [复制链接] 1 315

是什么原因,该怎么解决
17f0e8e2-1cf6-41d8-b2ef-a08b61a72fca.png
使用道具 举报 只看该作者 回复
发表于 2026-5-19 16:27:00 | 显示全部楼层
您好,看安装过程,是因为您的服务器使用的CentOS Stream 9 的安装源无法安装 wget命令,导致后续下载安装包失败,无法进行解压。如果不是特殊情况必须要使用CentOS Stream 9 的系统,请更换Debian12 /Ubuntu 24这类官方长期支持的系统,而且安装源国内也比较好找。
如果必须要使用CentOS 9 Stream  请参考以下内容进行更换安装源
1、备份当前的操作系统的安装源:
  1. mv  /etc/yum.repos.d/CentOS-Stream.repo /etc/yum.repos.d/CentOS-Stream.repo_backup
复制代码

2、更换阿里云的CentOS Stream 9的安装源
  1. cat > /etc/yum.repos.d/CentOS-Stream.repo <<'EOF'
  2. # CentOS-Stream.repo
  3. #
  4. # The mirror system uses the connecting IP address of the client and the update status of each mirror to pick mirrors that are updated to date and close to the client. You should use this for CentOS updates unless you are manually picking other mirrors.
  5. #
  6. #

  7. [baseos]
  8. name=CentOS Stream $releasever - BaseOS
  9. baseurl=http://mirrors.aliyun.com/centos/$releasever-stream/BaseOS/$basearch/os/
  10. gpgcheck=1
  11. gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-centosofficial

  12. [appstream]
  13. name=CentOS Stream $releasever - AppStream
  14. baseurl=http://mirrors.aliyun.com/centos/$releasever-stream/AppStream/$basearch/os/
  15. gpgcheck=1
  16. gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-centosofficial

  17. [extras]
  18. name=CentOS Stream $releasever - Extras
  19. baseurl=http://mirrors.aliyun.com/centos/$releasever-stream/extras/$basearch/os/
  20. gpgcheck=1
  21. gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-centosofficial

  22. [powertools]
  23. name=CentOS Stream $releasever - PowerTools
  24. baseurl=http://mirrors.aliyun.com/centos/$releasever-stream/PowerTools/$basearch/os/
  25. gpgcheck=1
  26. enabled=0
  27. gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-centosofficial
  28. EOF
复制代码

3、清理旧的安装源并更新当前最新的安装源
  1. yum clean && yum makecache
复制代码


4、如果替换了还是不行,建议更换Debian12或者Ubuntu24
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表