perl: warning: Falling back to the standard locale ("C") - Ask Ubuntu


i following errors perl:

perl: warning: falling standard locale ("c"). can't exec "locale": no such file or directory @ /usr/share/perl5/debconf/encoding.pm line 16. use of uninitialized value $debconf::encoding::charmap in scalar chomp @ /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 contain /usr/local/sbin, /usr/sbin , /sbin e: sub-process /usr/bin/dpkg returned error code (2) 

after doing echo $path output: /home/michaelcw02/bin:/home/michaelcw02/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

and cannot locale because dont have installed.

this complete output after running sudo apt-get -f install:

reading package lists... done building dependency tree        reading state information... done correcting dependencies... done following packages automatically installed , no longer required:   libgcrypt11 libgnutls26 libslp1 libtasn1-3 use 'sudo apt autoremove' remove them. following additional packages installed:   libgcrypt11 libgnutls26 libtasn1-3 suggested packages:   rng-tools gnutls-bin following packages removed:   bluez-cups elementary-minimal hplip language-pack-bg language-pack-bg-base language-pack-cs   language-pack-cs-base language-pack-da language-pack-da-base language-pack-en language-pack-en-base    language-pack-gnome-bg language-pack-gnome-bg-base language-pack-gnome-cs language-pack-gnome-cs-base   language-pack-gnome-da language-pack-gnome-da-base language-pack-gnome-en language-pack-gnome-en-base   language-pack-gnome-hu language-pack-gnome-hu-base language-pack-gnome-id language-pack-gnome-id-base   language-pack-gnome-ja language-pack-gnome-ja-base language-pack-gnome-ko language-pack-gnome-ko-base   language-pack-gnome-nb language-pack-gnome-nb-base language-pack-gnome-nl language-pack-gnome-nl-base   language-pack-gnome-pl language-pack-gnome-pl-base language-pack-gnome-sv language-pack-gnome-sv-base   language-pack-gnome-th language-pack-gnome-th-base language-pack-gnome-tr language-pack-gnome-tr-base   language-pack-gnome-uk language-pack-gnome-uk-base language-pack-gnome-vi language-pack-gnome-vi-base   language-pack-hu language-pack-hu-base language-pack-id language-pack-id-base language-pack-ja   language-pack-ja-base language-pack-ko language-pack-ko-base language-pack-nb language-pack-nb-base   language-pack-nl language-pack-nl-base language-pack-pl language-pack-pl-base language-pack-sv   language-pack-sv-base language-pack-th language-pack-th-base language-pack-tr language-pack-tr-base   language-pack-uk language-pack-uk-base language-pack-vi language-pack-vi-base language-pack-zh-hant   language-pack-zh-hant-base printer-driver-hpcups printer-driver-postscript-hp printer-driver-splix   ubuntu-minimal following new packages installed:   libgcrypt11 libgnutls26 libtasn1-3 0 upgraded, 3 newly installed, 73 remove , 0 not upgraded. need 0 b/786 kb of archives. after operation, 258 mb disk space freed. want continue? [y/n] y perl: warning: setting locale failed. perl: warning: please check locale settings:     language = "en",     lc_all = (unset),     lc_time = "es_cr.utf-8",     lc_monetary = "es_cr.utf-8",     lc_address = "es_cr.utf-8",     lc_telephone = "es_cr.utf-8",     lc_name = "es_cr.utf-8",     lc_measurement = "es_cr.utf-8",     lc_identification = "es_cr.utf-8",     lc_numeric = "es_cr.utf-8",     lc_paper = "es_cr.utf-8",     lang = "en_us.utf-8"     supported , installed on system. perl: warning: falling standard locale ("c"). can't exec "locale": no such file or directory @ /usr/share/perl5/debconf/encoding.pm line 16. use of uninitialized value $debconf::encoding::charmap in scalar chomp @ /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 contain /usr/local/sbin, /usr/sbin , /sbin e: sub-process /usr/bin/dpkg returned error code (2) 

both /usr/bin/locale , /sbin/ldconfig in package libc-bin. install package fix errors.


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User