Ocena wątku:
  • 0 głosów - średnia: 0
  • 1
  • 2
  • 3
  • 4
  • 5
update-initramfs wywala błędy
#1
0
Cześć

Od pewnego czasu mam błąd update-initramfs po każdej aktualizacji minta (19.3 cinnamon).
Usuwałem i instalowałem „initramfs-tools”, „amd-microcode”, „intel-microcode”, „udev” i „linux-modules-5.3.0-28-generic”, nic to nie dało.

Komendy poniżej też bez rezultatu:

Kod:
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get -f install
sudo dpkg --configure -a



Kod:
dpkg -l | egrep -v '^ii|rc'
Wybór:U=nieznany/I=instalacja/R=usunięcie/P=wyczyszczenie/H=zatrzymanie
| Stan:N=brak/I=zainstalowany/C=skonfigurowany/U=rozpakowany/
|/  F=częśc. skonfigurowany/H=częśc. zainstalowany/W=wyzw. czek./T=wyzw. zapl.
|| Błędy?=(brak)/R-do pon. inst. (duże litery w "Stan" i "Błędy"=problemy)
+++-=================================================-===============================================-============-===============================================================================
iF  initramfs-tools                                   0.130ubuntu3.9                                  all          generic modular initramfs generator (automation)


Kod:
sudo /usr/sbin/update-initramfs -uv
Available versions: 5.3.0-28-generic
5.3.0-26-generic
Keeping /boot/initrd.img-5.3.0-28-generic.dpkg-bak
update-initramfs: Generating /boot/initrd.img-5.3.0-28-generic
Copying module directory kernel/drivers/usb/host
(excluding hwa-hc.ko sl811_cs.ko sl811-hcd.ko u132-hcd.ko whci-hcd.ko)
/usr/sbin/mkinitramfs: 225: /usr/sbin/mkinitramfs: find: not found
Copying module directory kernel/drivers/usb/c67x00
/usr/sbin/mkinitramfs: 225: /usr/sbin/mkinitramfs: find: not found
Copying module directory kernel/drivers/usb/chipidea
/usr/sbin/mkinitramfs: 225: /usr/sbin/mkinitramfs: find: not found
Copying module directory kernel/drivers/usb/dwc2
/usr/sbin/mkinitramfs: 225: /usr/sbin/mkinitramfs: find: not found
Copying module directory kernel/drivers/usb/dwc3
/usr/sbin/mkinitramfs: 225: /usr/sbin/mkinitramfs: find: not found
Copying module directory kernel/drivers/usb/isp1760
/usr/sbin/mkinitramfs: 225: /usr/sbin/mkinitramfs: find: not found
Copying module directory kernel/drivers/usb/musb
/usr/sbin/mkinitramfs: 225: /usr/sbin/mkinitramfs: find: not found
Copying module directory kernel/drivers/hid
(excluding hid-*ff.ko hid-a4tech.ko hid-cypress.ko hid-dr.ko hid-elecom.ko hid-gyration.ko hid-icade.ko hid-kensington.ko hid-kye.ko hid-lcpower.ko hid-magicmouse.ko hid-multitouch.ko hid-ntrig.ko hid-petalynx.ko hid-picolcd.ko hid-pl.ko hid-ps3remote.ko hid-quanta.ko hid-roccat-ko*.ko hid-roccat-pyra.ko hid-saitek.ko hid-sensor-hub.ko hid-sony.ko hid-speedlink.ko hid-tivo.ko hid-twinhan.ko hid-uclogic.ko hid-wacom.ko hid-waltop.ko hid-wiimote.ko hid-zydacron.ko)
/usr/sbin/mkinitramfs: 225: /usr/sbin/mkinitramfs: find: not found
Copying module directory kernel/drivers/clk
/usr/sbin/mkinitramfs: 225: /usr/sbin/mkinitramfs: find: not found
Copying module directory kernel/drivers/gpio
/usr/sbin/mkinitramfs: 225: /usr/sbin/mkinitramfs: find: not found
Copying module directory kernel/drivers/i2c/busses
/usr/sbin/mkinitramfs: 225: /usr/sbin/mkinitramfs: find: not found
Copying module directory kernel/drivers/i2c/muxes
/usr/sbin/mkinitramfs: 225: /usr/sbin/mkinitramfs: find: not found
Copying module directory kernel/drivers/phy
/usr/sbin/mkinitramfs: 225: /usr/sbin/mkinitramfs: find: not found
Copying module directory kernel/drivers/pinctrl
/usr/sbin/mkinitramfs: 225: /usr/sbin/mkinitramfs: find: not found
Copying module directory kernel/drivers/regulator
/usr/sbin/mkinitramfs: 225: /usr/sbin/mkinitramfs: find: not found
Copying module directory kernel/drivers/usb/phy
/usr/sbin/mkinitramfs: 225: /usr/sbin/mkinitramfs: find: not found
Copying module directory kernel/drivers/rtc
/usr/sbin/mkinitramfs: 225: /usr/sbin/mkinitramfs: find: not found
Copying module directory kernel/drivers/net
(excluding appletalk arcnet bonding can dummy.ko hamradio hippi ifb.ko irda macvlan.ko macvtap.ko pcmcia sb1000.ko team tokenring tun.ko usb veth.ko wan wimax wireless xen-netback.ko)
/usr/sbin/mkinitramfs: 225: /usr/sbin/mkinitramfs: find: not found
Copying module directory kernel/drivers/infiniband/hw/mlx4
/usr/sbin/mkinitramfs: 225: /usr/sbin/mkinitramfs: find: not found
Copying module directory kernel/drivers/infiniband/hw/mlx5
/usr/sbin/mkinitramfs: 225: /usr/sbin/mkinitramfs: find: not found
Copying module directory kernel/drivers/scsi
/usr/sbin/mkinitramfs: 225: /usr/sbin/mkinitramfs: find: not found
Copying module directory kernel/drivers/block
/usr/sbin/mkinitramfs: 225: /usr/sbin/mkinitramfs: find: not found
Copying module directory kernel/drivers/nvme
/usr/sbin/mkinitramfs: 225: /usr/sbin/mkinitramfs: find: not found
Copying module directory kernel/drivers/ata
/usr/sbin/mkinitramfs: 225: /usr/sbin/mkinitramfs: find: not found
Copying module directory kernel/drivers/mmc
/usr/sbin/mkinitramfs: 225: /usr/sbin/mkinitramfs: find: not found
Copying module directory kernel/drivers/usb/storage
/usr/sbin/mkinitramfs: 225: /usr/sbin/mkinitramfs: find: not found
Adding module /lib/modules/5.3.0-28-generic/kernel/lib/libcrc32c.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/lib/raid6/raid6_pq.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/lib/zstd/zstd_compress.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/crypto/xor.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/fs/btrfs/btrfs.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/fs/isofs/isofs.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/fs/jfs/jfs.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/fs/reiserfs/reiserfs.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/lib/crc-itu-t.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/fs/udf/udf.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/fs/xfs/xfs.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/fs/fscache/fscache.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/net/sunrpc/sunrpc.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/fs/nfs_common/grace.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/fs/lockd/lockd.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/fs/nfs/nfs.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/fs/nfs/nfsv2.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/fs/nfs_common/nfs_acl.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/fs/nfs/nfsv3.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/fs/nfs/nfsv4.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/drivers/input/mouse/psmouse.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/fs/nls/nls_iso8859-1.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/drivers/extcon/extcon-usb-gpio.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/drivers/scsi/scsi_transport_fc.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/drivers/message/fusion/mptbase.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/drivers/message/fusion/mptscsih.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/drivers/message/fusion/mptfc.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/drivers/scsi/scsi_transport_sas.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/drivers/message/fusion/mptsas.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/drivers/scsi/scsi_transport_spi.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/drivers/message/fusion/mptspi.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/drivers/pci/controller/vmd.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/drivers/firewire/firewire-core.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/drivers/firewire/firewire-ohci.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/drivers/firewire/firewire-sbp2.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/drivers/hv/hv_vmbus.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/drivers/hv/hv_utils.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/drivers/net/hyperv/hv_netvsc.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/drivers/scsi/hv_storvsc.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/drivers/input/serio/hyperv-keyboard.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/lib/842/842_decompress.ko
/usr/sbin/mkinitramfs: 263: /usr/sbin/mkinitramfs: find: not found
/usr/sbin/mkinitramfs: 274: /usr/sbin/mkinitramfs: find: not found
Adding binary /usr/lib/initramfs-tools/bin/wait-for-root
Adding library-link /lib/x86_64-linux-gnu/libudev.so.1
Adding library /lib/x86_64-linux-gnu/libudev.so.1.6.9
Adding library-link /lib/x86_64-linux-gnu/libc.so.6
Adding library /lib/x86_64-linux-gnu/libc-2.27.so
Adding library-link /lib/x86_64-linux-gnu/librt.so.1
Adding library /lib/x86_64-linux-gnu/librt-2.27.so
Adding library-link /lib/x86_64-linux-gnu/libpthread.so.0
Adding library /lib/x86_64-linux-gnu/libpthread-2.27.so
Adding library-link /lib64/ld-linux-x86-64.so.2
Adding library /lib/x86_64-linux-gnu/ld-2.27.so
Adding binary-link /sbin/modprobe
Adding binary /bin/kmod
Adding binary-link /sbin/rmmod
Adding config /etc/modprobe.d/50-8188eu.conf
Adding config /etc/modprobe.d/alsa-base.conf
Adding config /etc/modprobe.d/amd64-microcode-blacklist.conf
Adding config /etc/modprobe.d/blacklist-ath_pci.conf
Adding config /etc/modprobe.d/blacklist-firewire.conf
Adding config /etc/modprobe.d/blacklist-framebuffer.conf
Adding config /etc/modprobe.d/blacklist-modem.conf
Adding config /etc/modprobe.d/blacklist-native-rtl8192.conf
Adding config-link /etc/modprobe.d/blacklist-oss.conf
Adding config /lib/linux-sound-base/noOSS.modprobe.conf
Adding config /etc/modprobe.d/blacklist-rare-network.conf
Adding config /etc/modprobe.d/blacklist-vboxpci.conf
Adding config /etc/modprobe.d/blacklist.conf
Adding config /etc/modprobe.d/dkms.conf
Adding config /etc/modprobe.d/intel-microcode-blacklist.conf
Adding config /etc/modprobe.d/iwlwifi.conf
Adding config /etc/modprobe.d/qemu-system-x86.conf
Adding config /lib/modprobe.d/aliases.conf
Adding config /lib/modprobe.d/blacklist_linux-hwe_5.3.0-26-generic.conf
Adding config /lib/modprobe.d/blacklist_linux-hwe_5.3.0-28-generic.conf
Adding config /lib/modprobe.d/fbdev-blacklist.conf
Adding config /lib/modprobe.d/nvidia-graphics-drivers.conf
Adding config /lib/modprobe.d/systemd.conf
Calling hook amd64_microcode
I: amd64-microcode: installing AMD64 microcode into the early initramfs...
/usr/share/initramfs-tools/hooks/amd64_microcode: 103: /usr/share/initramfs-tools/hooks/amd64_microcode: find: not found
E: amd64-microcode: failed to create or prepend the early initramfs to the initramfs
Calling hook btrfs
Adding binary /bin/btrfs
Adding library-link /lib/x86_64-linux-gnu/libblkid.so.1
Adding library /lib/x86_64-linux-gnu/libblkid.so.1.1.0
Adding library-link /lib/x86_64-linux-gnu/libz.so.1
Adding library /lib/x86_64-linux-gnu/libz.so.1.2.11
Adding library-link /lib/x86_64-linux-gnu/liblzo2.so.2
Adding library /lib/x86_64-linux-gnu/liblzo2.so.2.0.0
Adding library-link /usr/lib/x86_64-linux-gnu/libzstd.so.1
Adding library /usr/lib/x86_64-linux-gnu/libzstd.so.1.3.3
Adding binary /bin/btrfs-zero-log
/usr/share/initramfs-tools/hooks/btrfs: 30: /usr/share/initramfs-tools/hooks/btrfs: find: not found
Calling hook compcache
Calling hook cryptroot
Calling hook cryptroot-unlock
Calling hook framebuffer
Copying module directory kernel/drivers/char/agp
/usr/share/initramfs-tools/hooks/framebuffer: 225: /usr/share/initramfs-tools/hooks/framebuffer: find: not found
Copying module directory kernel/drivers/gpu
/usr/share/initramfs-tools/hooks/framebuffer: 225: /usr/share/initramfs-tools/hooks/framebuffer: find: not found
Adding module /lib/modules/5.3.0-28-generic/kernel/drivers/video/vgastate.ko
Adding module /lib/modules/5.3.0-28-generic/kernel/drivers/video/fbdev/vga16fb.ko
Calling hook framebuffer-nvidia
Calling hook fsck
Adding binary /sbin/fsck
Adding library-link /lib/x86_64-linux-gnu/libmount.so.1
Adding library /lib/x86_64-linux-gnu/libmount.so.1.1.0
Adding library /lib/x86_64-linux-gnu/libselinux.so.1
Adding library-link /lib/x86_64-linux-gnu/libpcre.so.3
Adding library /lib/x86_64-linux-gnu/libpcre.so.3.13.3
Adding library-link /lib/x86_64-linux-gnu/libdl.so.2
Adding library /lib/x86_64-linux-gnu/libdl-2.27.so
Adding binary /sbin/logsave
Adding binary-link /sbin/fsck.ext4
Adding binary /sbin/e2fsck
Adding library-link /lib/x86_64-linux-gnu/libext2fs.so.2
Adding library /lib/x86_64-linux-gnu/libext2fs.so.2.4
Adding library-link /lib/x86_64-linux-gnu/libe2p.so.2
Adding library /lib/x86_64-linux-gnu/libe2p.so.2.3
Calling hook fuse
Adding binary /sbin/mount.fuse
Calling hook intel_microcode
intel-microcode: adding microcode for either all or selected Intel processor models
intel-microcode: using early initramfs microcode update mode...
/usr/share/initramfs-tools/hooks/intel_microcode: 152: /usr/share/initramfs-tools/hooks/intel_microcode: xargs: not found
E: intel-microcode: failed to create or prepend the early initramfs to the initramfs
Calling hook kmod
Calling hook plymouth
Adding binary /usr/lib/x86_64-linux-gnu/plymouth//script.so
Adding library-link /lib/x86_64-linux-gnu/libm.so.6
Adding library /lib/x86_64-linux-gnu/libm-2.27.so
Adding library-link /lib/x86_64-linux-gnu/libply.so.4
Adding library /lib/x86_64-linux-gnu/libply.so.4.0.0
Adding library-link /lib/x86_64-linux-gnu/libply-splash-core.so.4
Adding library /lib/x86_64-linux-gnu/libply-splash-core.so.4.0.0
Adding library-link /lib/x86_64-linux-gnu/libply-splash-graphics.so.4
Adding library /lib/x86_64-linux-gnu/libply-splash-graphics.so.4.0.0
Adding library-link /usr/lib/x86_64-linux-gnu/libpng16.so.16
Adding library /usr/lib/x86_64-linux-gnu/libpng16.so.16.34.0
Adding binary /usr/lib/x86_64-linux-gnu/plymouth//details.so
Adding binary /usr/lib/x86_64-linux-gnu/plymouth//label.so
Adding library-link /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0
Adding library /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0.4000.14
Adding library-link /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0
Adding library /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0.4000.14
Adding library-link /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
Adding library /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5600.4
Adding library-link /usr/lib/x86_64-linux-gnu/libcairo.so.2
Adding library /usr/lib/x86_64-linux-gnu/libcairo.so.2.11510.0
Adding library-link /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
Adding library /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.5600.4
Adding library-link /usr/lib/x86_64-linux-gnu/libfontconfig.so.1
Adding library /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.10.1
Adding library-link /usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0
Adding library /usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0.4000.14
Adding library-link /usr/lib/x86_64-linux-gnu/libfreetype.so.6
Adding library /usr/lib/x86_64-linux-gnu/libfreetype.so.6.15.0
Adding library-link /usr/lib/x86_64-linux-gnu/libthai.so.0
Adding library /usr/lib/x86_64-linux-gnu/libthai.so.0.3.0
Adding library-link /usr/lib/x86_64-linux-gnu/libffi.so.6
Adding library /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
Adding library-link /usr/lib/x86_64-linux-gnu/libpixman-1.so.0
Adding library /usr/lib/x86_64-linux-gnu/libpixman-1.so.0.34.0
Adding library-link /usr/lib/x86_64-linux-gnu/libxcb-shm.so.0
Adding library /usr/lib/x86_64-linux-gnu/libxcb-shm.so.0.0.0
Adding library-link /usr/lib/x86_64-linux-gnu/libxcb.so.1
Adding library /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
Adding library-link /usr/lib/x86_64-linux-gnu/libxcb-render.so.0
Adding library /usr/lib/x86_64-linux-gnu/libxcb-render.so.0.0.0
Adding library-link /usr/lib/x86_64-linux-gnu/libXrender.so.1
Adding library /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
Adding library-link /usr/lib/x86_64-linux-gnu/libX11.so.6
Adding library /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
Adding library-link /usr/lib/x86_64-linux-gnu/libXext.so.6
Adding library /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0
Adding library-link /lib/x86_64-linux-gnu/libexpat.so.1
Adding library /lib/x86_64-linux-gnu/libexpat.so.1.6.7
Adding library-link /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0
Adding library /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0.10702.0
Adding library-link /usr/lib/x86_64-linux-gnu/libdatrie.so.1
Adding library /usr/lib/x86_64-linux-gnu/libdatrie.so.1.3.3
Adding library-link /usr/lib/x86_64-linux-gnu/libXau.so.6
Adding library /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
Adding library-link /usr/lib/x86_64-linux-gnu/libXdmcp.so.6
Adding library /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
Adding library-link /usr/lib/x86_64-linux-gnu/libgraphite2.so.3
Adding library /usr/lib/x86_64-linux-gnu/libgraphite2.so.3.0.1
Adding library-link /lib/x86_64-linux-gnu/libbsd.so.0
Adding library /lib/x86_64-linux-gnu/libbsd.so.0.8.7
Adding binary /usr/lib/x86_64-linux-gnu/plymouth//ubuntu-text.so
Adding binary /bin/plymouth
Adding binary /sbin/plymouthd
Copying module directory kernel/drivers/gpu/drm
(excluding mga r128 savage sis tdfx via)
/usr/share/initramfs-tools/hooks/plymouth: 225: /usr/share/initramfs-tools/hooks/plymouth: find: not found
Adding binary /usr/lib/x86_64-linux-gnu/plymouth/renderers/frame-buffer.so
Adding binary /usr/lib/x86_64-linux-gnu/plymouth/renderers/drm.so
Adding library-link /usr/lib/x86_64-linux-gnu/libdrm.so.2
Adding library /usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0
Adding binary /lib/x86_64-linux-gnu/libnss_files-2.27.so
Adding binary-link /lib/x86_64-linux-gnu/libnss_files.so.2
Calling hook resume
Calling hook thermal
Calling hook udev
Adding binary /lib/systemd/systemd-udevd
Adding library-link /lib/x86_64-linux-gnu/libkmod.so.2
Adding library /lib/x86_64-linux-gnu/libkmod.so.2.3.2
Adding library-link /lib/x86_64-linux-gnu/libacl.so.1
Adding library /lib/x86_64-linux-gnu/libacl.so.1.1.0
Adding library-link /lib/x86_64-linux-gnu/libattr.so.1
Adding library /lib/x86_64-linux-gnu/libattr.so.1.1.0
Adding binary /bin/udevadm
/usr/share/initramfs-tools/hooks/udev: 25: /usr/share/initramfs-tools/hooks/udev: find: not found
E: /usr/share/initramfs-tools/hooks/udev failed with return 127.
Removing /boot/initrd.img-5.3.0-28-generic.dpkg-bak
update-initramfs: failed for /boot/initrd.img-5.3.0-28-generic with 127.
Odpowiedz
#2
0
Na innych jądrach dzieje się to samo?
Może stabilne 5.5.3, albo któreś ze starszych (4.15)?
Odpowiedz
#3
0
Podpowiedź jest w komunikacie błędu, powtarzająca się fraza:
Cytat:/usr/sbin/mkinitramfs: 225: /usr/sbin/mkinitramfs: find: not found
Linia 225 pliku /usr/sbin/mkinitramfs jest częścią pętli:
Kod:
# Copy in modules.builtin and modules.order (not generated by depmod)
for x in modules.builtin modules.order; do
    if [ -f "${MODULESDIR}/${x}" ]; then
        cp -p "${MODULESDIR}/${x}" "${DESTDIR}${MODULESDIR}/${x}"
    fi
done
Zmienna MODULESDIR wskazuje na katalog /lib/modules/$(uname -r)
Podejrzewam, że przyczyna leży w braku plików nagłówkowych do jądra.
Pokaż wynik ls -la /lib/modules/$(uname -r)
Zasady forum | Poradniki i najczęstsze pytania
A imię jego czterdzieści i cztery.

Odpowiedz
#4
0
(13-02-2020, 10:04)dedito napisał(a): Podpowiedź jest w komunikacie błędu, powtarzająca się fraza:
Cytat:/usr/sbin/mkinitramfs: 225: /usr/sbin/mkinitramfs: find: not found
Linia 225 pliku /usr/sbin/mkinitramfs jest częścią pętli:
Kod:
# Copy in modules.builtin and modules.order (not generated by depmod)
for x in modules.builtin modules.order; do
    if [ -f "${MODULESDIR}/${x}" ]; then
        cp -p "${MODULESDIR}/${x}" "${DESTDIR}${MODULESDIR}/${x}"
    fi
done
Zmienna MODULESDIR wskazuje na katalog /lib/modules/$(uname -r)
Podejrzewam, że przyczyna leży w braku plików nagłówkowych do jądra.
Pokaż wynik ls -la /lib/modules/$(uname -r)

Wynik 'ls -la /lib/modules/$(uname -r)'
Kod:
razem 5736
drwxr-xr-x  6 root root    4096 lut 12 22:10 .
drwxr-xr-x  4 root root    4096 lut 12 23:13 ..
lrwxrwxrwx  1 root root      39 sty 15 19:10 build -> /usr/src/linux-headers-5.3.0-28-generic
drwxr-xr-x  2 root root    4096 sty 15 19:10 initrd
drwxr-xr-x 17 root root    4096 sty 30 14:17 kernel
drwxr-xr-x  2 root root    4096 sty 30 14:22 misc
-rw-r--r--  1 root root 1371222 lut 12 22:10 modules.alias
-rw-r--r--  1 root root 1346674 lut 12 22:10 modules.alias.bin
-rw-r--r--  1 root root    7888 sty 15 19:10 modules.builtin
-rw-r--r--  1 root root    9964 lut 12 22:10 modules.builtin.bin
-rw-r--r--  1 root root  614687 lut 12 22:10 modules.dep
-rw-r--r--  1 root root  856568 lut 12 22:10 modules.dep.bin
-rw-r--r--  1 root root     353 lut 12 22:10 modules.devname
-rw-r--r--  1 root root  218435 sty 15 19:10 modules.order
-rw-r--r--  1 root root     830 lut 12 22:10 modules.softdep
-rw-r--r--  1 root root  633015 lut 12 22:10 modules.symbols
-rw-r--r--  1 root root  765021 lut 12 22:10 modules.symbols.bin
drwxr-xr-x  3 root root    4096 sty 30 14:17 vdso

Dodano po pewnym czasie:
(13-02-2020, 09:13)yahoob3 napisał(a): Na innych jądrach dzieje się to samo?
Może stabilne 5.5.3, albo któreś ze starszych (4.15)?

Zainstalowałem 4.15.0-76, ale system nie może wygenerować "initrd.img" dla tego jądra.
Kod:
sudo dpkg -l |grep 4.15.0-76
ii  linux-headers-4.15.0-76                           4.15.0-76.86                                    all          Header files related to Linux kernel version 4.15.0
ii  linux-headers-4.15.0-76-generic                   4.15.0-76.86                                    amd64        Linux kernel headers for version 4.15.0 on 64 bit x86 SMP
iF  linux-image-4.15.0-76-generic                     4.15.0-76.86                                    amd64        Signed kernel image generic
ii  linux-libc-dev:amd64                              4.15.0-76.86                                    amd64        Linux Kernel Headers for development
ii  linux-modules-4.15.0-76-generic                   4.15.0-76.86                                    amd64        Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
ii  linux-modules-extra-4.15.0-76-generic             4.15.0-76.86                                    amd64        Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
ii  linux-tools-common                                4.15.0-76.86                                    all          Linux kernel version specific tools for version 4.15.0

Kod:
ll /boot
razem 172644
drwxr-xr-x  3 root root     4096 lut 13 11:33 ./
drwxr-xr-x 24 root root     4096 lut 13 11:24 ../
-rw-r--r--  1 root root   217495 sty 17 14:59 config-4.15.0-76-generic
-rw-r--r--  1 root root   235811 gru 18 16:01 config-5.3.0-26-generic
-rw-r--r--  1 root root   235811 sty 15 19:10 config-5.3.0-28-generic
drwxr-xr-x  6 root root     4096 lut 12 22:10 grub/
-rw-r--r--  1 root root 67898459 sty 23 18:43 initrd.img-5.3.0-26-generic
-rw-r--r--  1 root root 67899238 sty 30 14:19 initrd.img-5.3.0-28-generic
-rw-r--r--  1 root root   182704 sty 28  2016 memtest86+.bin
-rw-r--r--  1 root root   184380 sty 28  2016 memtest86+.elf
-rw-r--r--  1 root root   184840 sty 28  2016 memtest86+_multiboot.bin
-rw-------  1 root root  4068355 sty 17 14:59 System.map-4.15.0-76-generic
-rw-------  1 root root  4487587 gru 18 16:01 System.map-5.3.0-26-generic
-rw-------  1 root root  4487587 sty 15 19:10 System.map-5.3.0-28-generic
-rw-------  1 root root  8367768 sty 17 15:27 vmlinuz-4.15.0-76-generic
-rw-------  1 root root  9146616 gru 18 16:20 vmlinuz-5.3.0-26-generic
-rw-------  1 root root  9146616 sty 15 22:28 vmlinuz-5.3.0-28-generic
Odpowiedz
#5
0
Pokaż apt policy linux-headers-5.3.0-28-generic
Zasady forum | Poradniki i najczęstsze pytania
A imię jego czterdzieści i cztery.

Odpowiedz
#6
0
(13-02-2020, 12:48)dedito napisał(a): Pokaż apt policy linux-headers-5.3.0-28-generic
Kod:
apt policy linux-headers-5.3.0-28-generic
linux-headers-5.3.0-28-generic:
  Zainstalowana: 5.3.0-28.30~18.04.1
  Kandydująca:   5.3.0-28.30~18.04.1
  Tabela wersji:
*** 5.3.0-28.30~18.04.1 500
        500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
        100 /var/lib/dpkg/status

A tak z ciekawości, jaką masz wersję 'initramfs-tools', u mnie to wygląda tak:
Kod:
apt list |grep initramfs-tools

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

initramfs-tools/bionic-updates,bionic-updates,now 0.130ubuntu3.9 all [zainstalowany]
initramfs-tools-bin/bionic-updates,now 0.130ubuntu3.9 amd64 [zainstalowany,automatycznie]
initramfs-tools-core/bionic-updates,bionic-updates,now 0.130ubuntu3.9 all [zainstalowany,automatycznie]
initramfs-tools-ubuntu-core/bionic,bionic 0.7.45 all
live-boot-initramfs-tools/bionic,bionic 1:20170623 all
Odpowiedz
#7
0
Ja mam Debiana, także to nie pomoże.
Zasady forum | Poradniki i najczęstsze pytania
A imię jego czterdzieści i cztery.

Odpowiedz


Skocz do:




Użytkownicy przeglądający ten wątek: 1 gości