Skip to content

/var/lib/dpkg/info/lustre-client-modules-5.15.0-88-generic.postinst: 9: depmod: not found #3373

Closed Answered by Heng-Zhou
Heng-Zhou asked this question in Q&A
Discussion options

You must be logged in to vote

Solved myself.

If we run depmod in the container, it will report what is not found:

depmod: ERROR: could not open directory /lib/modules/6.8.0-47-generic: No such file or directory
depmod: FATAL: could not search modules: No such file or directory

If we shell --bind the host directory /lib/modules/6.8.0-47-generic into the container, we can install deb files using dpkg -i without any problem. So, I add

%files
    /lib/modules/6.8.0-47-generic

in the def file and the problem is solved.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dtrudg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant