I am constantly receiving updates but when I download then, in the end it gives the error message package operation failed. I am not able to figure out what has caused this exactly. I don't have enough reputation else I would have posted the screenshots! I have a total disk of 18Gigs, out of which 10Gigs is free. I tried few methods like following:
sudo apt-get autoclean
sudo apt-get update
sudo apt-get upgrade
But it still gives the error message and it's irritating.
Thanking in advance.
The whole error message is:
installArchives() failed: perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_IN.ISO8859-1"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_IN.ISO8859-1"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_IN.ISO8859-1"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_IN.ISO8859-1"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up firefox (28.0+build2-0ubuntu0.12.04.1) ...
update-alternatives: error: cannot stat file '/usr/bin/java/jdk1.7.0_51/bin/javac': Not a directory
dpkg: error processing firefox (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up openjdk-7-jdk (7u55-2.4.7-1ubuntu1~0.12.04.2) ...
No apport report written because MaxReports is reached already
update-alternatives: error: cannot stat file '/usr/bin/java/jdk1.7.0_51/bin/javac': Not a directory
dpkg: error processing openjdk-7-jdk (--configure):
subprocess installed post-installation script returned error exit status 2
No apport report written because MaxReports is reached already
Setting up samba-common-bin (2:3.6.3-2ubuntu2.10) ...
update-alternatives: error: cannot stat file '/usr/bin/java/jdk1.7.0_51/bin/javac': Not a directory
dpkg: error processing samba-common-bin (--configure):
subprocess installed post-installation script returned error exit status 2
No apport report written because MaxReports is reached already
Setting up ssh-askpass-gnome (1:5.9p1-5ubuntu1.2) ...
update-alternatives: error: cannot stat file '/usr/bin/java/jdk1.7.0_51/bin/javac': Not a directory
dpkg: error processing ssh-askpass-gnome (--configure):
subprocess installed post-installation script returned error exit status 2
No apport report written because MaxReports is reached already
<br>
<b><i>Errors were encountered while processing:<br>
firefox<br>
openjdk-7-jdk<br>
samba-common-bin<br>
ssh-askpass-gnome</i></b><br>
Error in function:
Setting up ssh-askpass-gnome (1:5.9p1-5ubuntu1.2) ...
update-alternatives: error: cannot stat file '/usr/bin/java/jdk1.7.0_51/bin/javac': Not a directory
dpkg: error processing ssh-askpass-gnome (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up samba-common-bin (2:3.6.3-2ubuntu2.10) ...
update-alternatives: error: cannot stat file '/usr/bin/java/jdk1.7.0_51/bin/javac': Not a directory
dpkg: error processing samba-common-bin (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up firefox (28.0+build2-0ubuntu0.12.04.1) ...
update-alternatives: error: cannot stat file '/usr/bin/java/jdk1.7.0_51/bin/javac': Not a directory
dpkg: error processing firefox (--configure):
subprocess installed post-installation script returned error exit status 2