Okay, I just install Ubuntu (the LXDE version, which is Lubuntu) and everytime I try to install a package through the terminal with the "Apt-get install" command, this error pops up:
E: Unmet dependencies. Try 'apt-get -f install' with no packages
And, yes this is for every package i try to install. When I do apt-get -f install
this is the terminal output I receive:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
libc-bin
The following NEW packages will be installed:
libc-bin
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B/1,168 kB of archives.
After this operation, 3,532 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
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)
Could someone please help me? I just started using linux 2 months ago, and switched to Lubuntu.
Before anything, try
Just to get that out of the way so we know it's not that.
Then, try these commands, if you normally use sudo su then do not execute that command and do type sudo before every other command listed. If you normally typed sudo apt-get -f install, then execute these commands as listed.
And even if the last command fails try
For some reason using sudo su can be different than using sudo in terms of your $PATH.