Skip to content

[Bug] Installation script cannot be installed #8891

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sunnyhmz7010 opened this issue Jun 2, 2025 · 3 comments
Closed

[Bug] Installation script cannot be installed #8891

sunnyhmz7010 opened this issue Jun 2, 2025 · 3 comments
Assignees

Comments

@sunnyhmz7010
Copy link

sunnyhmz7010 commented Jun 2, 2025

Contact Information

No response

1Panel Version

v2.0.0-beta.4

Problem Description

Image

发行版本 debian
内核版本 5.10.0-32-cloud-amd64

无法安装Fail2ban、Firewall

Steps to Reproduce

你的系统出现APT仓库配置错误,主要原因是 security.debian.org 仓库路径不正确。以下是修复步骤:

1. 修正security源配置(注意路径添加了"-security"目录)

sudo sed -i 's|http://security.debian.org bullseye/updates|http://security.debian.org/debian-security bullseye-security|' /etc/apt/sources.list

2. 更新软件源

sudo apt update

3. 安装ufw

sudo apt install ufw -y

若仍有问题,建议更换为阿里云镜像源:

备份原有源

sudo cp /etc/apt/sources.list{,.bak}

写入阿里云源配置

sudo tee /etc/apt/sources.list <<EOF
deb http://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb http://mirrors.aliyun.com/debian-security/ bullseye-security main
deb-src http://mirrors.aliyun.com/debian-security/ bullseye-security main
deb http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
EOF

再次更新并安装

sudo apt update && sudo apt install ufw -y

The expected correct result

No response

Related log output

Additional Information

No response

@wanghe-fit2cloud wanghe-fit2cloud changed the title [Bug] 安装脚本无法安装 [Bug] Installation script cannot be installed Jun 2, 2025
@wanghe-fit2cloud
Copy link
Member

感谢反馈。目前你可以克隆我们官方提供的脚本版本,并根据 Issue 中提到的方案进行修改和适配。

成功适配后,欢迎将通用版本通过 PR 提交到我们的脚本库项目中,项目地址:
👉 https://github.com/1Panel-dev/scripts

@sunnyhmz7010
Copy link
Author

由于我已通过v1文档完成手动安装,不具备验证适配脚本的环境,非常抱歉

@sunnyhmz7010 sunnyhmz7010 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 5, 2025
@wanghe-fit2cloud
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Since I have completed the manual installation through the v1 document, I do not have an environment to verify the adapter script, I am very sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants