我是ubuntu和编程的新手。我正在尝试安装nodejs。 我跑了
sudo apt-get install -y nodejs
在ubuntu的终端中。我缺少固件警告。我也收到一个错误,指出设备上没有剩余空间。我尝试阅读该错误,并尝试手动删除旧的内核版本。但是我仍然遇到同样的错误。我不知道该如何处理这个问题。任何指导将不胜感激。
下面是我运行命令后的终端。
dell@dell:~$ sudo apt-get install -y nodejs
[sudo] password for dell:
Reading package lists... Done
Building dependency tree
Reading state information... Done
nodejs is already the newest version (10.14.2-1nodesource1).
0 upgraded, 0 newly installed, 0 to remove and 257 not upgraded.
5 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up initramfs-tools (0.122ubuntu8.10) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-firmware (1.157.20) ...
update-initramfs: Generating /boot/initrd.img-4.18.1
W: Possible missing firmware /lib/firmware/i915/skl_dmc_ver1_27.bin
for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_dmc_ver1_04.bin
for module i915
W: Possible missing firmware /lib/firmware/i915/cnl_dmc_ver1_07.bin
for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_guc_ver9_39.bin
for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_guc_ver9_29.bin
for module i915
W: Possible missing firmware /lib/firmware/i915/skl_guc_ver9_33.bin
for module i915
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.18.1 with 1.
dpkg: error processing package linux-firmware (--configure):
subprocess installed post-installation script returned error exit
status 1
No apport report written because the error message indicates its a
followup error from a previous failure.
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.15.0.42.63); 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
dpkg: dependency problems prevent configuration of linux-signed-
generic-hwe-16.04:
linux-signed-generic-hwe-16.04 depends on linux-generic-hwe-16.04;
however:
Package linux-generic-hwe-16.04 is not configured yet.
dpkg: error processing package linux-signed-generic-hwe-16.04 (--
configure):
dependency problems - leaving unconfigured
PrNo apport report written because the error message indicates its a
followup error from a previous failure.
No apport report written because MaxReports
is reached already
ocessing triggers for initramfs-tools (0.122ubuntu8.10) ...
update-initramfs: Generating /boot/initrd.img-4.18.1
W: Possible missing firmware /lib/firmware/i915/skl_dmc_ver1_27.bin
for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_dmc_ver1_04.bin
for module i915
W: Possible missing firmware /lib/firmware/i915/cnl_dmc_ver1_07.bin
for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_guc_ver9_39.bin
for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_guc_ver9_29.bin
for module i915
W: Possible missing firmware /lib/firmware/i915/skl_guc_ver9_33.bin
for module i915
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.18.1 with 1.
dpkg: error processing package initramfs-tools (--configure):
subprocess installed post-installation script returned error exit
status 1
No apport report written because MaxReports is reached already
Errors
were encountered while processing:
linux-firmware
linux-image-generic-hwe-16.04
linux-generic-hwe-16.04
linux-signed-generic-hwe-16.04
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案 0 :(得分:0)
运行此:
node -v
如果显示版本,则表示您已经安装了最新版本的节点。原因是从您的日志中得出的:
nodejs is already the newest version (10.14.2-1nodesource1).
0 upgraded, 0 newly installed, 0 to remove and 257 not upgraded.
5 not fully installed or removed.
答案 1 :(得分:0)
您的日志记录表明您的磁盘空间不足:
gzip: stdout: No space left on device
尝试删除一些文件,然后重试
您可以尝试命令
df -h
列出分区上的可用空间