Unable to reinstall Grub bootloader

1. Your Parrot information

  • OS version: run cat /etc/*release
    DISTRIB_ID=Parrot DISTRIB_RELEASE=4.10 DISTRIB_CODENAME=rolling DISTRIB_DESCRIPTION="Parrot 4.10" PRETTY_NAME="Parrot GNU/Linux 4.10" NAME="Parrot GNU/Linux" ID=parrot ID_LIKE=debian VERSION="4.10" VERSION_ID="4.10" HOME_URL="https://www.parrotsec.org/" SUPPORT_URL="https://community.parrotsec.org/" BUG_REPORT_URL="https://community.parrotsec.org/
  • Kernel version: run uname -a
    ```
    Linux parrot 5.7.0-2parrot2-amd64 #1 SMP Debian 5.7.10-1parrot2 (2020-07-31) x86_64

GNU/Linux
```

Or if you can’t do it, please tell us ISO version you downloaded.

** ISO information **

Version: 4.9
Desktop Environment: Mate
Edition: Security

2. If you have this problem after fresh installation:

  1. How did you create USB bootable?

    • Software was used to make USB
    • Steps of making USB bootable

Installed Parrot OS like many months ago from bootable USB > Desktop install icon and follow the prompts

  1. How did you install OS?
    • Debian installer

3. If your hardware doesn’t work: wifi doesn’t show, graphic issue:

Hardware information

- Your device name or output of `lspci`
```
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers (rev 08)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 515 (rev 07)
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 08)
00:05.0 Multimedia controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Imaging Unit (rev 01)
00:13.0 Non-VGA unclassified device: Intel Corporation Sunrise Point-LP Integrated Sensor Hub (rev 21)
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
00:14.3 Multimedia controller: Intel Corporation CSI-2 Host Controller (rev 01)
00:15.0 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #0 (rev 21)
00:15.2 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #2 (rev 21)
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
00:16.3 Serial controller: Intel Corporation Sunrise Point-LP Active Management Technology - SOL (rev 21)
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #1 (rev f1)
00:1c.4 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #5 (rev f1)
00:1d.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #9 (rev f1)
00:1e.0 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO UART Controller #0 (rev 21)
00:1e.6 SD Host controller: Intel Corporation Sunrise Point-LP Secure Digital IO Controller (rev 21)
00:1f.0 ISA bridge: Intel Corporation LPC/eSPI Controller (rev 21)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
3a:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
3b:00.0 Network controller: Intel Corporation Wireless 8260 (rev 3a)

```
- Did you try searching info about this issue on search engine? Please write **No** or any URL to this issue bellow

Yes

4. How did you get this error? Are there any steps to procedure it?

1. I installed this
2. I ran this new software
3. It shows me this or that

Removed my SSD and replaced it with a Windows 10 SSD so I can update my bios, after updating the bios, I reconnected the parrot SSD. It does not boot to GRUB loader anymore.

nvme0n1p1 is my efi system partition, type is vFAT. nvme0n1p2 contains root and everything else, type is BTRFS.

I tried to mount p1 to /boot , /boot/efi, /mnt/boot/efi on different occasions.
I tried to mount p2 to /mnt.

Whenever I try to mount or bind, p1 and p2 will automatically be mounted to /mnt/@ and /mnt/@home.

i tried to do a grub-install command (after chrooting) with --target x86_x64-efi, with all combinations of --efi-directory and --root-directory, it would often come up asking if /boot has been mounted, it cant find an efi system (even though it is mapped as is.)

Every time I tried to chroot to /mnt, it would say it is not added to /bin/bash. chroot /mnt /bin/bash would not work too. I have to chroot /mnt/@ then i would be able to access as root.

5. Error log or screenshot

    ┌─[user@parrot]─[~]
    └──╼ $sudo fdisk -l
    Disk /dev/nvme0n1: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
    Disk model: Samsung SSD 970 EVO Plus 1TB            
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: CD3DDF53-AE93-2644-90A5-A83A13E83973

    Device          Start        End    Sectors   Size Type
    /dev/nvme0n1p1   4096     618495     614400   300M EFI System
    /dev/nvme0n1p2 618496 1953520064 1952901569 931.2G Linux filesystem


    Disk /dev/sda: 28.65 GiB, 30765219840 bytes, 60088320 sectors
    Disk model:  SanDisk 3.2Gen1
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: dos
    Disk identifier: 0x114c4603

    Device     Boot   Start     End Sectors  Size Id Type
    /dev/sda1  *         64 8424107 8424044    4G 17 Hidden HPFS/NTFS
    /dev/sda2       8424108 8425579    1472  736K  1 FAT12


    Disk /dev/loop0: 3.75 GiB, 4024725504 bytes, 7860792 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    ┌─[user@parrot]─[~]
    └──╼ $lsblk
    NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
    loop0         7:0    0   3.7G  1 loop /usr/lib/live/mount/rootfs/filesystem.squashfs
    sda           8:0    1  28.7G  0 disk 
    ├─sda1        8:1    1     4G  0 part /usr/lib/live/mount/medium
    └─sda2        8:2    1   736K  0 part 
    nvme0n1     259:0    0 931.5G  0 disk 
    ├─nvme0n1p1 259:1    0   300M  0 part /boot
    └─nvme0n1p2 259:2    0 931.2G  0 part /mnt
    ┌─[user@parrot]─[~]
    └──╼ $cat /mnt/@/etc/fstab
    # /etc/fstab: static file system information.
    #
    # Use 'blkid' to print the universally unique identifier for a device; this may
    # be used with UUID= as a more robust way to name devices that works even if
    # disks are added and removed. See fstab(5).
    #
    # <file system>             <mount point>  <type>  <options>  <dump>  <pass>
    UUID=B39A-1643                            /boot/efi      vfat    defaults,noatime 0 2
    UUID=f5fc61d9-b013-4534-8d1b-96ed74d4e382 /              btrfs   subvol=@,defaults,noatime,nodiratime,nodatacow,space_cache,autodefrag 0 1
    UUID=f5fc61d9-b013-4534-8d1b-96ed74d4e382 /home          btrfs   subvol=@home,defaults,noatime,nodiratime,nodatacow,space_cache,autodefrag 0 2

6. If you have any idea or suggestion about this issue please tell us

** Your information **

Tried to follow the below guide and a few others but they arent specific enough as I am dealing with a x86_64 image and a SSD.

I even tried to post on unix stackexchange but it is not fruitful yet. There are a lot of posts about other linux distros and different scenarios, none of them works in my context.

If you are having suggestion for our OS, please write it bellow

1. Current Parrot version and Parrot version you want it has

2. Its section and how it affects our system

  • Pentesting / Forensic / Malware hunting / Privacy protection / …
  • It is: AppArmor profile / software / system service / kernel module…
  • when user runs this / start that, it can do…

3. Any other information about this idea

did you try this

my file system is not encrypted with LUKS though…

Quickest way I do it if any problems is create supergrub2 Usb, boot from it then once in Parrot OS, load up synaptic package manager search Grub select the 3 files for re-installation and apply when finished reboot always all good for me :slight_smile:

When you install anything in live mode, it will be installed in live mode only. That is why the tutorial always needs chroot.

then skip the LUKS

None of them work unfortunately.

That article i know what its talking about. I have another device with a completely different issue. Root partition is encrypted with luks. This parrot os issue is different. Yes i did try to chroot into /mnt/@ but i cant complete the grub-install command. It thinks that /boot is not mounted when it is. The strange bit is that when i chroot into mnt@, in /boot, i can see theres the vmlinuz, initramfs and device map files but when im not chroot in, the boot folder seems fairly empty. There is only a grubx64.efi in efi/parrot/. Now this is amiss. The other project i have is blackarch and when i mount the boot partition, i was able to install a linux package and that created vmlinuz and those image files. I did try to install intel microcode and even grub install works perfectly in its chroot /mnt.

Here is what I have in my /boot, with and without chroot. any more details of files or directories, please let me know.

┌─[user@parrot]─[~]
└──╼ $tree /boot
/boot
├── EFI
│   ├── boot
│   ├── GRUB
│   └── Parrot
│       └── grubx64.efi
└── grub
    └── unicode.pf2

5 directories, 2 files
┌─[user@parrot]─[~]
└──╼ $sudo chroot /mnt/@
┌─[root@parrot]─[/]
└──╼ #tree /boot
/boot
├── config-5.10.0-3parrot1-amd64
├── config-5.10.0-5parrot1-amd64
├── efi
│   └── EFI
│       └── Parrot
│           └── grub
├── grub
│   ├── fonts
│   │   └── unicode.pf2
│   ├── grub.cfg
│   ├── grubenv
│   ├── i386-pc
│   ├── locale
│   │   ├── ast.mo
│   │   ├── ca.mo
│   │   ├── da.mo
│   │   ├── de_CH.mo
│   │   ├── de@hebrew.mo
│   │   ├── de.mo
│   │   ├── en@arabic.mo
│   │   ├── en@cyrillic.mo
│   │   ├── en@greek.mo
│   │   ├── en@hebrew.mo
│   │   ├── en@piglatin.mo
│   │   ├── en@quot.mo
│   │   ├── eo.mo
│   │   ├── es.mo
│   │   ├── fi.mo
│   │   ├── fr.mo
│   │   ├── gl.mo
│   │   ├── hr.mo
│   │   ├── hu.mo
│   │   ├── id.mo
│   │   ├── it.mo
│   │   ├── ja.mo
│   │   ├── ko.mo
│   │   ├── lt.mo
│   │   ├── nb.mo
│   │   ├── nl.mo
│   │   ├── pa.mo
│   │   ├── pl.mo
│   │   ├── pt_BR.mo
│   │   ├── pt.mo
│   │   ├── ro.mo
│   │   ├── ru.mo
│   │   ├── sl.mo
│   │   ├── sr.mo
│   │   ├── sv.mo
│   │   ├── tr.mo
│   │   ├── uk.mo
│   │   ├── vi.mo
│   │   ├── zh_CN.mo
│   │   └── zh_TW.mo
│   ├── unicode.pf2
│   └── x86_64-efi
│       ├── acpi.mod
│       ├── adler32.mod
│       ├── affs.mod
│       ├── afs.mod
│       ├── ahci.mod
│       ├── all_video.mod
│       ├── aout.mod
│       ├── appleldr.mod
│       ├── archelp.mod
│       ├── ata.mod
│       ├── at_keyboard.mod
│       ├── backtrace.mod
│       ├── bfs.mod
│       ├── bitmap.mod
│       ├── bitmap_scale.mod
│       ├── blocklist.mod
│       ├── boot.mod
│       ├── bsd.mod
│       ├── bswap_test.mod
│       ├── btrfs.mod
│       ├── bufio.mod
│       ├── cat.mod
│       ├── cbfs.mod
│       ├── cbls.mod
│       ├── cbmemc.mod
│       ├── cbtable.mod
│       ├── cbtime.mod
│       ├── chain.mod
│       ├── cmdline_cat_test.mod
│       ├── cmp.mod
│       ├── cmp_test.mod
│       ├── command.lst
│       ├── configfile.mod
│       ├── core.efi
│       ├── cpio_be.mod
│       ├── cpio.mod
│       ├── cpuid.mod
│       ├── crc64.mod
│       ├── cryptodisk.mod
│       ├── crypto.lst
│       ├── crypto.mod
│       ├── cs5536.mod
│       ├── ctz_test.mod
│       ├── datehook.mod
│       ├── date.mod
│       ├── datetime.mod
│       ├── diskfilter.mod
│       ├── disk.mod
│       ├── div.mod
│       ├── div_test.mod
│       ├── dm_nv.mod
│       ├── echo.mod
│       ├── efifwsetup.mod
│       ├── efi_gop.mod
│       ├── efinet.mod
│       ├── efi_uga.mod
│       ├── ehci.mod
│       ├── elf.mod
│       ├── eval.mod
│       ├── exfat.mod
│       ├── exfctest.mod
│       ├── ext2.mod
│       ├── extcmd.mod
│       ├── f2fs.mod
│       ├── fat.mod
│       ├── file.mod
│       ├── fixvideo.mod
│       ├── font.mod
│       ├── fshelp.mod
│       ├── fs.lst
│       ├── functional_test.mod
│       ├── gcry_arcfour.mod
│       ├── gcry_blowfish.mod
│       ├── gcry_camellia.mod
│       ├── gcry_cast5.mod
│       ├── gcry_crc.mod
│       ├── gcry_des.mod
│       ├── gcry_dsa.mod
│       ├── gcry_idea.mod
│       ├── gcry_md4.mod
│       ├── gcry_md5.mod
│       ├── gcry_rfc2268.mod
│       ├── gcry_rijndael.mod
│       ├── gcry_rmd160.mod
│       ├── gcry_rsa.mod
│       ├── gcry_seed.mod
│       ├── gcry_serpent.mod
│       ├── gcry_sha1.mod
│       ├── gcry_sha256.mod
│       ├── gcry_sha512.mod
│       ├── gcry_tiger.mod
│       ├── gcry_twofish.mod
│       ├── gcry_whirlpool.mod
│       ├── geli.mod
│       ├── gettext.mod
│       ├── gfxmenu.mod
│       ├── gfxterm_background.mod
│       ├── gfxterm_menu.mod
│       ├── gfxterm.mod
│       ├── gptsync.mod
│       ├── grub.efi
│       ├── gzio.mod
│       ├── halt.mod
│       ├── hashsum.mod
│       ├── hdparm.mod
│       ├── hello.mod
│       ├── help.mod
│       ├── hexdump.mod
│       ├── hfs.mod
│       ├── hfspluscomp.mod
│       ├── hfsplus.mod
│       ├── http.mod
│       ├── iorw.mod
│       ├── iso9660.mod
│       ├── jfs.mod
│       ├── jpeg.mod
│       ├── keylayouts.mod
│       ├── keystatus.mod
│       ├── ldm.mod
│       ├── legacycfg.mod
│       ├── legacy_password_test.mod
│       ├── linux16.mod
│       ├── linuxefi.mod
│       ├── linux.mod
│       ├── loadbios.mod
│       ├── loadenv.mod
│       ├── loopback.mod
│       ├── lsacpi.mod
│       ├── lsefimmap.mod
│       ├── lsefi.mod
│       ├── lsefisystab.mod
│       ├── lsmmap.mod
│       ├── ls.mod
│       ├── lspci.mod
│       ├── lssal.mod
│       ├── luks.mod
│       ├── lvm.mod
│       ├── lzopio.mod
│       ├── macbless.mod
│       ├── macho.mod
│       ├── mdraid09_be.mod
│       ├── mdraid09.mod
│       ├── mdraid1x.mod
│       ├── memdisk.mod
│       ├── memrw.mod
│       ├── minicmd.mod
│       ├── minix2_be.mod
│       ├── minix2.mod
│       ├── minix3_be.mod
│       ├── minix3.mod
│       ├── minix_be.mod
│       ├── minix.mod
│       ├── mmap.mod
│       ├── moddep.lst
│       ├── modinfo.sh
│       ├── morse.mod
│       ├── mpi.mod
│       ├── msdospart.mod
│       ├── mul_test.mod
│       ├── multiboot2.mod
│       ├── multiboot.mod
│       ├── nativedisk.mod
│       ├── net.mod
│       ├── newc.mod
│       ├── nilfs2.mod
│       ├── normal.mod
│       ├── ntfscomp.mod
│       ├── ntfs.mod
│       ├── odc.mod
│       ├── offsetio.mod
│       ├── ohci.mod
│       ├── part_acorn.mod
│       ├── part_amiga.mod
│       ├── part_apple.mod
│       ├── part_bsd.mod
│       ├── part_dfly.mod
│       ├── part_dvh.mod
│       ├── part_gpt.mod
│       ├── partmap.lst
│       ├── part_msdos.mod
│       ├── part_plan.mod
│       ├── part_sun.mod
│       ├── part_sunpc.mod
│       ├── parttool.lst
│       ├── parttool.mod
│       ├── password.mod
│       ├── password_pbkdf2.mod
│       ├── pata.mod
│       ├── pbkdf2.mod
│       ├── pbkdf2_test.mod
│       ├── pcidump.mod
│       ├── pgp.mod
│       ├── play.mod
│       ├── png.mod
│       ├── priority_queue.mod
│       ├── probe.mod
│       ├── procfs.mod
│       ├── progress.mod
│       ├── raid5rec.mod
│       ├── raid6rec.mod
│       ├── random.mod
│       ├── rdmsr.mod
│       ├── read.mod
│       ├── reboot.mod
│       ├── regexp.mod
│       ├── reiserfs.mod
│       ├── relocator.mod
│       ├── romfs.mod
│       ├── scsi.mod
│       ├── search_fs_file.mod
│       ├── search_fs_uuid.mod
│       ├── search_label.mod
│       ├── search.mod
│       ├── serial.mod
│       ├── setjmp.mod
│       ├── setjmp_test.mod
│       ├── setpci.mod
│       ├── sfs.mod
│       ├── shift_test.mod
│       ├── shim_lock.mod
│       ├── signature_test.mod
│       ├── sleep.mod
│       ├── sleep_test.mod
│       ├── spkmodem.mod
│       ├── squash4.mod
│       ├── strtoull_test.mod
│       ├── syslinuxcfg.mod
│       ├── tar.mod
│       ├── terminal.lst
│       ├── terminal.mod
│       ├── terminfo.mod
│       ├── test_blockarg.mod
│       ├── testload.mod
│       ├── test.mod
│       ├── testspeed.mod
│       ├── tftp.mod
│       ├── tga.mod
│       ├── time.mod
│       ├── tpm.mod
│       ├── trig.mod
│       ├── tr.mod
│       ├── true.mod
│       ├── udf.mod
│       ├── ufs1_be.mod
│       ├── ufs1.mod
│       ├── ufs2.mod
│       ├── uhci.mod
│       ├── usb_keyboard.mod
│       ├── usb.mod
│       ├── usbms.mod
│       ├── usbserial_common.mod
│       ├── usbserial_ftdi.mod
│       ├── usbserial_pl2303.mod
│       ├── usbserial_usbdebug.mod
│       ├── usbtest.mod
│       ├── video_bochs.mod
│       ├── video_cirrus.mod
│       ├── video_colors.mod
│       ├── video_fb.mod
│       ├── videoinfo.mod
│       ├── video.lst
│       ├── video.mod
│       ├── videotest_checksum.mod
│       ├── videotest.mod
│       ├── wrmsr.mod
│       ├── xfs.mod
│       ├── xnu.mod
│       ├── xnu_uuid.mod
│       ├── xnu_uuid_test.mod
│       ├── xzio.mod
│       ├── zfscrypt.mod
│       ├── zfsinfo.mod
│       ├── zfs.mod
│       └── zstd.mod
├── initrd.img-5.10.0-3parrot1-amd64
├── initrd.img-5.10.0-5parrot1-amd64
├── System.map-5.10.0-3parrot1-amd64
├── System.map-5.10.0-5parrot1-amd64
├── vmlinuz-5.10.0-3parrot1-amd64
└── vmlinuz-5.10.0-5parrot1-amd64

9 directories, 326 files

Like I said it works for me the few times I tried it :slightly_smiling_face:

@dmknght i really need some help with getting my parrot os to show the grub again. I have spent a week trying to fix it. can you please message me directly and help me out?

The kernel files are still there but i just could not apt get anything because it thinks /dev/pts is not mounted and could not find the EFI directory. The EFI directory does map to /mnt/boot but the ssd hard drive automatically maps it to /mnt/@/boot.

I also tried to follow this guide but i feel there are some things I am not getting, basically I dont know what I should do next.
https://docs.parrotlinux.org/trbl/custom-kernel/
Also in the first apt install statement, I chroot into mnt and parrot does not understand what is unxz.

Thanks a lot.

Sorry i was busy working on 4.11 release.

I believe that is BTRFS. And if you read the tut, you can see i used path @ for the BTRFS for SSD.

The command mount with flag --bind is for this. It would be nice if you send all commands you used so i can understand it more. I can’t guess something happened on other user’s machine

@dmknght i might be looking at the wrong tut, can you please send me the link. sorry for being a pain…
and i will also try again all the steps and send you a copy to see. :slight_smile:

Here you go, i managed to mount and bind the directories but i still could not reinstall that image.

I did a sudo mount /dev/nvme0n1p2 /mnt
and a sudo mount /dev/nvme0n1p1 /mnt/boot
without any errors

┌─[✗]─[user@parrot]─[~]
└──╼ $sudo mount --bind /dev /mnt/@/dev && sudo mount --bind /dev/pts /mnt/@/dev/pts && sudo mount --bind /sys /mnt/@/sys && sudo mount --bind /proc /mnt/@/proc && sudo mount --bind /run /mnt/@/run
┌─[user@parrot]─[~]
└──╼ $lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0         7:0    0   3.7G  1 loop /usr/lib/live/mount/rootfs/filesystem.squashfs
sda           8:0    1  28.7G  0 disk 
├─sda1        8:1    1     4G  0 part /usr/lib/live/mount/medium
└─sda2        8:2    1   736K  0 part 
nvme0n1     259:0    0 931.5G  0 disk 
├─nvme0n1p1 259:1    0   300M  0 part /mnt/boot
└─nvme0n1p2 259:2    0 931.2G  0 part /mnt

┌─[✗]─[root@parrot]─[/]
└──╼ #sudo apt install linux-image-amd64 --reinstall 
sudo: unable to resolve host parrot: Name or service not known
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  ace-voip arachni atftpd axel cdpsnarf cgdb cgpt cookie-cadger curlftpfs dotdotpwn
  efibootmgr exe2hexbat expect flasm freeradius freeradius-common freeradius-config
  freeradius-utils ftp grub-efi-amd64-bin grub-pc-bin httprint httrack ident-user-enum
  ifenslave jsql kayak libbotan-2-12 libcapstone3 libclass-load-perl libclass-load-xs-perl
  libclass-tiny-perl libdbi-perl libdevel-globaldestruction-perl libdevel-overloadinfo-perl
  libdevel-partialdump-perl libdist-checkconflicts-perl libfreeradius3 libhivex-bin
  libhivex0 libhttrack2 libmodule-runtime-conflicts-perl libmoose-perl libnet-ident-perl
  libnet-tftp-perl libpackage-deprecationmanager-perl linux-headers-5.9.0-2parrot1-common
  linux-kbuild-5.9 memdump msfpc ncurses-hexedit netwag netwox nipper-ng oclgausscrack
  parrot-meta-all parrot-meta-automotive parrot-meta-forensics parrot-meta-full
  parrot-meta-gpu parrot-meta-pwtools parrot-meta-rfid parrot-meta-voip parrot-meta-web
  parrot-meta-wireless perl-tk php php-mysql php-pgsql php7.4 php7.4-mysql php7.4-pgsql
  python-capstone python-faraday python3-crcelk redshift redshift-gtk redsocks sakis3g
  sendemail suckless-tools tcl-expect teamsploit termineter tftp tftpd32 tnscmd10g uniscan
  vboot-kernel-utils vboot-utils webscarab xtightvncviewer
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  linux-image-5.9.0-2parrot1-amd64
0 upgraded, 0 newly installed, 1 reinstalled, 1 to remove and 2 not upgraded.
3 not fully installed or removed.
After this operation, 286 MB disk space will be freed.
Do you want to continue? [Y/n] y
E: Internal Error, No file name for linux-image-amd64:amd64
┌─[✗]─[root@parrot]─[/]
└──╼ #sudo apt install linux-image-5.9.0-2parrot1-amd64 --reinstall 
sudo: unable to resolve host parrot: Name or service not known
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  ace-voip arachni atftpd axel cdpsnarf cgdb cgpt cookie-cadger curlftpfs dotdotpwn
  efibootmgr exe2hexbat expect flasm freeradius freeradius-common freeradius-config
  freeradius-utils ftp grub-efi-amd64-bin grub-pc-bin httprint httrack ident-user-enum
  ifenslave jsql kayak libbotan-2-12 libcapstone3 libclass-load-perl libclass-load-xs-perl
  libclass-tiny-perl libdbi-perl libdevel-globaldestruction-perl libdevel-overloadinfo-perl
  libdevel-partialdump-perl libdist-checkconflicts-perl libfreeradius3 libhivex-bin
  libhivex0 libhttrack2 libmodule-runtime-conflicts-perl libmoose-perl libnet-ident-perl
  libnet-tftp-perl libpackage-deprecationmanager-perl linux-headers-5.9.0-2parrot1-common
  linux-kbuild-5.9 memdump msfpc ncurses-hexedit netwag netwox nipper-ng oclgausscrack
  parrot-meta-all parrot-meta-automotive parrot-meta-forensics parrot-meta-full
  parrot-meta-gpu parrot-meta-pwtools parrot-meta-rfid parrot-meta-voip parrot-meta-web
  parrot-meta-wireless perl-tk php php-mysql php-pgsql php7.4 php7.4-mysql php7.4-pgsql
  python-capstone python-faraday python3-crcelk redshift redshift-gtk redsocks sakis3g
  sendemail suckless-tools tcl-expect teamsploit termineter tftp tftpd32 tnscmd10g uniscan
  vboot-kernel-utils vboot-utils webscarab xtightvncviewer
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 2 not upgraded.
3 not fully installed or removed.
Need to get 0 B/50.1 MB of archives.
After this operation, 0 B of additional disk space will be used.
E: Can not write log (Is /dev/pts mounted?) - posix_openpt (19: No such device)
(Reading database ... 624851 files and directories currently installed.)
Preparing to unpack .../linux-image-5.9.0-2parrot1-amd64_5.9.6-2parrot1_amd64.deb ...
Unpacking linux-image-5.9.0-2parrot1-amd64 (5.9.6-2parrot1) over (5.9.6-2parrot1) ...
Setting up linux-image-5.10.0-5parrot1-amd64 (5.10.24-5parrot1) ...
/etc/kernel/postinst.d/dkms:
dkms: running auto installation service for kernel 5.10.0-5parrot1-amd64:.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.10.0-5parrot1-amd64
cryptsetup: WARNING: Couldn't determine root device
/etc/kernel/postinst.d/zz-update-grub:
/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
dpkg: error processing package linux-image-5.10.0-5parrot1-amd64 (--configure):
 installed linux-image-5.10.0-5parrot1-amd64 package post-installation script subprocess retur
ned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-amd64:
 linux-image-amd64 depends on linux-image-5.10.0-5parrot1-amd64 (= 5.10.24-5parrot1); however:
  Package linux-image-5.10.0-5parrot1-amd64 is not configured yet.

dpkg: error processing package linux-image-amd64 (--configure):
 dependency problems - leaving unconfigured
Setting up linux-image-5.9.0-2parrot1-amd64 (5.9.6-2parrot1) ...
/etc/kernel/postinst.d/dkms:
dkms: running auto installation service for kernel 5.9.0-2parrot1-amd64:.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.9.0-2parrot1-amd64
cryptsetup: WARNING: Couldn't determine root device
W: Possible missing firmware /lib/firmware/i915/rkl_dmc_ver2_01.bin for module i915
/etc/kernel/postinst.d/zz-update-grub:
/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
dpkg: error processing package linux-image-5.9.0-2parrot1-amd64 (--configure):
 installed linux-image-5.9.0-2parrot1-amd64 package post-installation script subprocess return
ed error exit status 1
Errors were encountered while processing:
 linux-image-5.10.0-5parrot1-amd64
 linux-image-amd64
 linux-image-5.9.0-2parrot1-amd64
Error: Timeout was reached
Scanning application launchers
Removing duplicate launchers or broken launchers
Launchers are updated
E: Sub-process /usr/bin/dpkg returned an error code (1)
┌─[✗]─[root@parrot]─[/]
└──╼ #ls -la /boot
total 252200
drwxr-xr-x 1 root root      732 Mar 31 01:31 .
drwxr-xr-x 1 root root      368 Mar 27 23:55 ..
-rw-r--r-- 1 root root   236109 Feb 26 04:10 config-5.10.0-3parrot1-amd64
-rw-r--r-- 1 root root   236047 Mar 21 06:03 config-5.10.0-5parrot1-amd64
-rw-r--r-- 1 root root   234748 Nov 18 01:59 config-5.9.0-2parrot1-amd64
drwxr-xr-x 1 root root        6 Mar 23 12:56 efi
drwxr-xr-x 1 root root      116 Mar 27 23:56 grub
-rw------- 1 root root 79698791 Mar 16 10:24 initrd.img-5.10.0-3parrot1-amd64
-rw------- 1 root root 79706182 Mar 31 01:31 initrd.img-5.10.0-5parrot1-amd64
-rw------- 1 root root 78773110 Mar 31 01:31 initrd.img-5.9.0-2parrot1-amd64
-rw-r--r-- 1 root root       83 Feb 26 04:10 System.map-5.10.0-3parrot1-amd64
-rw-r--r-- 1 root root       83 Mar 21 06:03 System.map-5.10.0-5parrot1-amd64
-rw-r--r-- 1 root root       83 Nov 18 01:59 System.map-5.9.0-2parrot1-amd64
-rw-r--r-- 1 root root  6800864 Feb 26 04:10 vmlinuz-5.10.0-3parrot1-amd64
-rw-r--r-- 1 root root  6808064 Mar 21 06:03 vmlinuz-5.10.0-5parrot1-amd64
-rw-r--r-- 1 root root  5727584 Nov 18 01:59 vmlinuz-5.9.0-2parrot1-amd64

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