Files
server/fix-network.sh
2025-11-01 19:07:38 +08:00

35 lines
893 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/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 "=== 开始构建测试 ==="