E: Sub-process /usr/bin/dpkg returned an error code (2)

Kernels & Hardware, configuring network, installing services

E: Sub-process /usr/bin/dpkg returned an error code (2)

Postby 4joeyirosh1 » 2020-11-16 12:52

Hallo!I am running Debian 10.6 Buster 64 bit Linux.

Whenever I try to install a package I am getting error below

Code: Select all
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)


Kindly assist in resolving issue.
4joeyirosh1
 
Posts: 103
Joined: 2016-09-11 18:04

Re: E: Sub-process /usr/bin/dpkg returned an error code (2)

Postby reinob » 2020-11-16 13:57

1. run it as root
2. get root using "su -" or "sudo -i" but not with just "su" or "sudo su"
reinob
 
Posts: 857
Joined: 2014-06-30 11:42


Return to System configuration

Who is online

Users browsing this forum: No registered users and 11 guests

fashionable