Please review below attempts:
Upgrading with Apt-get displays error setting locale, exits looking for ldconfig
I cannot generate locales, command not found
installing just locales exits at message of having held broken packages.
****UPDATES****
Apt-get states there are broken packages or unmet dependencies after attempting to install new packages, but attempting to fix the broken packages with DPKG not APT-GET show any actual broken of held packages.
Used cammands that returned no problem packages:
sudo apt-get update --fix-missing
sudo apt-get install -f
sudo dpkg –configure -a
Please direct me where to look at next.
Error:
Code: Select all
sudo apt-get upgrade
(Removed list of packages downloaded from sourcelists)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.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.
Extracting templates from packages: 100%
Preconfiguring packages ...
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)
Code: Select all
apt-get install locales
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
locales : Depends: debconf (>= 0.5) but it is not going to be installed or
debconf-2.0
E: Unable to correct problems, you have held broken packages.
Code: Select all
sudo locale-gen
-bash: locale-gen: command not found
dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.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.
/usr/sbin/dpkg-reconfigure: locales is broken or not fully installed
Code: Select all
sudo apt install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 252 not upgraded.
/etc/default/locale contents
Code: Select all
LANG="en_US.UTF-8"
Source list:
Code: Select all
deb http://deb.debian.org/debian/ stretch main contrib non-free
deb-src http://deb.debian.org/debian/ stretch non-free contrib main
deb http://deb.debian.org/debian/ stretch-updates main contrib non-free
deb-src http://deb.debian.org/debian/ stretch-updates main contrib non-free
deb http://security.debian.org/debian-security/ stretch/updates main contrib non-free
deb-src http://security.debian.org/debian-security/ stretch/updates non-free contrib main