下面是我的sources.list
.我的 中没有其他文件/etc/apt/sources.list.d/
。(Some_Server)
是一个公共存储库。
$ cat /etc/apt/sources.list
deb (Some_Server)/debian-security/ bookworm-security main contrib non-free non-free-firmware
deb-src (Some_Server)/debian-security/ bookworm-security main contrib non-free non-free-firmware
deb (Some_Server)/debian/ bookworm-updates main contrib non-free non-free-firmware
deb-src (Some_Server)/debian/ bookworm-updates main contrib non-free non-free-firmware
deb (Some_Server)/debian/ bookworm main contrib non-free non-free-firmware
deb-src (Some_Server)/debian/ bookworm main contrib non-free non-free-firmware
我做了一个例行公事sudo apt update
,但对异常数量的条目感到震惊。
$ sudo apt update
Hit:1 (Some_Server)/debian-security bookworm-security InRelease
Get:2 (Some_Server)/debian bookworm-updates InRelease [52.1 kB]
Hit:3 (Some_Server)/debian bookworm InRelease
Get:4 (Some_Server)/debian bookworm-updates/main Sources.diff/Index [3,873 B]
Get:5 (Some_Server)/debian bookworm-updates/main amd64 Packages.diff/Index [3,873 B]
Get:6 (Some_Server)/debian bookworm-updates/main Translation-en.diff/Index [3,873 B]
Get:7 (Some_Server)/debian bookworm-updates/main all Contents (deb).diff/Index [3,873 B]
Get:8 (Some_Server)/debian bookworm-updates/main Sources T-2023-08-26-0938.45-F-2023-08-26-0938.45.pdiff [539 B]
Get:9 (Some_Server)/debian bookworm-updates/main amd64 Packages T-2023-08-26-0938.45-F-2023-08-26-0938.45.pdiff [453 B]
Get:10 (Some_Server)/debian bookworm-updates/main Translation-en T-2023-08-26-0938.45-F-2023-08-26-0938.45.pdiff [199 B]
Get:8 (Some_Server)/debian bookworm-updates/main Sources T-2023-08-26-0938.45-F-2023-08-26-0938.45.pdiff [539 B]
Get:10 (Some_Server)/debian bookworm-updates/main Translation-en T-2023-08-26-0938.45-F-2023-08-26-0938.45.pdiff [199 B]
Get:9 (Some_Server)/debian bookworm-updates/main amd64 Packages T-2023-08-26-0938.45-F-2023-08-26-0938.45.pdiff [453 B]
Get:11 (Some_Server)/debian bookworm-updates/main all Contents (deb) T-2023-08-26-0938.45-F-2023-08-26-0938.45.pdiff [201 B]
Get:11 (Some_Server)/debian bookworm-updates/main all Contents (deb) T-2023-08-26-0938.45-F-2023-08-26-0938.45.pdiff [201 B]
当我再次尝试时,行为恢复正常。
$ sudo apt update
sudo apt update
Hit:1 (Some_Server)/debian-security bookworm-security InRelease
Hit:2 (Some_Server)/debian bookworm-updates InRelease
Hit:3 (Some_Server)/debian bookworm InRelease
这些条目是什么?存储库是否受到威胁?我应该切换到另一个存储库吗?
答案1
存储库没有受到损害。条目是如下:
Sources.diff/Index
:可用差异的索引Sources
文件(这些差异允许较小的下载)Packages.diff/Index
:Packages
文件的可用差异索引Translation-en.diff/Index
:可用差异的索引Translation-en
文件(英文包元数据)
接下来是适当的差异文件来更新您的系统(基于本地已有的文件)。
您的后续版本apt update
除了文件之外没有下载任何内容,InRelease
因为自上次更新以来没有任何更改。