0

This question already has an answer here:

I can't install anything via either Software Center or terminal. When I try to run sudo apt-get install <something>

bluez-cups : Depends: cups but it is not installed
 printer-driver-gutenprint : Depends: cups (>= 1.3.0) but it is not installed
 printer-driver-splix : Depends: cups (>= 1.5.0-3~) but it is not installed
 ubuntu-minimal : Depends: locales but it is not installed
E: Unmet dependencies. Try using -f.

it's showing this error.

I have tried many solutions, but they didn't work.

Here is my lsb_release -a

Distributor ID: Ubuntu
Description:    Ubuntu 14.04.5 LTS
Release:    14.04

Here is my output of sudo apt-get install -f

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  bluez-cups printer-driver-gutenprint printer-driver-splix ubuntu-minimal
0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
6 not fully installed or removed.
After this operation, 1221 kB disk space will be freed.
Do you want to continue? [Y/n] y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = "en",
    LC_ALL = (unset),
    LC_TIME = "bn_BD",
    LC_MONETARY = "bn_BD",
    LC_ADDRESS = "bn_BD",
    LC_TELEPHONE = "bn_BD",
    LC_NAME = "bn_BD",
    LC_MEASUREMENT = "bn_BD",
    LC_IDENTIFICATION = "bn_BD",
    LC_NUMERIC = "bn_BD",
    LC_PAPER = "bn_BD",
    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.
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)

marked as duplicate by mikewhatever, Zanna, Eric Carvalho, TheWanderer, waltinator Nov 1 '16 at 3:54

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Can you add the output of lsb_release -a to the question. – mikewhatever Oct 22 '16 at 5:45
  • added sir i have added my lsb_release -a – Code X Hunter Oct 22 '16 at 5:50
  • added sir i have added my lsb_release -a – Code X Hunter Oct 22 '16 at 5:50
  • Let's see the output of sudo apt-get install -f, ...all of it. – mikewhatever Oct 22 '16 at 6:04
  • sir i edited my question & added the output – Code X Hunter Oct 22 '16 at 6:22