Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 内核安装提供丢失的模块错误_Linux_Ubuntu_Terminal_Linux Kernel - Fatal编程技术网

Linux 内核安装提供丢失的模块错误

Linux 内核安装提供丢失的模块错误,linux,ubuntu,terminal,linux-kernel,Linux,Ubuntu,Terminal,Linux Kernel,我正在安装一个从3.14到3.19的linux内核,当我运行命令时: make O=$BUILD install 我收到几个错误消息,说没有lib/module目录。在此之前,我已经编译了内核并将创建的bzImage与system.map和.config一起复制到boot中 update-initramfs: Generating /boot/initrd.img-3.19.0 WARNING: missing /lib/modules/3.19.0 Device dr

我正在安装一个从3.14到3.19的linux内核,当我运行命令时:

make O=$BUILD install
我收到几个错误消息,说没有lib/module目录。在此之前,我已经编译了内核并将创建的bzImage与system.map和.config一起复制到boot中

    update-initramfs: Generating /boot/initrd.img-3.19.0
    WARNING: missing /lib/modules/3.19.0
    Device driver support needs thus be built-in linux image!
    depmod: ERROR: could not open directory /lib/modules/3.19.0: No such    file or directory
    depmod: FATAL: could not search modules: No such file or directory
    depmod: WARNING: could not open /tmp/mkinitramfs_6tPRIQ/lib/modules  /3.19.0/modules.order: No such file or directory
    depmod: WARNING: could not open /tmp/mkinitramfs_6tPRIQ/lib/modules  /3.19.0/modules.builtin: No such file or directory
    run-parts: executing /etc/kernel/postinst.d/pm-utils 3.19.0 /boot/vmlinuz-3.19.0
    run-parts: executing /etc/kernel/postinst.d/update-notifier 3.19.0 /boot/vmlinuz-3.19.0
    run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.19.0 /boot/vmlinuz-3.19.0
    Generating grub configuration file ...
    Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
我怎样才能修好它

编辑:ls/

bin    dev   initrd.img  lost+found  opt   run   sys  var
boot   etc   lib         media       proc  sbin  tmp  vmlinuz
cdrom  home  lib64       mnt         root  srv   usr
编辑2:

ls -l /lib/
total 296
drwxr-xr-x  2 root root  4096 feb 21 10:41 apparmor
drwxr-xr-x  2 root root  4096 jul 23  2014 brltty
lrwxrwxrwx  1 root root    21 feb 20 13:04 cpp -> /etc/alternatives/cpp
drwxr-xr-x  3 root root  4096 jul 23  2014 crda
drwxr-xr-x 61 root root 20480 feb 21 10:43 firmware
drwxr-xr-x  2 root root  4096 jul 23  2014 hdparm
drwxr-xr-x  2 root root  4096 jul 23  2014 ifupdown
drwxr-xr-x  2 root root  4096 jul 23  2014 init
-rwxr-xr-x  1 root root 71512 dec 24  2013 klibc-P2s_k-  gf23VtrGgO2_4pGkQgwMY.so
lrwxrwxrwx  1 root root    17 feb 20 13:04 libip4tc.so.0 -> libip4tc.so.0.1.0
-rw-r--r--  1 root root 27392 jan  8  2014 libip4tc.so.0.1.0
lrwxrwxrwx  1 root root    17 feb 20 13:04 libip6tc.so.0 -> libip6tc.so.0.1.0
-rw-r--r--  1 root root 31520 jan  8  2014 libip6tc.so.0.1.0
lrwxrwxrwx  1 root root    16 feb 20 13:04 libiptc.so.0 -> libiptc.so.0.0.0
-rw-r--r--  1 root root  5816 jan  8  2014 libiptc.so.0.0.0 
lrwxrwxrwx  1 root root    20 feb 20 13:04 libxtables.so.10 -> libxtables.so.10.0.0
-rw-r--r--  1 root root 47712 jan  8  2014 libxtables.so.10.0.0
drwxr-xr-x  2 root root  4096 jul 23  2014 linux-sound-base
drwxr-xr-x  3 root root  4096 jul 22  2014 lsb
drwxr-xr-x  2 root root  4096 apr 10  2014 modprobe.d
drwxr-xr-x  3 root root  4096 jul 23  2014 modules
drwxr-xr-x  2 root root  4096 jul 23  2014 modules-load.d
drwxr-xr-x  3 root root  4096 feb 21 10:41 plymouth
drwxr-xr-x  3 root root  4096 jul 23  2014 recovery-mode
drwxr-xr-x  2 root root  4096 jul 23  2014 resolvconf
drwxr-xr-x  4 root root  4096 feb 21 10:41 systemd
drwxr-xr-x 15 root root  4096 mar 22  2014 terminfo
drwxr-xr-x  4 root root  4096 feb 21 10:45 udev
drwxr-xr-x  2 root root  4096 jul 23  2014 ufw
drwxr-xr-x  4 root root 12288 feb 21 10:42 x86_64-linux-gnu
drwxr-xr-x  2 root root  4096 jul 23  2014 xtables
试着去做

  make O=$BUILD modules
  make O=$BUILD modules_install
然后

  make O=$BUILD install

能否显示
ls/
输出。你需要成为root吗?我在主帖子中添加了ls/output。我用sudo make O=。。。如果这就是你的意思,那么
ls-l/lib/
如何将其添加到主帖子中。最好是@Miline-answer,从而清楚地表明它解决了你的问题。