What supposed i need to do when i face problem with installation command error

Hi, i’m new on Lubuntu, when i’m face a Command Error while install problem and idk what should i do…

do you guys know how to solve this problem?


command  <i>apt install -y --no-upgrade -o Acquire::gpgv::Options::=--ignore-time-conflict grub-efi-$(if grep -q 64 /sys/firmware/efi/fw_platform_size; then echo amd64-signed; else echo ia32; fi)</i> exit code 100.


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

Reading package lists...

Building dependency tree...

Reading state information...

The following additional packages will be installed:

efibootmgr grub-efi-amd64-bin

The following NEW packages will be installed:

efibootmgr grub-efi-amd64-bin grub-efi-amd64-signed

0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.

Need to get 0 B/3009 kB of archives.

After this operation, 17.6 MB of additional disk space will be used.

Get:1 cdrom://Lubuntu 22.04.3 LTS _Jammy Jellyfish_ - Release amd64 (20230807) jammy/main amd64 efibootmgr amd64 17-1ubuntu2 [29.8 kB]

Get:2 cdrom://Lubuntu 22.04.3 LTS _Jammy Jellyfish_ - Release amd64 (20230807) jammy/main amd64 grub-efi-amd64-bin amd64 2.06-2ubuntu14.1 [1591 kB]

Get:3 cdrom://Lubuntu 22.04.3 LTS _Jammy Jellyfish_ - Release amd64 (20230807) jammy/main amd64 grub-efi-amd64-signed amd64 1.187.3~22.04.1+2.06-2ubuntu14.1 [1388 kB]

dpkg-preconfigure: unable to re-open stdin: No such file or directory

E: Can not write log (Is /dev/pts mounted?) - posix_openpt (19: No such device)

Selecting previously unselected package efibootmgr.

(Reading database ... 254041 files and directories currently installed.)

Preparing to unpack .../efibootmgr_17-1ubuntu2_amd64.deb ...

Unpacking efibootmgr (17-1ubuntu2) ...

Selecting previously unselected package grub-efi-amd64-bin.

Preparing to unpack .../grub-efi-amd64-bin_2.06-2ubuntu14.1_amd64.deb ...

Unpacking grub-efi-amd64-bin (2.06-2ubuntu14.1) ...

Selecting previously unselected package grub-efi-amd64-signed.

Preparing to unpack .../grub-efi-amd64-signed_1.187.3~22.04.1+2.06-2ubuntu14.1_amd64.deb ...

Unpacking grub-efi-amd64-signed (1.187.3~22.04.1+2.06-2ubuntu14.1) ...

Setting up efibootmgr (17-1ubuntu2) ...

Setting up grub-efi-amd64-bin (2.06-2ubuntu14.1) ...

Setting up grub-efi-amd64-signed (1.187.3~22.04.1+2.06-2ubuntu14.1) ...

Trying to migrate /boot/efi into esp config

Installing grub to /boot/efi.

Installing for x86_64-efi platform.

grub-install: warning: Cannot delete EFI variable Boot0002.

grub-install: warning: efivarfs_del_variable: unlink failed: Invalid argument.

grub-install: warning: efi_del_variable: ops->del_variable() failed: Invalid argument.

grub-install: error: failed to register the EFI boot entry: Invalid argument.

Unknown terminal: qterminal

Check the TERM environment variable.

Also make sure that the terminal is defined in the terminfo database.

Alternatively, set the TERMCAP environment variable to the desired

termcap entry.

debconf: whiptail output the above errors, giving up!

dpkg: error processing package grub-efi-amd64-signed (--configure):

installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 255

Processing triggers for man-db (2.10.2-1) ...

Errors were encountered while processing:


E: Sub-process /usr/bin/dpkg returned an error code (1)

this is a result of sudo parted --list:

Model: ATA WDC WD5000LPCX-2 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End    Size    File system     Name                          Flags
 1      1049kB  316MB  315MB   ntfs            Basic data partition          hidden, diag
 2      316MB   420MB  105MB   fat32           EFI system partition          boot, esp
 3      420MB   555MB  134MB                   Microsoft reserved partition  msftres
 4      555MB   196GB  196GB   ntfs                                          msftdata
 5      196GB   197GB  528MB   ntfs                                          hidden, diag
 9      197GB   198GB  1024MB  fat32                                         boot, esp
 6      198GB   198GB  105MB   fat32           EFI system partition          boot, esp
10      198GB   228GB  30.4GB  ext4
11      228GB   231GB  2145MB  linux-swap(v1)                                swap
12      231GB   236GB  5243MB  ext4
13      236GB   320GB  84.4GB  ext4
 7      320GB   323GB  2460MB  fat32                                         boot, esp
 8      323GB   500GB  177GB   ntfs            Basic data partition          msftdata

Model: Kingston DataTraveler G2 (scsi)
Disk /dev/sdb: 8011MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  8011MB  8010MB  primary  fat32        boot, lba

Model: Unknown (unknown)
Disk /dev/zram0: 2005MB
Sector size (logical/physical): 4096B/4096B
Partition Table: loop
Disk Flags: 

Number  Start  End     Size    File system     Flags
 1      0.00B  2005MB  2005MB  linux-swap(v1)

if necessary, this is a result of sudo efibootmgr -v :

BootCurrent: 0009
Timeout: 1 seconds
BootOrder: 0009,0004,0003,0005,0007,0000,0001,0006,0002,0008
Boot0000* Windows Boot Manager  HD(2,GPT,477edeca-ded0-4a1b-a544-8435b67e81df,0x96800,0x32000)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.}...9................
Boot0001* ubuntu        HD(2,GPT,477edeca-ded0-4a1b-a544-8435b67e81df,0x96800,0x32000)/File(\EFI\UBUNTU\GRUBX64.EFI)..BO
Boot0002* ubuntu        HD(7,GPT,34995a61-d746-4d44-bcb0-80726fc62f9a,0x25483000,0x494fff)/File(\EFI\UBUNTU\GRUBX64.EFI)..BO
Boot0003* UEFI OS       HD(7,GPT,34995a61-d746-4d44-bcb0-80726fc62f9a,0x25483000,0x494fff)/File(\EFI\BOOT\BOOTX64.EFI)..BO
Boot0004* ubuntu        HD(7,GPT,34995a61-d746-4d44-bcb0-80726fc62f9a,0x25483000,0x494fff)/File(\EFI\UBUNTU\SHIMX64.EFI)
Boot0005* debian        HD(7,GPT,34995a61-d746-4d44-bcb0-80726fc62f9a,0x25483000,0x494fff)/File(\EFI\DEBIAN\SHIMX64.EFI)
Boot0006* debian        HD(7,GPT,34995a61-d746-4d44-bcb0-80726fc62f9a,0x25483000,0x494fff)/File(\EFI\DEBIAN\GRUBX64.EFI)..BO
Boot0007* ubuntu        HD(9,GPT,ad6a17b1-ae17-c34f-8441-5ebf8edae5bc,0x16eb7000,0x1e8800)/File(\EFI\UBUNTU\GRUBX64.EFI)..BO
Boot0008* UEFI OS       HD(9,GPT,ad6a17b1-ae17-c34f-8441-5ebf8edae5bc,0x16eb7000,0x1e8800)/File(\EFI\BOOT\BOOTX64.EFI)..BO
Boot0009* UEFI: KingstonDataTraveler G2 PMAP, Partition 1       PciRoot(0x0)/Pci(0x1d,0x0)/USB(0,0)/USB(1,0)/HD(1,MBR,0x0,0x800,0xeeb800)..BO

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.