depmod:エラー:無効なバージョンが渡されました。 uname

depmod:エラー:無効なバージョンが渡されました。 uname

次のエラーが発生します。

$ sudo dpkg --configure -a
Setting up initramfs-tools (0.122ubuntu8. 8) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-firmware (1.157.10) ...
update-initramfs: Generating /boot/initrd.img-uname
WARNING: missing /lib/modules/uname
Ensure all necessary drivers are built into the linux image!
depmod: ERROR: Bad version passed uname
dpkg: warning: version 'uname' has bad syntax: version number does not start with digit
depmod: ERROR: Bad version passed uname
E: No boot partition found !
run-parts: /etc/initramfs/post-update.d//zz-flash-touch-initrd exited with return code 1
dpkg: error processing package linux-firmware (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-generic-hwe-16.04:
 linux-image-generic-hwe-16.04 depends on linux-firmware; however:
  Package linux-firmware is not configured yet.

dpkg: error processing package linux-image-generic-hwe-16.04 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-hwe-16.04:
 linux-generic-hwe-16.04 depends on linux-image-generic-hwe-16.04 (= 4.8.0.52.23); however:
  Package linux-image-generic-hwe-16.04 is not configured yet.

dpkg: error processing package linux-generic-hwe-16.04 (--configure):
 dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.122ubuntu8.8) ...
update-initramfs: Generating /boot/initrd.img-uname
WARNING: missing /lib/modules/uname
Ensure all necessary drivers are built into the linux image!
depmod: ERROR: Bad version passed uname
dpkg: warning: version 'uname' has bad syntax: version number does not start with digit
depmod: ERROR: Bad version passed uname
E: No boot partition found !
run-parts: /etc/initramfs/post-update.d//zz-flash-touch-initrd exited with return code 1
dpkg: error processing package initramfs-tools (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 linux-firmware
 linux-image-generic-hwe-16.04
 linux-generic-hwe-16.04
 initramfs-tools

unameこれは、渡されるのではなく、uname -rアプリケーションが私のシステムの正しいカーネルバージョンを知らないようにするようです。それとも何か違うかもしれませんが…

現在、sudo aptを介してパッケージをインストール(または再インストール)することはできません。この問題に対する解決策を知っている人はいますか?

ベストアンサー1

私は私の問題に対する解決策を見つけました。この回答この質問では:「apt-get dist-upgrade」は、「depmod:エラー:無効なバージョンがunameを渡しました」というエラーとさまざまな警告を報告します。:

uname -r以下のフォームレポートにないすべてのアイテムを削除する必要があります/var/lib/initramfs-tools

おすすめ記事