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

Asked by vishwajeet

When I updated the Ubuntu 18.10 and after the restart I start receiving this error :
/etc/profile.d/01-locale-fix.sh line 2 /usr/bin/locale-check no such file or directory
After that I not able to access any file and none of the systems apps are opening like Terminal, system setting nothing. Neither it is connecting to the wi fi. So, update of the system is not possible. Please help.

Thanks for any help in advance.

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of:

lsb_release -a; uname -a; cat -n /etc/profile.d/01-locale-fix.sh

Thanks

Revision history for this message
vishwajeet (vishwajeetk12) said :
#2

How I am suppose to run these commands? Terminal is not opening. I tried Alt+F2 but there is no output. Also, I looked up for the solution where I found that I have to change the content of the locale file i.e. language. And I tried to do so but there is some permission issue now. I haven't been able to open file, setting, or terminal. Most important that I am not able to connect to any internet connection. So, not sure what to do next.

Thanks.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

If you boot to an older kernel is it OK? Hold SHIFT at boot to make GRUB show thenuse cursors and ENTER as you expect

Revision history for this message
vishwajeet (vishwajeetk12) said :
#4

No, I also tried that with the recovery mode but there is no change in the system behavior. Thanks

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

What happens if you try booting in recovery mode - root command prompt?
Can you execute the commands there?

Or - can you open a virtual terminal by pressing ctrl-alt-f3 and log in?

Revision history for this message
Launchpad Janitor (janitor) said :
#6

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.

Revision history for this message
zozo (zo0zo) said :
#7

Hey
I’m running thru the same problem here please if u can help me i’d really really appreciate it because i’ve tried everything and nothing seems to work, i entered the same command you mentioned earlier and i get this output

“No LSB modules are available.
Distributor ID : Kali
Description: Kali GNU/LINUX Rolling
Release : 2021.1
Codename: kali-rolling
Linux (my username)Aspire-R3-131T 5.8.0-49-generic #55^20.04.1-ununtu SMP Fri Mar 26 01:01:07 UTC 2021 x86_64 GNU/Linux
1 # Make sure the locale variables are set to valid values.
2 eval $(/usr/bin/locale-check C.UTF-8)”

And for some context, i was stoopid and noob I downloaded katoolin in my ubuntu 20.04 and forgot the warning of removing them before upgrading/updating, so they caused my system to crash i can’t boot at all and I don’t even mind deleting the whole system and rebooting it again but when i do it my usb doesn’t appear which is weird bcs i did it several times before, please help me if u see this i’m clueless and i tried every command i found regarding this matter none seemed to work, i already uninstalled katoolin, fixed broken pkgs, i’ve also run thru some key_recovery problem and its all gone and when i update/upgrade it seems like i have done it successfully no uninstalled or not upgraded packages or pkgs that need to be removed, all is nice until i reboot the kali menu appears as if it’s a kali system and not an ubuntu one, and i have mo idea what to do next, btw i’ve also tried to remove kali-menu and it worked now it say’s no kali menu is there to be removed so what do i do now to get my system back

Revision history for this message
Manfred Hampl (m-hampl) said :
#8

@zozo:

“No LSB modules are available.
Distributor ID : Kali
Description: Kali GNU/LINUX Rolling
Release : 2021.1
Codename: kali-rolling"

This is support for Ubuntu only, and not for operating systems that are "based on Ubuntu".
Even more, according to Wikipedia "Kali Linux is based on the Debian Testing branch."
So there is no relationship to Ubuntu at all and you are totally wrong here.

As far as I know support for Kali Linux can be found at https://www.kali.org/community/

Revision history for this message
zozo (zo0zo) said :
#9

You don’t understand
My operating system is ubuntu I downloaded katoolin and it ruined my system and replaced some repositories I deleted the tool and everything, when i boot yes i get kali menu but it doesn’t mean anything because when i press ctrl+f3 to get the to the commands i log into mu ubuntu acc and it’s still an ubuntu shell i just get stuck at the beginning of the booting and im not sure what to do to get rid of the katoolin remainings or how to reboot my entire ununtu system since (for no obiv reason) when i press f2 all i get is two options (network reboot and hdd reboot) my ubuntu usb won’t show up altho it worked fine several times before.

Revision history for this message
Manfred Hampl (m-hampl) said :
#10

@zozo

By running katoolin you have turned your Ubuntu system into a Kali-Ubuntu hybrid which is not supported by Ubuntu.

If you want to revert your system back to Ubuntu, then you have to uninstall all packages from kali and replace them with the Ubuntu version. Ubuntu does not know any details about the packages that kali /katoolin has added. For that information you have to ask at Kali Linux or the provider of katoolin.

And as a general remark: Please do not piggyback on somebody else's question, but create a question document of your own.