“dkms-build 下载 zfs” 期间编译内核失败,并出现“ERROR 404:未找到”

“dkms-build 下载 zfs” 期间编译内核失败,并出现“ERROR 404:未找到”

我正在尝试为 Kubuntu 19.10 构建自定义内核,并应用一些精选补丁。我已关注说明来自 Ubuntu wiki。

但是,当我运行最后一个命令时fakeroot debian/rules binary-headers binary-generic binary-perarch,它失败并出现以下错误:

II: dkms-build downloading zfs (zfs-dkms__all.deb)
https://launchpad.net/ubuntu/+archive/primary/+files/zfs-dkms__all.deb:
2019-12-13 17:46:49 ERROR 404: Not Found.
http://repo.steampowered.com/steam/pool/universe/z/zfs-linux/zfs-dkms__all.deb:
2019-12-13 17:46:53 ERROR 404: Not Found.
http://repo.steampowered.com/steam/pool/main/z/zfs-linux/zfs-dkms__all.deb:
2019-12-13 17:46:57 ERROR 404: Not Found.
http://ppa.launchpad.net/andreasbutti/xournalpp-master/ubuntu/pool/universe/z/zfs-linux/zfs-dkms__all.deb:
2019-12-13 17:46:57 ERROR 404: Not Found.
http://ppa.launchpad.net/andreasbutti/xournalpp-master/ubuntu/pool/main/z/zfs-linux/zfs-dkms__all.deb:
2019-12-13 17:46:57 ERROR 404: Not Found.
http://security.ubuntu.com/ubuntu/pool/universe/z/zfs-linux/zfs-dkms__all.deb:
2019-12-13 17:46:58 ERROR 404: Not Found.
http://security.ubuntu.com/ubuntu/pool/main/z/zfs-linux/zfs-dkms__all.deb:
2019-12-13 17:46:58 ERROR 404: Not Found.
http://nl.archive.ubuntu.com/ubuntu/pool/universe/z/zfs-linux/zfs-dkms__all.deb:
2019-12-13 17:46:58 ERROR 404: Not Found.
http://nl.archive.ubuntu.com/ubuntu/pool/main/z/zfs-linux/zfs-dkms__all.deb:
2019-12-13 17:46:58 ERROR 404: Not Found.
EE: zfs-dkms not found
make: *** [debian/rules.d/2-binary-arch.mk:222: install-generic] Error 1

我该如何解决?

答案1

这是我的解决方案,请尝试一下,看看是否有帮助:

sudo apt-get install gawk

失败的主要原因是dkms_zfs_linux_version为空(gawk对root用户不起作用)

检查

sudo gawk'/^zfs-linux/{打印$$2;}'debian/dkms-versions

看看它是否打印正确的版本(对我来说它是 zfs-linux 0.8.3-1ubuntu12.4)

phoenix-a300@phoenixa300-桌面/raid/ubt-kernel/ubuntu-focal$ git grep dkms_zfs_linux_version
debian/规则:dkms_zfs_linux_version=$(shell gawk'/^zfs-linux/{打印$$2;}'debian/dkms-versions)
debian/rules.d/2-binary-arch.mk:$(如果 $(filter true,$(enable_zfs)),$(调用 build_dkms,$(mods_pkg_name)-$*,$(pkgdir)/lib/modules/$(abi_release)-$*/kernel,$(dbgpkgdir_zfs),zfs,pool/universe/z/zfs-linux/zfs-dkms_$(dkms_zfs_linux_version)_all.deb)

相关内容