I've recently upgraded 12.04 to 12.10. Everytime I update my system or try to install a software, this error pops up saying that package operation failed. I am not sure if this has something to do with java installation but I already have openjdk installed on my system and I don't know why the stacktrace insists me to install Oracle Java. How can I get rid of this?
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
Extracting templates from packages: 96%%
Extracting templates from packages: 100%%
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
Extracting templates from packages: 96%%
Extracting templates from packages: 100%%
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
Extracting templates from packages: 96%%
Extracting templates from packages: 100%%
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
Extracting templates from packages: 96%%
Extracting templates from packages: 100%%
(Reading database ...
(Reading database ... 5%%
(Reading database ... 10%%
(Reading database ... 15%%
(Reading database ... 20%%
(Reading database ... 25%%
(Reading database ... 30%%
(Reading database ... 35%%
(Reading database ... 40%%
(Reading database ... 45%%
(Reading database ... 50%%
(Reading database ... 55%%
(Reading database ... 60%%
(Reading database ... 65%%
(Reading database ... 70%%
(Reading database ... 75%%
(Reading database ... 80%%
(Reading database ... 85%%
(Reading database ... 90%%
(Reading database ... 95%%
(Reading database ... 100%%
(Reading database ... 356093 files and directories currently installed.)
Preparing to replace ure 3.6.2~rc2-0ubuntu3 (using .../ure_3.6.2~rc2-0ubuntu4_amd64.deb) ...
Unpacking replacement ure ...
Preparing to replace uno-libs3 3.6.2~rc2-0ubuntu3 (using .../uno-libs3_3.6.2~rc2-0ubuntu4_amd64.deb) ...
Unpacking replacement uno-libs3 ...
Preparing to replace libreoffice-writer 1:3.6.2~rc2-0ubuntu3 (using .../libreoffice-writer_1%%3a3.6.2~rc2-0ubuntu4_amd64.deb) ...
Unpacking replacement libreoffice-writer ...
Preparing to replace libreoffice-calc 1:3.6.2~rc2-0ubuntu3 (using .../libreoffice-calc_1%%3a3.6.2~rc2-0ubuntu4_amd64.deb) ...
Unpacking replacement libreoffice-calc ...
Preparing to replace libreoffice-base-core 1:3.6.2~rc2-0ubuntu3 (using .../libreoffice-base-core_1%%3a3.6.2~rc2-0ubuntu4_amd64.deb) ...
Unpacking replacement libreoffice-base-core ...
Preparing to replace libreoffice-impress 1:3.6.2~rc2-0ubuntu3 (using .../libreoffice-impress_1%%3a3.6.2~rc2-0ubuntu4_amd64.deb) ...
Unpacking replacement libreoffice-impress ...
Preparing to replace libreoffice-draw 1:3.6.2~rc2-0ubuntu3 (using .../libreoffice-draw_1%%3a3.6.2~rc2-0ubuntu4_amd64.deb) ...
Unpacking replacement libreoffice-draw ...
Preparing to replace libreoffice-gtk 1:3.6.2~rc2-0ubuntu3 (using .../libreoffice-gtk_1%%3a3.6.2~rc2-0ubuntu4_amd64.deb) ...
Unpacking replacement libreoffice-gtk ...
Preparing to replace libreoffice-gnome 1:3.6.2~rc2-0ubuntu3 (using .../libreoffice-gnome_1%%3a3.6.2~rc2-0ubuntu4_amd64.deb) ...
Unpacking replacement libreoffice-gnome ...
Preparing to replace python-uno 1:3.6.2~rc2-0ubuntu3 (using .../python-uno_1%%3a3.6.2~rc2-0ubuntu4_amd64.deb) ...
Unpacking replacement python-uno ...
Preparing to replace fonts-opensymbol 2:102.2+LibO3.6.2~rc2-0ubuntu3 (using .../fonts-opensymbol_2%%3a102.2+LibO3.6.2~rc2-0ubuntu4_all.deb) ...
Unpacking replacement fonts-opensymbol ...
Preparing to replace libreoffice-math 1:3.6.2~rc2-0ubuntu3 (using .../libreoffice-math_1%%3a3.6.2~rc2-0ubuntu4_amd64.deb) ...
Unpacking replacement libreoffice-math ...
Preparing to replace libreoffice-common 1:3.6.2~rc2-0ubuntu3 (using .../libreoffice-common_1%%3a3.6.2~rc2-0ubuntu4_all.deb) ...
Unpacking replacement libreoffice-common ...
Processing triggers for mime-support ...
Processing triggers for man-db ...
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
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for fontconfig ...
Processing triggers for shared-mime-info ...
Processing triggers for gnome-icon-theme ...
Processing triggers for hicolor-icon-theme ...
Setting up ure (3.6.2~rc2-0ubuntu4) ...
Setting up uno-libs3 (3.6.2~rc2-0ubuntu4) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
(Reading database ...
(Reading database ... 5%%
(Reading database ... 10%%
(Reading database ... 15%%
(Reading database ... 20%%
(Reading database ... 25%%
(Reading database ... 30%%
(Reading database ... 35%%
(Reading database ... 40%%
(Reading database ... 45%%
(Reading database ... 50%%
(Reading database ... 55%%
(Reading database ... 60%%
(Reading database ... 65%%
(Reading database ... 70%%
(Reading database ... 75%%
(Reading database ... 80%%
(Reading database ... 85%%
(Reading database ... 90%%
(Reading database ... 95%%
(Reading database ... 100%%
(Reading database ... 356093 files and directories currently installed.)
Preparing to replace libreoffice-core 1:3.6.2~rc2-0ubuntu3 (using .../libreoffice-core_1%%3a3.6.2~rc2-0ubuntu4_amd64.deb) ...
Unpacking replacement libreoffice-core ...
Preparing to replace libreoffice-style-human 1:3.6.2~rc2-0ubuntu3 (using .../libreoffice-style-human_1%%3a3.6.2~rc2-0ubuntu4_all.deb) ...
Unpacking replacement libreoffice-style-human ...
Preparing to replace libreoffice-style-oxygen 1:3.6.2~rc2-0ubuntu3 (using .../libreoffice-style-oxygen_1%%3a3.6.2~rc2-0ubuntu4_all.deb) ...
Unpacking replacement libreoffice-style-oxygen ...
Preparing to replace libreoffice-style-tango 1:3.6.2~rc2-0ubuntu3 (using .../libreoffice-style-tango_1%%3a3.6.2~rc2-0ubuntu4_all.deb) ...
Unpacking replacement libreoffice-style-tango ...
Preparing to replace telepathy-logger 0.4.0-1 (using .../telepathy-logger_0.4.0-2~ubuntu12.10.0_amd64.deb) ...
Unpacking replacement telepathy-logger ...
Preparing to replace libtelepathy-logger2:amd64 0.4.0-1 (using .../libtelepathy-logger2_0.4.0-2~ubuntu12.10.0_amd64.deb) ...
Unpacking replacement libtelepathy-logger2:amd64 ...
Preparing to replace gnome-keyring 3.6.0-0ubuntu1 (using .../gnome-keyring_3.6.1-0ubuntu1_amd64.deb) ...
Unpacking replacement gnome-keyring ...
Preparing to replace indicator-appmenu 12.10.3-0ubuntu1 (using .../indicator-appmenu_12.10.3-0ubuntu2_amd64.deb) ...
Unpacking replacement indicator-appmenu ...
Preparing to replace kdenetwork-filesharing 4:4.9.2-0ubuntu2 (using .../kdenetwork-filesharing_4%%3a4.9.2-0ubuntu2.1_amd64.deb) ...
Unpacking replacement kdenetwork-filesharing ...
Preparing to replace libpam-gnome-keyring 3.6.0-0ubuntu1 (using .../libpam-gnome-keyring_3.6.1-0ubuntu1_amd64.deb) ...
Unpacking replacement libpam-gnome-keyring ...
Preparing to replace libreoffice-emailmerge 1:3.6.2~rc2-0ubuntu3 (using .../libreoffice-emailmerge_1%%3a3.6.2~rc2-0ubuntu4_all.deb) ...
Unpacking replacement libreoffice-emailmerge ...
Preparing to replace libreoffice-help-en-us 1:3.6.2~rc2-0ubuntu3 (using .../libreoffice-help-en-us_1%%3a3.6.2~rc2-0ubuntu4_all.deb) ...
Unpacking replacement libreoffice-help-en-us ...
Preparing to replace libreoffice-presentation-minimizer 1.0.4+LibO3.6.2~rc2-0ubuntu3 (using .../libreoffice-presentation-minimizer_1.0.4+LibO3.6.2~rc2-0ubuntu4_amd64.deb) ...
Unpacking replacement libreoffice-presentation-minimizer ...
Preparing to replace libreoffice-presenter-console 1.1.1+LibO3.6.2~rc2-0ubuntu3 (using .../libreoffice-presenter-console_1.1.1+LibO3.6.2~rc2-0ubuntu4_amd64.deb) ...
Unpacking replacement libreoffice-presenter-console ...
Preparing to replace adium-theme-ubuntu 0.3.2-0ubuntu1 (using .../adium-theme-ubuntu_0.3.3-0ubuntu0.1_all.deb) ...
Unpacking replacement adium-theme-ubuntu ...
Preparing to replace kde-zeroconf 4:4.9.2-0ubuntu2 (using .../kde-zeroconf_4%%3a4.9.2-0ubuntu2.1_amd64.deb) ...
Unpacking replacement kde-zeroconf ...
Preparing to replace libreoffice-ogltrans 1:3.6.2~rc2-0ubuntu3 (using .../libreoffice-ogltrans_1%%3a3.6.2~rc2-0ubuntu4_amd64.deb) ...
Unpacking replacement libreoffice-ogltrans ...
Preparing to replace libreoffice-pdfimport 1.0.6+LibO3.6.2~rc2-0ubuntu3 (using .../libreoffice-pdfimport_1.0.6+LibO3.6.2~rc2-0ubuntu4_amd64.deb) ...
Unpacking replacement libreoffice-pdfimport ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for libglib2.0-0:i386 ...
No such key `computer-icon-visible' in schema `org.gnome.nautilus.desktop' as specified in override file `/usr/share/glib-2.0/schemas/10_ubuntu-settings.gschema.override'; ignoring override for this key.
Processing triggers for libglib2.0-0:amd64 ...
No such key `computer-icon-visible' in schema `org.gnome.nautilus.desktop' as specified in override file `/usr/share/glib-2.0/schemas/10_ubuntu-settings.gschema.override'; ignoring override for this key.
Processing triggers for man-db ...
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
Processing triggers for gconf2 ...
Setting up oracle-java7-installer (7u3-0~eugenesan~precise4) ...
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
Downloading...
--2012-11-19 21:20:29-- http://download.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-x64.tar.gz
Resolving download.oracle.com (download.oracle.com)... 122.178.225.43, 122.178.225.41
Connecting to download.oracle.com (download.oracle.com)|122.178.225.43|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-x64.tar.gz [following]
--2012-11-19 21:20:30-- https://edelivery.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-x64.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 184.84.202.174
Connecting to edelivery.oracle.com (edelivery.oracle.com)|184.84.202.174|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/errors/download-fail-1505220.html [following]
--2012-11-19 21:20:31-- http://download.oracle.com/errors/download-fail-1505220.html
Connecting to download.oracle.com (download.oracle.com)|122.178.225.43|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5307 (5.2K) [text/html]
Saving to: `./jdk-7u3-linux-x64.tar.gz'
0K ..... 100%% 8.07M=0.001s
2012-11-19 21:20:32 (8.07 MB/s) - `./jdk-7u3-linux-x64.tar.gz' saved [5307/5307]
Download done.
sha256sum mismatch jdk-7u3-linux-x64.tar.gz
Oracle JDK 7 is NOT installed.
dpkg: error processing oracle-java7-installer (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up libreoffice-style-human (1:3.6.2~rc2-0ubuntu4) ...
No apport report written because MaxReports is reached already
Setting up libreoffice-style-oxygen (1:3.6.2~rc2-0ubuntu4) ...
Setting up libreoffice-style-tango (1:3.6.2~rc2-0ubuntu4) ...
Setting up libreoffice-common (1:3.6.2~rc2-0ubuntu4) ...
Setting up fonts-opensymbol (2:102.2+LibO3.6.2~rc2-0ubuntu4) ...
Setting up libreoffice-core (1:3.6.2~rc2-0ubuntu4) ...
Setting up libreoffice-base-core (1:3.6.2~rc2-0ubuntu4) ...
Setting up libreoffice-writer (1:3.6.2~rc2-0ubuntu4) ...
Setting up libreoffice-calc (1:3.6.2~rc2-0ubuntu4) ...
Setting up libreoffice-draw (1:3.6.2~rc2-0ubuntu4) ...
Setting up libreoffice-impress (1:3.6.2~rc2-0ubuntu4) ...
Setting up libreoffice-gtk (1:3.6.2~rc2-0ubuntu4) ...
Setting up libreoffice-gnome (1:3.6.2~rc2-0ubuntu4) ...
Setting up python-uno (1:3.6.2~rc2-0ubuntu4) ...
Setting up libreoffice-math (1:3.6.2~rc2-0ubuntu4) ...
Setting up libtelepathy-logger2:amd64 (0.4.0-2~ubuntu12.10.0) ...
Setting up telepathy-logger (0.4.0-2~ubuntu12.10.0) ...
Setting up gnome-keyring (3.6.1-0ubuntu1) ...
Installing new version of config file /etc/xdg/autostart/gnome-keyring-gpg.desktop ...
Installing new version of config file /etc/xdg/autostart/gnome-keyring-ssh.desktop ...
Installing new version of config file /etc/xdg/autostart/gnome-keyring-secrets.desktop ...
Installing new version of config file /etc/xdg/autostart/gnome-keyring-pkcs11.desktop ...
Setting up indicator-appmenu (12.10.3-0ubuntu2) ...
Setting up kdenetwork-filesharing (4:4.9.2-0ubuntu2.1) ...
Setting up libpam-gnome-keyring (3.6.1-0ubuntu1) ...
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 libreoffice-emailmerge (1:3.6.2~rc2-0ubuntu4) ...
Setting up libreoffice-help-en-us (1:3.6.2~rc2-0ubuntu4) ...
Setting up libreoffice-presentation-minimizer (1.0.4+LibO3.6.2~rc2-0ubuntu4) ...
Setting up libreoffice-presenter-console (1.1.1+LibO3.6.2~rc2-0ubuntu4) ...
Setting up adium-theme-ubuntu (0.3.3-0ubuntu0.1) ...
Setting up kde-zeroconf (4:4.9.2-0ubuntu2.1) ...
Setting up libreoffice-ogltrans (1:3.6.2~rc2-0ubuntu4) ...
Setting up libreoffice-pdfimport (1.0.6+LibO3.6.2~rc2-0ubuntu4) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
oracle-java7-installer
Error in function:
Setting up oracle-java7-installer (7u3-0~eugenesan~precise4) ...
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
Downloading...
--2012-11-19 21:20:43-- http://download.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-x64.tar.gz
Resolving download.oracle.com (download.oracle.com)... 122.178.225.41, 122.178.225.43
Connecting to download.oracle.com (download.oracle.com)|122.178.225.41|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-x64.tar.gz [following]
--2012-11-19 21:20:45-- https://edelivery.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-x64.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 184.84.202.174
Connecting to edelivery.oracle.com (edelivery.oracle.com)|184.84.202.174|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/errors/download-fail-1505220.html [following]
--2012-11-19 21:20:47-- http://download.oracle.com/errors/download-fail-1505220.html
Connecting to download.oracle.com (download.oracle.com)|122.178.225.41|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5307 (5.2K) [text/html]
Saving to: `./jdk-7u3-linux-x64.tar.gz'
0K ..... 100%% 744K=0.007s
2012-11-19 21:20:47 (744 KB/s) - `./jdk-7u3-linux-x64.tar.gz' saved [5307/5307]
Download done.
sha256sum mismatch jdk-7u3-linux-x64.tar.gz
**Oracle JDK 7 is NOT installed.**
dpkg: error processing oracle-java7-installer (--configure):
subprocess installed post-installation script returned error exit status 1
EDIT
Found the answer here: http://askubuntu.com/a/126419/14378