Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
包 A 依赖于包 B-kmod 并且 B-kmod 有几个变体。像 B-kmod--{generic,pae-generic} 等,而 B-kmod 又依赖于相同风格的 linux-image。
我希望 A 依赖于 B-kmod-$(uname -r)。如何在控制文件中表达这一点?
如果您的意思是您希望 A 依赖于正在安装的内核模块,该模块与安装A 时运行的内核的内核版本相匹配,那绝对是不可能的。作为替代方案,您最好的选择是在 preinst 或 postinst 脚本期间检查所需功能的可用性,如果它们不存在,则安装失败。您必须记住: