1Panel V2 Beta在阿里云上安装失败

在阿里云服务器上安装1Panel V2 Beta失败。我的服务器配置为2核2G内存。操作系统为Ubuntu Server 24.04。root登陆。
输入官方提供的安装命令后,一开始下载正常。然后到安装目录默认opt这一步时必定安装失败(已反复实验多次)。出错信息为:

[1Panel Log]: ======================= 开始安装 =======================
设置1Panel安装目录 (默认为/opt):
[1Panel Log]: 您选择的安装路径是 /opt
[1Panel Log]: … 在线安装Docker
[1Panel Log]: 选择延迟最低的源 https://mirrors.cernet.edu.cn/docker-ce,延迟(秒) 0.0490635
[1Panel Log]: 尝试下一个备用链接 https://get.docker.com 正在下载Docker安装脚本
curl: (35) Recv failure: Connection reset by peer
[1Panel Log]: 下载安装脚本失败 https://get.docker.com 尝试下一个备用链接
[1Panel Log]: 尝试下一个备用链接 https://testingcf.jsdelivr.net/gh/docker/docker-install@master/install.sh 正在下载Docker安装脚本
[1Panel Log]: 已成功下载Docker安装脚本 https://testingcf.jsdelivr.net/gh/docker/docker-install@master/install.sh 成功

Executing docker install script, commit:

  • sh -c apt-get -qq update >/dev/null
  • sh -c DEBIAN_FRONTEND=noninteractive apt-get -y -qq install ca-certificates curl >/dev/null
    E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).
    [1Panel Log]: Docker安装失败
    您可以尝试使用离线包安装Docker,详细安装步骤请参见以下链接: 离线包安装 - 1Panel 文档

特此反馈。

手动安装docker即可

没用。同样是失败。出错信息为:
[1Panel Log]: ======================= 开始安装 =======================
设置1Panel安装目录 (默认为/opt):
[1Panel Log]: 您选择的安装路径是 /opt
[1Panel Log]: … 在线安装Docker
[1Panel Log]: 选择延迟最低的源 https://mirrors.cernet.edu.cn/docker-ce,延迟(秒) 0.0542175
[1Panel Log]: 尝试下一个备用链接 https://get.docker.com 正在下载Docker安装脚本
[1Panel Log]: 已成功下载Docker安装脚本 https://get.docker.com 成功

Executing docker install script, commit: 53a22f61c0628e58e1d6680b49e82993d304b449

  • sh -c apt-get -qq update >/dev/null
  • sh -c DEBIAN_FRONTEND=noninteractive apt-get -y -qq install ca-certificates curl >/dev/null
    E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).
    [1Panel Log]: Docker安装失败
    您可以尝试使用离线包安装Docker,详细安装步骤请参见以下链接: 离线包安装 - 1Panel 文档

而且我顺带试验了安装1panel目前的正式版。同样是在这一步报错。信息也是一样。按照官方给出的离线包安装方式还是在这一步出错。
总结:在阿里云上安装1panel正式版和V2公测版都会在选定安装目录后这一步失败。并且离线包安装方式同样在这一步失败。

补充:
为了找到问题原因,我又特意在virtualbox虚拟机上尝试了安装1panel。操作系统和硬件配置按照阿里云上的真实服务器配置的。
结果是无论安装目前的稳定版,还是安装V2公测版,都能够顺利通过在线安装,并成功进入面板配置服务器和应用。

你先手动装下 docker,然后再执行一键安装脚本

没用。按照官方提供的手动安装docker方式安装。直接安装失败。
输出信息为:

欢迎使用 Docker Engine 安装与换源脚本

运行环境 Ubuntu 24.04.2 LTS x86_64
系统时间 2025-06-03 15:38 Asia/Shanghai

➜ Docker CE: 阿里云

➜ Docker Registry: 阿里云(北京)

╭─ 软件源是否使用 HTTP 协议?

╰─ ● 是 / ○ 否

◉ 更新软件源…

Hit:1 http://mirrors.cloud.aliyuncs.com/ubuntu noble InRelease
Hit:2 http://mirrors.cloud.aliyuncs.com/ubuntu noble-updates InRelease
Hit:3 http://mirrors.cloud.aliyuncs.com/ubuntu noble-backports InRelease
Hit:4 http://mirrors.cloud.aliyuncs.com/ubuntu noble-security InRelease
Reading package lists… Done

:heavy_check_mark: 更新软件源结束

Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
ca-certificates is already the newest version (20240203).
ca-certificates set to manually installed.
curl is already the newest version (8.5.0-2ubuntu10.6).
You might want to run ‘apt --fix-broken install’ to correct these.
The following packages have unmet dependencies:
libnss-systemd : Depends: systemd (= 255.4-1ubuntu8.6) but 255.4-1ubuntu8.4 is to be installed
libpam-systemd : Depends: systemd (= 255.4-1ubuntu8.6) but 255.4-1ubuntu8.4 is to be installed
systemd : Depends: libsystemd-shared (= 255.4-1ubuntu8.4) but 255.4-1ubuntu8.6 is to be installed
Depends: libsystemd0 (= 255.4-1ubuntu8.4) but 255.4-1ubuntu8.6 is to be installed
systemd-resolved : Depends: systemd (= 255.4-1ubuntu8.6) but 255.4-1ubuntu8.4 is to be installed
systemd-sysv : Depends: systemd (= 255.4-1ubuntu8.6) but 255.4-1ubuntu8.4 is to be installed
udev : Breaks: systemd (< 255.4-1ubuntu8.6) but 255.4-1ubuntu8.4 is to be installed
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).

Hit:1 http://mirrors.cloud.aliyuncs.com/ubuntu noble InRelease
Hit:2 http://mirrors.cloud.aliyuncs.com/ubuntu noble-updates InRelease
Hit:3 http://mirrors.cloud.aliyuncs.com/ubuntu noble-backports InRelease
Hit:4 http://mirrors.cloud.aliyuncs.com/ubuntu noble-security InRelease
Get:5 http://mirrors.aliyun.com/docker-ce/linux/ubuntu noble InRelease [48.8 kB]
Get:6 http://mirrors.aliyun.com/docker-ce/linux/ubuntu noble/stable amd64 Packages [25.8 kB]
Fetched 74.7 kB in 1s (144 kB/s)
Reading package lists… Done

╭─ 是否安装最新版本的 Docker Engine ?

╰─ ● 是 / ○ 否

Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
You might want to run ‘apt --fix-broken install’ to correct these.
The following packages have unmet dependencies:
libnss-systemd : Depends: systemd (= 255.4-1ubuntu8.6) but 255.4-1ubuntu8.4 is to be installed
libpam-systemd : Depends: systemd (= 255.4-1ubuntu8.6) but 255.4-1ubuntu8.4 is to be installed
systemd : Depends: libsystemd-shared (= 255.4-1ubuntu8.4) but 255.4-1ubuntu8.6 is to be installed
Depends: libsystemd0 (= 255.4-1ubuntu8.4) but 255.4-1ubuntu8.6 is to be installed
systemd-resolved : Depends: systemd (= 255.4-1ubuntu8.6) but 255.4-1ubuntu8.4 is to be installed
systemd-sysv : Depends: systemd (= 255.4-1ubuntu8.6) but 255.4-1ubuntu8.4 is to be installed
udev : Breaks: systemd (< 255.4-1ubuntu8.6) but 255.4-1ubuntu8.4 is to be installed
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).

✘ 安装 Docker Engine 失败!

官方现在应该是已经修好了。现在正在在线安装V2公测版中。

因为docker官方源已经被阻断了,国内大部分也不能使用。所以才会出现不时安装失败的问题。国内机器通过默认源在线安装只能“碰运气” 。目前解决方法只有手动安装或者替换可用的镜像源。
你上文中提到能顺利安装是因为机器在海外不受阻断影响。