Advertisement
ilovepasting

20211020 Linux Boot Repair Log

Oct 23rd, 2021
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 6.62 KB | None | 0 0
  1. boot-repair-4ppa130                                              [20211023_1442]
  2.  
  3. ============================= Boot Repair Summary ==============================
  4.  
  5.  
  6.  
  7. /usr/share/boot-sav/bs-cmd_terminal.sh: line 177: warning: command substitution: ignored null byte in input
  8.  
  9. Recommended repair: ____________________________________________________________
  10.  
  11. The default repair of the Boot-Repair utility will purge (in order to sign-grub) and reinstall the grub-efi-amd64-signed of
  12. sda5,
  13. using the following options:        sda1/boot/efi,
  14. Additional repair will be performed: unhide-bootmenu-10s win-legacy-basic-fix use-standard-efi-file
  15.  
  16.  
  17. /boot/efi added in sda5/fstab
  18. Quantity of real Windows: 1
  19. sda5/boot/efi not empty
  20. apt-get -y update
  21. W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://repo.skype.com/deb stable InRelease: The following signatures were invalid: EXPKEYSIG 1F3045A5DF7587C3 Skype Linux Client Repository <se-um@microsoft.com>
  22. W: Failed to fetch https://repo.skype.com/deb/dists/stable/InRelease  The following signatures were invalid: EXPKEYSIG 1F3045A5DF7587C3 Skype Linux Client Repository <se-um@microsoft.com>
  23. E: Failed to fetch https://linux.teamviewer.com/deb/dists/stable/main/binary-i386/Packages.gz  Hash Sum mismatch
  24. Hashes of expected file:
  25. - Filesize:11469 [weak]
  26. - SHA256:160a0ca527d96f863db71493ffb08eddc7861480276d473cf8d8a65f6adc18a0
  27. - SHA1:4cf2b96d58eb7da6445d68d1dc36dd2bf5260258 [weak]
  28. - MD5Sum:0b62da9099f75b4ce0d9ef2722bdcff6 [weak]
  29. Hashes of received file:
  30. - SHA256:ed6a4587f93c8c5bc13b00ce4f8a9fdecf99388f3d3a5eac11666c80a4b57dff
  31. - SHA1:7ddc2dd0276f62a08390b534e220a05bb23f56fb [weak]
  32. - MD5Sum:bba2cef556d05f2959369fa306705bc2 [weak]
  33. - Filesize:11469 [weak]
  34. Last modification reported: Tue, 28 Sep 2021 06:49:40 +0000
  35. Release file created at: Fri, 22 Oct 2021 13:18:39 +0000
  36. W: Some index files failed to download. They have been ignored, or old ones used instead.
  37. Purge the GRUB of sda5
  38. grub-efi-amd64-signed available
  39.  
  40. The following packages were automatically installed and are no longer required:
  41. libdouble-conversion3 libfprint-2-tod1 libllvm9 libpcre2-16-0 libqt5core5a
  42. libqt5dbus5 libqt5gui5 libqt5network5 libqt5positioning5 libqt5printsupport5
  43. libqt5qml5 libqt5quick5 libqt5sensors5 libqt5svg5 libqt5webchannel5
  44. libqt5webkit5 libqt5widgets5 libqt5x11extras5 libxcb-xinput0
  45. linux-headers-5.4.0-26 linux-headers-5.4.0-26-generic
  46. linux-image-5.4.0-26-generic linux-modules-5.4.0-26-generic
  47. linux-modules-extra-5.4.0-26-generic qml-module-qtgraphicaleffects
  48. qml-module-qtquick-controls qml-module-qtquick-dialogs
  49. qml-module-qtquick-layouts qml-module-qtquick-privatewidgets
  50. qml-module-qtquick-window2 qml-module-qtquick2 qt5-gtk-platformtheme
  51. qttranslations5-l10n shim
  52. Use 'apt autoremove' to remove them.
  53. 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
  54. DEBCHECK debOK, grub-efi-amd64-signed
  55. DEBCHECK debOK
  56. shim-signed available
  57. Please type: sudo dpkg --configure -ansudo apt-get install -fynsudo apt-get purge --allow-remove-essential -y grub*-common shim-signed
  58. shim-signed available
  59. linux-headers-generic available
  60. linux-signed-generic NOT available (apt-cache policy  problem)
  61. Then type: sudo apt-get install -y grub-efi-amd64-signed os-prober shim-signed linux-headers-generic
  62.  
  63. Unhide GRUB boot menu in sda5/etc/default/grub
  64.  
  65. ==== Reinstall the grub-efi-amd64-signed os-prober shim-signed linux-headers-generic of sda5 =====
  66.  
  67. grub-install --version
  68. grub-install (GRUB) 2.04-1ubuntu26.13
  69.  
  70. efibootmgr -v from chroot before grub install
  71. BootCurrent: 0001
  72. Timeout: 1 seconds
  73. BootOrder: 0001,0000,0002,0003
  74. Boot0000* Windows Boot Manager  HD(1,GPT,0cb200fa-3ed1-4c24-a968-2c366f8173fb,0x800,0x32000)/File(EFIMICROSOFTBOOTBOOTMGFW.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.4.7.9.5.}...,................
  75. Boot0001* ubuntu    HD(1,GPT,0cb200fa-3ed1-4c24-a968-2c366f8173fb,0x800,0x32000)/File(EFIUBUNTUSHIMX64.EFI)
  76. Boot0002* WDC WDS250G2B0A   BBS(HD,,0x0)..BO
  77. Boot0003* WDC WD10EZEX-22MFCA0  BBS(HD,,0x0)..BO
  78.  
  79. uname -r
  80. 5.11.0-38-generic
  81.  
  82. grub-install --efi-directory=/boot/efi --target=x86_64-efi --uefi-secure-boot
  83. Installing for x86_64-efi platform.
  84. Installation finished. No error reported.
  85. df /dev/sda1
  86. mv /boot/efi/EFI/Boot/bootx64.efi /boot/efi/EFI/Boot/bkpbootx64.efi
  87. cp /boot/efi/EFI/ubuntu/shimx64.efi /boot/efi/EFI/Boot/bootx64.efi
  88. cp /boot/efi/EFI/ubuntu/grubx64.efi /boot/efi/EFI/Boot/
  89.  
  90. grub-install --efi-directory=/boot/efi --target=x86_64-efi --uefi-secure-boot
  91. Installing for x86_64-efi platform.
  92. Installation finished. No error reported.
  93.  
  94. efibootmgr -v from chroot after grub install
  95. BootCurrent: 0001
  96. Timeout: 1 seconds
  97. BootOrder: 0001,0000,0002,0003
  98. Boot0000* Windows Boot Manager  HD(1,GPT,0cb200fa-3ed1-4c24-a968-2c366f8173fb,0x800,0x32000)/File(EFIMICROSOFTBOOTBOOTMGFW.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.4.7.9.5.}...,................
  99. Boot0001* ubuntu    HD(1,GPT,0cb200fa-3ed1-4c24-a968-2c366f8173fb,0x800,0x32000)/File(EFIubuntushimx64.efi)
  100. Boot0002* WDC WDS250G2B0A   BBS(HD,,0x0)..BO
  101. Boot0003* WDC WD10EZEX-22MFCA0  BBS(HD,,0x0)..BO
  102.  
  103. update-grub
  104. Sourcing file `/etc/default/grub'
  105. Sourcing file `/etc/default/grub.d/init-select.cfg'
  106. Generating grub configuration file ...
  107. Found linux image: /boot/vmlinuz-5.11.0-38-generic
  108. Found initrd image: /boot/initrd.img-5.11.0-38-generic
  109. Found linux image: /boot/vmlinuz-5.4.0-42-generic
  110. Found initrd image: /boot/initrd.img-5.4.0-42-generic
  111. Found linux image: /boot/vmlinuz-5.4.0-26-generic
  112. Found initrd image: /boot/initrd.img-5.4.0-26-generic
  113. File descriptor 63 (pipe:[67723]) leaked on lvs invocation. Parent PID 21431: /bin/sh
  114. Found Windows Boot Manager on /dev/sda1@/EFI/Microsoft/Boot/bootmgfw.efi
  115. Adding boot menu entry for UEFI Firmware Settings
  116.  
  117. Unhide GRUB boot menu in sda5/boot/grub/grub.cfg
  118.  
  119. Boot successfully repaired.
  120.  
  121. You can now reboot your computer.
  122.  
  123. Please do not forget to make your UEFI firmware boot on the The OS now in use - Ubuntu 20.04.3 LTS CurrentSession entry (sda1/EFI/ubuntu/shimx64.efi file) !
  124. If your computer reboots directly into Windows, try to change the boot order in your UEFI firmware.
  125.  
  126. If your UEFI firmware does not allow to change the boot order, change the default boot entry of the Windows bootloader.
  127. For example you can boot into Windows, then type the following command in an admin command prompt:
  128. bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi
  129.  
  130. ============================ Boot Info After Repair ============================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement