linux-mirror-manager

Used for Linux mirror site checking and software source switching; supports 17 mirrors including Alibaba Cloud, Tencent Cloud, China Mobile Cloud, and university mirrors, and is applicable to Debian/Ubuntu/CentOS/Fedora/Arch/openSUSE/Alpine.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "linux-mirror-manager" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-9686805597a35565cce3019f5e6d20b026a1d7d212567db5f080b54f3144f693. Verify the upstream source and version against https://skillhub.cn/skills/user_eba395de/linux-mirror-manager before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Used for Linux mirror site checking and software source switching; supports 17 mirrors including Alibaba Cloud, Tencent Cloud, China Mobile Cloud, and university mirrors, and is applicable to Debian/Ubuntu/CentOS/Fedora/Arch/openSUSE/Alpine.

0 Downloads

Introduction source: third_party · user_eba395de · 1.0.5 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Limits and differences
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: linux-mirror-addr
slug: linux-mirror-manager
displayName: Linux镜像-Addr
version: "1.0.5"
description: "Linux 镜像站检测与软件源切换工具,支持阿里云、腾讯云、移动云、高校镜像等 17 个镜像站,适用于 Debian/Ubuntu/CentOS/Fedora/Arch/openSUSE/Alpine"
metadata:
  {
    "tags": ["linux", "mirror", "apt", "yum", "dnf", "pacman", "软件源", "镜像", "换源", "阿里云", "腾讯云", "华为云", "移动云"],
    "platform": "Linux",
    "author": "江参梦青",
  }

Linux镜像-Addr

⚠️ 平台限制: 仅适用于 Linux 发行版(Debian/Ubuntu/CentOS/Fedora/Arch/openSUSE/Alpine)

功能说明

Linux 镜像站检测与软件源切换工具:

  • ⚡ 实时检测 - 实时检测镜像站可用性和响应速度
  • 🔄 一键换源 - 自动切换系统软件源到指定镜像
  • 💾 自动备份 - 切换前自动备份原有配置
  • 🔍 状态检测 - 自动检测系统发行版、应用商店、现有配置
  • ↩️ 一键恢复 - 支持从备份恢复原有配置

内置镜像站(共 17 个,已验证可用)

🎓 高校镜像

镜像 URL 特点
tuna https://mirrors.tuna.tsinghua.edu.cn/ 清华大学 TUNA
ustc https://mirrors.ustc.edu.cn/ 中国科学技术大学,推荐
sjtu https://mirrors.sjtug.sjtu.edu.cn/ 上海交通大学
zju https://mirrors.zju.edu.cn/ 浙江大学
njupt https://mirrors.njupt.edu.cn/ 南京邮电大学

🏢 大厂/商业镜像

镜像 URL 特点
aliyun https://mirrors.aliyun.com/ 资源最全、更新快
tencent https://mirrors.cloud.tencent.com/ 南方访问好,CVM 内网
huawei https://mirrors.huaweicloud.com/ 支持 ARM/鲲鹏,openEuler
cmecloud https://mirrors.cmecloud.cn/ 中国移动开源镜像
azure-cn https://mirror.azure.cn/ Azure China 镜像
pubyun http://mirrors.pubyun.com/ 公云,商业镜像
ctyun http://mirrors.ctyun.cn/ 中国电信镜像
volces https://mirrors.volces.com/ 字节跳动火山引擎
sohu http://mirrors.sohu.com/ 搜狐镜像
wangyi http://mirrors.163.com/ 网易 163,老牌

🤝 社群/公益镜像

镜像 URL 特点
kaiyuanshe http://mirror.kaiyuanshe.cn/ 开源社非营利镜像

🌐 其他

镜像 URL
flathub https://flathub.org/zh-Hans/

使用方法

Python 脚本(推荐,功能最全)

python3 mirror_tool.py <命令>

Bash 脚本(轻量替代)

bash scripts/check_mirror.sh all      # 检测所有镜像
bash scripts/switch_mirror.sh debian ustc  # 切换 Debian 源

命令列表

命令 说明
mirror_tool.py status 查看系统状态(发行版、配置、应用商店)
mirror_tool.py list 列出所有镜像(含备注)
mirror_tool.py check all 实时检测所有镜像
mirror_tool.py check <镜像> 实时检测单个镜像
mirror_tool.py switch <发行版> <镜像> 切换软件源
mirror_tool.py restore <备份文件> 恢复备份配置

示例

# 查看系统状态
python3 mirror_tool.py status

# 实时检测所有镜像(推荐先检测再切换)
python3 mirror_tool.py check all

# 切换软件源
sudo python3 mirror_tool.py switch ubuntu ustc     # Ubuntu → 中科大(推荐)
sudo python3 mirror_tool.py switch debian aliyun   # Debian → 阿里云
sudo python3 mirror_tool.py switch arch huawei     # Arch → 华为云

# 使用 Bash 脚本
bash scripts/check_mirror.sh all

支持的发行版

Debian / Ubuntu / CentOS / Fedora / Arch Linux / openSUSE / Alpine

注意事项

  • ⚠️ 需要 root 权限 - 切换软件源需要使用 sudo
  • 📝 自动备份 - 切换前会自动备份原有配置到 .bak.时间戳 文件
  • ⚠️ 应用商店兼容性 - 切换后图形化应用商店可能需要手动刷新
  • ⚠️ 配置文件格式 - 部分版本可能需要手动微调 /etc/apt/sources.list 等
  • 🔍 推荐使用 - 中科大 USTC(速度快)、阿里云(资源全)

Current listing version

1.0.5

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 支持 17 个主流镜像站,覆盖阿里云、腾讯云、华为云、高校镜像等
  • 适用于 Debian/Ubuntu/CentOS/Fedora/Arch/openSUSE/Alpine 等主流 Linux 发行版
  • 提供实时检测、一键换源、自动备份、状态检测、一键恢复等完整功能闭环
Trigger Precision90/100

Highlights

  • 触发词精准完整,如 'Linux 镜像站'、'软件源切换'、'换源' 等
  • description 明确描述了功能和使用场景,边界清晰
Structure and Standards95/100

Highlights

  • 结构清晰,包含功能说明、内置镜像站列表、使用方法、命令列表、示例、支持的发行版和注意事项
  • Phase/步骤清晰,有端到端示例,frontmatter 完整
Execution Reliability90/100

Highlights

  • 工具来源明确(Python 脚本和 Bash 脚本),参数正确
  • 覆盖主要异常(如自动备份、状态检测),不可逆操作有确认机制(需要 sudo 权限)
Evidence Verifiability (mean of the first four)90/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • flathub.org
  • mirror.azure.cn
  • mirror.kaiyuanshe.cn
  • mirrors.163.com
  • mirrors.aliyun.com
  • mirrors.cloud.tencent.com
  • mirrors.cmecloud.cn
  • mirrors.ctyun.cn
  • mirrors.huaweicloud.com
  • mirrors.njupt.edu.cn
  • mirrors.pubyun.com
  • mirrors.sjtug.sjtu.edu.cn

5 additional addresses are listed in the source.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.