| 刷新 | dnf makecache |
|---|---|
| 清理 | dnf clean all |
| 常见原因 | 元数据过期 / 下载中断 / 源变更 |
标准处置
标准处置
dnf clean all
dnf makecache
# 仍失败再检查源配置
dnf repolist -v换源、改发行版链接后立即 dnf clean all 再 makecache,避免混用新旧元数据。
源元数据缓存过期会导致“找不到包”:makecache 刷新元数据、clean all 清掉损坏缓存重建,是 dnf 异常的常用处置组合。
| 刷新 | dnf makecache |
|---|---|
| 清理 | dnf clean all |
| 常见原因 | 元数据过期 / 下载中断 / 源变更 |
dnf clean all
dnf makecache
# 仍失败再检查源配置
dnf repolist -v