Debian 处理 apt 错误

在 Debian 上 apt update 后报错:

BZ2_bzread: /var/lib/apt/lists/partial/security.debian.org_debian-security_dists_stable_updates_contrib_i18n_Translation-en.bz2 Read error (-5: DATA_ERROR_MAGIC)

查找相关问题,删除 /var/lib/apt/lists/ 下的所有文件后,再执行 apt update 后即可。

1
2
rm -rf /var/lib/apt/lists/*
apt update

Reference

Hamza Jabbour’s Comment on StackExchange

persistent apt-get update error

Mastodon