The problem is

sha256sum mismatch jdk-7u3-linux-x64.tar.gz

so you can download Java directly from Oracle web site

then move what you just downloaded to /var/cache/oracle-java7-installer

and edit the file /var/lib/dpkg/info/oracle-java7-installer.postinst
like this:

# downloading jdk7
                echo "Downloading cookie..."
                #rm -f cookie.txt
                #WGETRC=wgetrc wget $COOKIE_URL \
                #       || fp_exit_with_error "download failed"
                #rm -f $FILENAME
                echo "Downloading Oracle Java 7..."
                #WGETRC=wgetrc wget --load-cookies cookie.txt $PARTNER_URL \
                #       || fp_exit_with_error "download failed"
                #rm -f wgetrc
                echo "Download done."

        fi # end if local file

        # verify SHA256 checksum of (copied or downloaded) tarball
        #rm -rf jdk*/
        #echo "$SHA256SUM_TGZ  $FILENAME" | sha256sum -c > /dev/null 2>&1 \
#               || fp_exit_with_error "sha256sum mismatch $FILENAME"

        # unpacking and checking the plugin
        tar xzf $FILENAME || fp_exit_with_error "cannot unpack jdk7"
}

then with apt-get install -f oracle-jdk7-installer you can solve it!

** Changed in: java-common (Ubuntu)
       Status: Confirmed => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/982395

Title:
  sudo apt-get install default-jdk [sudo] password for jacopo:

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/java-common/+bug/982395/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to