Fix: Can’t exec “locale”: No such file or directory at /usr/share/perl5/Debconf/Encoding.pm

Ubuntu apt-get update error

Problem While running apt-get, you run in to an error that looks like: 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 […]