我时不时地会将 debian 卸载到本地目录中。直到 3 小时前它还运行良好,但是现在我收到此错误消息:
命令
debootstrap --include linux-image-4.9.0-3-amd64,sudo,openssh-server,hdparm,net-tools,udhcpc stretch /tmp/generate-image/mount
输出
I: Retrieving InRelease
I: Retrieving Release
I: Retrieving Release.gpg
I: Checking Release signature
I: Valid Release signature (key id 067E3C456BAE240ACEE88F6FEF0F382A1A7B6500)
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Found additional required dependencies: libaudit-common libaudit1 libbz2-1.0 libcap-ng0 libdb5.3 libdebconfclient0 libgcrypt20 libgpg-error0 liblz4-1 libncursesw5 libsemanage-common libsemanage1 libsystemd0 libudev1 libustr-1.0-1
I: Found additional base dependencies: busybox dmsetup gnupg-agent libapparmor1 libassuan0 libbsd0 libcap2 libcryptsetup4 libdevmapper1.02.1 libdns-export162 libedit2 libelf1 libfastjson4 libffi6 libgmp10 libgnutls30 libgssapi-krb5-2 libhogweed4 libidn11 libidn2-0 libip4tc0 libip6tc0 libiptc0 libisc-export160 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libksba8 liblocale-gettext-perl liblognorm5 libmnl0 libncurses5 libnetfilter-conntrack3 libnettle6 libnfnetlink0 libnpth0 libp11-kit0 libpsl5 libseccomp2 libsqlite3-0 libtasn1-6 libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl libunistring0 libwrap0 libxtables12 openssh-client openssh-sftp-server pinentry-curses ucf xxd
I: Checking component main on http://deb.debian.org/debian...
E: Couldn't find these debs: linux-image-4.9.0-3-amd64
直到几个小时前,输出是这样的:
I: Retrieving InRelease
I: Retrieving Release
I: Retrieving Release.gpg
I: Checking Release signature
I: Valid Release signature (key id 067E3C456BAE240ACEE88F6FEF0F382A1A7B6500)
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Found additional required dependencies: libaudit-common libaudit1 libbz2-1.0 libcap-ng0 libdb5.3 libdebconfclient0 libgcrypt20 libgpg-error0 liblz4-1 libncursesw5 libsemanage-common libsemanage1 libsystemd0 libudev1 libustr-1.0-1
I: Found additional base dependencies: busybox dmsetup gnupg-agent initramfs-tools initramfs-tools-core klibc-utils libapparmor1 libassuan0 libbsd0 libcap2 libcryptsetup4 libdevmapper1.02.1 libdns-export162 libedit2 libelf1 libfastjson4 libffi6 libgmp10 libgnutls30 libgssapi-krb5-2 libhogweed4 libidn11 libidn2-0 libip4tc0 libip6tc0 libiptc0 libisc-export160 libk5crypto3 libkeyutils1 libklibc libkrb5-3 libkrb5support0 libksba8 liblocale-gettext-perl liblognorm5 libmnl0 libncurses5 libnetfilter-conntrack3 libnettle6 libnfnetlink0 libnpth0 libp11-kit0 libpsl5 libseccomp2 libsqlite3-0 libtasn1-6 libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl libunistring0 libwrap0 libxtables12 linux-base openssh-client openssh-sftp-server pinentry-curses ucf xxd
I: Checking component main on http://deb.debian.org/debian...
I: Retrieving libacl1 2.2.52-3+b1
I: Validating libacl1 2.2.52-3+b1
I: Retrieving adduser 3.115
... and so on
起初我以为这个包可能已经停产了。然而,运行后apt-get update
,apt-cache search linux-image-4.9.0-3-amd64
仍然找到这个包,所以它应该仍然可用。
上一个Debian 网站,它会[security]
在包名称旁边打印一条红色通知。这是什么意思?难道是这个原因吗?我怎样才能继续debootstrap Debian?
答案1
现在稳定的内核是linux-image-4.9.0-4-amd64
,您需要指定它。
更好的是,告诉debootstrap
包含linux-image-amd64
而不是特定版本,这样您将始终获得当前稳定的内核,并且不会遇到此类问题。
(旧包突然消失与Debian 9.2 发布今天。)