Error found when loading /etc/profile and UEFI permission denied

If I turn on my computer normally:



/etc/profile.d/01-locale-fix.sh: line 2: /usr/bin/locale-check: No such file or directory

 
As a result the session will not be configured correctly.  
You should fix the problem as soon as feasible.

Grub Boot:

Kali GNU/Linux, with Linux 5.4.0.-45-generic
Kali GNU/Linux, with Linux 5.4.0.-45-generic (recovery mode)
Kali GNU/Linux, with Linux 5.2.0.-42-generic
Kali GNU/Linux, with Linux 5.2.0.-42-generic (recovery mode)

I select the second option:

efi stub secure boot 

**DPKG** 
Reading cache
Can not upgrade
An upgrade from 'kali-rolling' to 'focal' is not suported with this tool.

**ROOT**
Cannot open access to console. The root account is locked see sulogin(8) man page for more details." 

[![system-summary][1]][1]


  [1]: https://i.stack.imgur.com/rXRO8.jpg


The options on boot don't recognize the USB I'm using to try to install Ubuntu again (Ubuntu 18.04 "Bionic Beaver").

I don't understand why the option for Ubuntu is not listed, since I have Ubuntu 20.04 not Kali Linux. 

What can I do?

Go to Source
Author: user197536

ubuntu doesn’t work :UUID=xxxx does not exitst

My computer has two systems, Windows 10 and ubuntu18.04. Today, when I tried to get into Ubuntu(I already laid it aside for about one week ), the whole screen showed pure purple for at least 10 minutes, so I forced the computer to shut down.Then when I tried to get into Ubuntu again, it showed :
[enter image description here][1]
Then I tried to open ubuntu in recovery mode,but the outcome was same.And I also tried this solution:https://forums.linuxmint.com/viewtopic.php?t=47594,doesn’t work either.
At last I run fsck.ext4 -y /dev/sda1(where the root is),and showed:
[enter image description here][2]
Anyone know how to deal with is issue?Any help would be appreciated!
[1]: https://i.stack.imgur.com/n0nw2.png
[2]: https://i.stack.imgur.com/xEiga.png

Go to Source
Author: OilLight

Why can’t grub find the disk by UUID?

I’m trying to troubleshoot why I can’t boot to Windows.

The relevant entry in grub.cfg is:

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/sda3)' --class windows --class os $menuentry_id_option 'osprober-efi-BC6E-0415' {
        insmod part_gpt
        insmod fat
        set root='hd0,gpt3'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  BC6E-0415
        else
          search --no-floppy --fs-uuid --set=root BC6E-0415
        fi
        chainloader /efi/Microsoft/Boot/bootmgfw.efi
}

Best I can tell, everything here is correct:
/dev/disk/by-uuid/BC6E-0415 is indeed the Windows boot manager partition.

However I’m slightly confused by the references to (hd0,gpt3) because that’s a completely different partition on a completely different physical disk. hd0 is the disk on which grub is installed though, in case that’s relevant.

The actual error I get when I try and boot Windows is:

error: no such device: BC6E-0415
error: file `/efi/Microsoft/Boot/bootmgfw.efi' not found

I do notice that in grub, if I drop to a grub command prompt and do an ls, the only hard disk I see listed is hd0 when my system actually has 4 hard disks. As I mentioned above, hd0 is the hard disk that has grub and my Linux installs.

So I think my question might be: why, when I boot to grub, can’t grub see any hard disks besides the one grub is on?

If I boot into Linux (Ubuntu 20.04.1) I can see all my hard disks just fine.

Go to Source
Author: Bridgey

install grub on mounted filesystem

I have booted rescue linux (init ram fs), and mounted /dev/sda1 on /mnt/sda1

/dev/sda1 is a linux partition, but /dev/sda has no mbr.

Howe can I install grub on mounted filesystem /mnt/sda1 ?

I tried:

mount /dev/sda1 sda1/
mount -t proc /proc proc/
mount -t sysfs sysfs sys
chroot .

but then, when i do grub-install /dev/sda, I get this error:

Installing for i386-pc platform.
grub-install: error: failed to get canonical path of `/dev/sda1'.

Go to Source
Author: 400 the Cat

No display (only) during GRUB menu

I installed Ubuntu 20.04.1 LTS yesterday on my three year old or so Ryzen powered Lenovo desktop, which has an LG TV connected to it in a dual booting with Windows 10 configuration, but when GRUB loads up, everything about my TV goes dark (no backlight either.) I have BIOS, and I get the Ubuntu loading screen as it boots to desktop. Haven’t messed with Linux heavily since the days of Mandrake 7.2 and have been looking to get back into it, though I have been using it as a desktop for lower powered machines the entire time. (I also used LILO then, as GRUB had compatibility issues. I keep hearing this has not changed and is likely an issue here.) I have followed a few tutorials I found here and there in attempt to get a fairly basic text display or something, so that I can see what option I am selecting, should I hope to go into Windows, though I’ve realized no change in the situation thus far. What are some things I can look for to restore sight to GRUB?

Go to Source
Author: Roger Gilbert

New to Linux, I’m getting this recurring error “ERROR “update-grub” returned an error: exit status 1 ” please advise

I get this error when trying to update my system, all appears to be functioning, but I am new to Linux so I may be missing something

ben@ben-laptop:~$ sudo apt -y upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  libllvm9
Use 'sudo apt autoremove' to remove it.
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Requesting to save current system state
Successfully saved as "autozsys_k3262n"
Setting up linux-image-5.4.0-40-generic (5.4.0-40.44) ...
Processing triggers for linux-image-5.4.0-40-generic (5.4.0-40.44) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-40-generic
I: The initramfs will attempt to resume from /dev/sda2
I: (UUID=a9642385-eacc-4155-b29f-90ba3692f639)
I: Set the RESUME variable to override this.
/etc/kernel/postinst.d/zz-update-grub:
/usr/sbin/grub-probe: error: failed to get canonical path of `bpool/BOOT/ubuntu_0qqeus'.
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
dpkg: error processing package linux-image-5.4.0-40-generic (--configure):
 installed linux-image-5.4.0-40-generic package post-installation script s
ubprocess returned error exit status 1
Errors were encountered while processing:
 linux-image-5.4.0-40-generic
ZSys is adding automatic system snapshot to GRUB menu
ERROR "update-grub" returned an error: exit status 1 
E: Sub-process /usr/bin/dpkg returned an error code (1)

If I run update-grub by itself I get

ben@ben-laptop:~$ sudo update-grub [sudo] password for
ben:  /usr/sbin/grub-probe: error: failed to get canonical path of
`bpool/BOOT/ubuntu_0qqeus'. 

Go to Source
Author: BenScoobert