I have installed java JDK following this tutorial:
The installation was ok but every time I install or uninstall anything, I get this message:
Downloading... --2012-08-08 22:12:26-- http://download.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-x64.tar.gz Resolving download.oracle.com... 220.127.116.11, 18.104.22.168 Connecting to download.oracle.com|22.214.171.124|: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-08-08 22:12:26-- https://edelivery.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-x64.tar.gz Resolving edelivery.oracle.com... 126.96.36.199 Connecting to edelivery.oracle.com|188.8.131.52|:443... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: http://download.oracle.com/errors/download-fail-1505220.html [following] --2012-08-08 22:12:27-- http://download.oracle.com/errors/download-fail-1505220.html Connecting to download.oracle.com|184.108.40.206|: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% 416K=0.01s 2012-08-08 22:12:27 (416 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 Setting up firefox (14.0.1+build1-0ubuntu0.11.10.1) ... Please restart all running instances of firefox, or you will experience problems. Setting up firefox-globalmenu (14.0.1+build1-0ubuntu0.11.10.1) ... Errors were encountered while processing: oracle-java7-installer E: Sub-process /usr/bin/dpkg returned an error code (1)
I have checked my sources.list and the is no reference to this.
How to remove this code from trying to install it every time?