I am facing this error while updating the system by using sudo apt-get upgarde

HERE IS THE ERROR I AM FACING :{)
sudo apt-get upgrade
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Calculating upgrade… Done
The following packages will be upgraded:
metasploit-framework
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/373 MB of archives.
After this operation, 2048 B of additional disk space will be used.
Do you want to continue? [Y/n] y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = “en_US.UTF-8”,
LC_TIME = “en_AU.UTF-8”,
LC_MONETARY = “en_AU.UTF-8”,
LC_CTYPE = “en_US.UTF-8”,
LC_ADDRESS = “en_AU.UTF-8”,
LC_TELEPHONE = “en_AU.UTF-8”,
LC_NAME = “en_AU.UTF-8”,
LC_MEASUREMENT = “en_AU.UTF-8”,
LC_IDENTIFICATION = “en_AU.UTF-8”,
LC_NUMERIC = “en_AU.UTF-8”,
LC_PAPER = “en_AU.UTF-8”,
LANG = “en_AU.UTF-8”
are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).
Can’t exec “locale”: No such file or directory at /usr/share/perl5/Debconf/Encoding.pm line 16.
Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp at /usr/share/perl5/Debconf/Encoding.pm line 17.
dpkg: warning: ‘ldconfig’ not found in PATH or not executable
dpkg: error: 1 expected program not found in PATH or not executable
Note: root’s PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
Scanning application launchers
Removing duplicate launchers or broken launchers
Launchers are updated
E: Sub-process /usr/bin/dpkg returned an error code (2)

You need to set the OS language to it to its default, which is US English, it shouldn’t fail the update then.
Then change it back to your preference, en_AU

how can i do that as i am new to parrot security os and also it could be a big help if you tell me how can i fix dependencies error in parrot security os.

thank you sir :slight_smile:

Hi @taoi

Please don’t post multiple times (x3) about the same problem. Thanks!

I did a quick Google search and found locale related info that may help.