Closed snowdream closed 1 month ago
You need to update/populate the apt cache before you can search for or install anything.
$ docker pull debian:bookworm
bookworm: Pulling from library/debian
cdd62bf39133: Download complete
Digest: sha256:27586f4609433f2f49a9157405b473c62c3cb28a581c413393975b4e8496d0ab
Status: Downloaded newer image for debian:bookworm
docker.io/library/debian:bookworm
$ docker run -it --rm debian:bookworm
root@351e0ce43469:/# apt search linux-headers-
Sorting... Done
Full Text Search... Done
root@351e0ce43469:/# apt-get update
Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]
Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:4 http://deb.debian.org/debian bookworm/main amd64 Packages [8787 kB]
Get:5 http://deb.debian.org/debian bookworm-updates/main amd64 Packages [2468 B]
Get:6 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [185 kB]
Fetched 9229 kB in 4s (2256 kB/s)
Reading package lists... Done
root@351e0ce43469:/# apt search linux-headers-amd64
Sorting... Done
Full Text Search... Done
linux-headers-amd64/stable 6.1.106-3 amd64
Header files for Linux amd64 configuration (meta-package)
I try to build docker images for debian.
Docker Images for Debian. (i386,amd64, arm32v5, arm32v7, arm64, mips64le, ppc64le, s390x)
linux-headers-amd64 seems be suitable for amd64? what about i386,etc?
I try to install linux-headers on debian docker images,but failed.