» Why am I getting the terminal error "try apt-get -f install"?
Why am I getting the terminal error "try apt-get -f install"?
|July 23, 2014
Posted by forumadmin
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:
The following NEW packages will be installed:
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.
More Related Questions
- Unmet dependencies problem on 12.04 – libcurl4-openssl-dev depends librtmp-dev I'm having troubles with unmet dependencies on Ubuntu 12.04:
libcurl4-openssl-dev depends librtmp-dev
Here is what I've got after running sudo apt-get -f install which suggested running […]
- Installed packages have unmet dependencies When i tried to install lxc-docker-0.7.6 on ubuntu 13.04, i get the following errors:
The following package was automatically installed and is no longer required:
- Ubuntu 12.04 Libreoffice update breaks software updating After applying the latest updates today (August 16, 2014), Libreoffice-base will not complete the upgrade due "no diversion" error which then seems to break the postrm script and now I can […]
- Getting error while installing python-kivy packages in Ubuntu I'm not able to install python-kivy, I got this error:
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 127
Processing triggers for […]
- Cloning packages from dpkg -l I'm setting up a new machine, and I need to make sure it has all the same packages as one in England being used for a similar project. To that end, I have the results of a dpkg -l call […]
- Why does package mercurial depend on x11-common in a chrooted environment? In relation to a previous question I posed (Make apt-get (or aptitude) run with -y but not prompt for replacement of configuration files?) I came across a somewhat peculiar and hard to […]
- dpkg google-chrome corrupt invalid status I can't get this to resolve itself, can I get some help?
Setting up google-chrome-stable (34.0.1847.116-1) ...
update-alternatives: error: /var/lib/dpkg/alternatives/google-chrome […]
- Ubuntu 13.1 apt-get installs fails with every install/remove command inux-image-3.11.0-26-generic including sudo apt-get --purge autoremove etc and after trying sudo apt-get clean, autoclean, dpkg reconfigure etc
I've been around this problem for days, read everything I could find […]
- OpenERP Not allowing other things to be installed I have an OpenERP server set up for testing purposes on my computer. Since the setup, whenever I try to install other applications I get an error caused by OpenERP,
When trying to install […]
- How to find packages when updating Ubuntu and creating standard source.list file I just upgrade to Ubuntu 14.04 LTS, amd64. I'm trying to install some software and it says for Ubuntu 13.10 and above, the following libraries need to be installed for 32-bit […]