Oracle java 7 Installation in Ubuntu E: Sub-process /usr/bin/dpkg returned an error code (1)

后端 未结 6 1060
我寻月下人不归
我寻月下人不归 2020-12-30 15:16

I can\'t install oracle java 7 following the steps provided in this link: http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html

sudo ad         


        
6条回答
  •  感动是毒
    2020-12-30 15:58

    i think that your download is corrupted you have to remove the corrupted package first by code :

    sudo apt-get purge oracle-java7-installer
    

    clean your apt :

    sudo apt clean
    

    remove and reimport the ropsitory:

    sudo add-apt-repository --remove ppa:webupd8team/java
    sudo apt-get update
    sudo apt-add-repository ppa:webupd8team/java
    sudo apt-get update
    

    install your package again :

    sudo apt-get install oracle-java7-installer
    

    enjoy it bro ! if the problem hasn't solved try using VPN . Maybe there is a filtering between you and the oracle website

提交回复
热议问题