This commit is contained in:
2025-11-01 19:07:38 +08:00
parent 4d95b15df5
commit cc430a2d9d
3 changed files with 40 additions and 65 deletions

35
fix-network.sh Executable file
View File

@@ -0,0 +1,35 @@
#!/bin/bash
echo "=== 网络连接问题修复 ==="
echo
echo "🔧 修复内容:"
echo "1. 添加阿里云镜像源配置"
echo "2. 移除tini依赖非必需"
echo "3. 简化基础包安装"
echo
echo "📋 网络问题分析:"
echo "❌ 原问题deb.debian.org 连接超时"
echo "✅ 解决:使用 mirrors.aliyun.com"
echo
echo "🚀 现在可以重新构建:"
echo "./archive-manager.sh build"
echo
echo "💡 如果还有网络问题,可以:"
echo "1. 检查Docker daemon网络配置"
echo "2. 使用代理服务器"
echo "3. 切换到其他镜像源"
echo
echo "🔍 备用镜像源(如果阿里云也不行):"
echo "# 华为云"
echo "sed -i 's/deb.debian.org/repo.huaweicloud.com/g' /etc/apt/sources.list"
echo
echo "# 腾讯云"
echo "sed -i 's/deb.debian.org/mirrors.cloud.tencent.com/g' /etc/apt/sources.list"
echo
echo "=== 开始构建测试 ==="