Problem with packages in Ubuntu

30 views
Skip to first unread message

Vaibhav Bhosale

unread,
May 6, 2015, 6:19:14 AM5/6/15
to wncc...@googlegroups.com
When i try to do apt-get upgrade or apt-get -f install or any activity related to packages(dpkg --configure,etc), I am getting the following error:
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
E: Sub-process /usr/bin/dpkg returned an error code (2)

Please suggest what I should do

Dilawar Singh

unread,
May 6, 2015, 7:56:02 AM5/6/15
to wncc...@googlegroups.com
$ sudo -i
# echo $PATH
if /usr/local/sbin and /usr/sbin, and /sbin not found.
# export PATH=/usr/local/sbin/:/sbin:/usr/sbin:$PATH

Repeat the `apt-get -f install`. Also check the output of `which ldconfig` in terminal (after sudo -i).

best,
     Dilawar
Reply all
Reply to author
Forward
0 new messages