Can not install Java 8

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite












I followed the tutorial to install JAVA 8.

But I've the following error message:



sudo apt-get install oracle-java8-installer
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
oracle-java8-installer : Depends: java-common (>= 0.24) but it is not installable
Recommends: gsfonts-x11 but it is not installable
Recommends: oracle-java8-set-default but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


What am I doing wrong?



Update



I tried to install java-common and I've got:



developer@monad:~$ sudo apt-get update
Hit:1 http://archive.canonical.com bionic InRelease
Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:4 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease
Hit:6 http://dl.google.com/linux/chrome/deb stable Release
Hit:7 http://ch.archive.ubuntu.com/ubuntu bionic-backports InRelease
Get:3 http://ch.archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Get:8 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Get:5 http://ch.archive.ubuntu.com/ubuntu bionic-updates InRelease [83.2 kB]
Get:10 http://ch.archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1'019 kB]
Get:11 http://ch.archive.ubuntu.com/ubuntu bionic/main i386 Packages [1'007 kB]
Get:12 http://ch.archive.ubuntu.com/ubuntu bionic/main Translation-en [516 kB]
Get:13 http://ch.archive.ubuntu.com/ubuntu bionic/main amd64 DEP-11 Metadata [477 kB]
Get:14 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
Get:14 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
Get:14 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
Get:14 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
Get:14 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
Get:14 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
Get:21 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [204 B]
Get:14 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
Get:14 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
Get:23 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [2'456 B]
Err:14 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons
Hash Sum mismatch
Hashes of expected file:
- Filesize:118319 [weak]
- SHA256:72a445c7d354db04d1ffca6f52f7ab66953a3fa889bb66bf6d3210d3ab100f14
- SHA1:176f580a423a2fcf3e257f0d9a00713e05545a35 [weak]
- MD5Sum:bdfd4c6a690b2f9d0790443956b327fd [weak]
Hashes of received file:
- SHA256:39e0f680c56897c556fd4ce0dbba71e2622b0d1989f2e3fd5ab391d2c7c5c57f
- SHA1:94e927ca7e5c296674fbed2580f9b34b3eb9f21c [weak]
- MD5Sum:9b7c8db074b22f5aaba8c8161c204b67 [weak]
- Filesize:162304 [weak]
Last modification reported: Thu, 26 Apr 2018 21:24:34 +0000
Release file created at: Thu, 26 Apr 2018 23:37:48 +0000
Get:24 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 64x64 Icons [245 kB]
Get:24 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 64x64 Icons [245 kB]
Get:24 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 64x64 Icons [245 kB]
Get:24 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 64x64 Icons [245 kB]
Get:30 http://ch.archive.ubuntu.com/ubuntu bionic/universe DEP-11 64x64 Icons [8'420 kB]
Get:30 http://ch.archive.ubuntu.com/ubuntu bionic/universe DEP-11 64x64 Icons [8'420 kB]
Get:30 http://ch.archive.ubuntu.com/ubuntu bionic/universe DEP-11 64x64 Icons [8'420 kB]
Get:30 http://ch.archive.ubuntu.com/ubuntu bionic/universe DEP-11 64x64 Icons [8'420 kB]
Get:35 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse i386 Packages [144 kB]
Get:36 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
Get:36 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
Get:36 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
Get:36 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
Get:40 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse Translation-en [108 kB]
Get:41 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse amd64 DEP-11 Metadata [49.7 kB]
Get:42 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse DEP-11 48x48 Icons [8'931 B]
Err:42 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse DEP-11 48x48 Icons

Get:43 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse DEP-11 64x64 Icons [225 kB]
Err:43 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse DEP-11 64x64 Icons

Get:44 http://ch.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [1'968 B]
Err:44 http://ch.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons
File has unexpected size (3584 != 1968). Mirror sync in progress? [IP: 130.59.113.36 80]
Hashes of expected file:
- Filesize:1968 [weak]
- SHA256:cf4c0efefe32dbb80cc114bbcfea0a0839b376b3a226e5d0eec524dfa9a036ba
- SHA1:6b216ddc4346a7b7ac7952c21dab5b5dc85be71a [weak]
- MD5Sum:31363305fb0d685cd116efd64c89d0f5 [weak]
Release file created at: Wed, 16 May 2018 05:38:20 +0000
Fetched 1'039 kB in 2s (473 kB/s)
Reading package lists... Done
E: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic/main/dep11/by-hash/SHA256/72a445c7d354db04d1ffca6f52f7ab66953a3fa889bb66bf6d3210d3ab100f14 Hash Sum mismatch
Hashes of expected file:
- Filesize:118319 [weak]
- SHA256:72a445c7d354db04d1ffca6f52f7ab66953a3fa889bb66bf6d3210d3ab100f14
- SHA1:176f580a423a2fcf3e257f0d9a00713e05545a35 [weak]
- MD5Sum:bdfd4c6a690b2f9d0790443956b327fd [weak]
Hashes of received file:
- SHA256:39e0f680c56897c556fd4ce0dbba71e2622b0d1989f2e3fd5ab391d2c7c5c57f
- SHA1:94e927ca7e5c296674fbed2580f9b34b3eb9f21c [weak]
- MD5Sum:9b7c8db074b22f5aaba8c8161c204b67 [weak]
- Filesize:162304 [weak]
Last modification reported: Thu, 26 Apr 2018 21:24:34 +0000
Release file created at: Thu, 26 Apr 2018 23:37:48 +0000
E: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic/main/dep11/by-hash/SHA256/57f27cd53b92604cbf5c549382eec53d66ef2500fbdd54692688fd3675786aeb
E: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic/universe/dep11/by-hash/SHA256/44352c8652af9c9071b7cc7a035de3cd55b012e1df7291644bf9b99fd9dffd5a
E: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic/universe/dep11/by-hash/SHA256/ad41f363b444b3cec5ab94623ea0a5b42a7ea0165e70af3aabf14f244bdbd9eb
E: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic/multiverse/dep11/by-hash/SHA256/19202b981090cae365536eff597fad79c481e6104bbdb4b5c74c26871123d307
W: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic/multiverse/dep11/by-hash/SHA256/cbdc792d40b3644aa3fc1fc86f08b8449acf078a5ae52435dcf8dec8e941b897
E: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic-updates/main/dep11/by-hash/SHA256/cf4c0efefe32dbb80cc114bbcfea0a0839b376b3a226e5d0eec524dfa9a036ba File has unexpected size (3584 != 1968). Mirror sync in progress? [IP: 130.59.113.36 80]
Hashes of expected file:
- Filesize:1968 [weak]
- SHA256:cf4c0efefe32dbb80cc114bbcfea0a0839b376b3a226e5d0eec524dfa9a036ba
- SHA1:6b216ddc4346a7b7ac7952c21dab5b5dc85be71a [weak]
- MD5Sum:31363305fb0d685cd116efd64c89d0f5 [weak]
Release file created at: Wed, 16 May 2018 05:38:20 +0000
E: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic-updates/main/dep11/by-hash/SHA256/2b149a45789655d141ab257c7d7cb5d23ade57a6cc37b50bdb3b809889038b8c
E: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic-updates/universe/dep11/by-hash/SHA256/3f6762646dd674ed60d5ed3c1079f9ece9d61077d3becb1366a643f745cf4fb6
E: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic-updates/universe/dep11/by-hash/SHA256/0a561754077734a04bc7ab7c6c2a105ad8973f70191aa8fc428695bd67651b82
W: Some index files failed to download. They have been ignored, or old ones used instead.
developer@monad:~$ sudo apt-get install java-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package java-common is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'java-common' has no installation candidate






share|improve this question


























    up vote
    1
    down vote

    favorite












    I followed the tutorial to install JAVA 8.

    But I've the following error message:



    sudo apt-get install oracle-java8-installer
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    oracle-java8-installer : Depends: java-common (>= 0.24) but it is not installable
    Recommends: gsfonts-x11 but it is not installable
    Recommends: oracle-java8-set-default but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.


    What am I doing wrong?



    Update



    I tried to install java-common and I've got:



    developer@monad:~$ sudo apt-get update
    Hit:1 http://archive.canonical.com bionic InRelease
    Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease
    Hit:4 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease
    Hit:6 http://dl.google.com/linux/chrome/deb stable Release
    Hit:7 http://ch.archive.ubuntu.com/ubuntu bionic-backports InRelease
    Get:3 http://ch.archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
    Get:8 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
    Get:5 http://ch.archive.ubuntu.com/ubuntu bionic-updates InRelease [83.2 kB]
    Get:10 http://ch.archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1'019 kB]
    Get:11 http://ch.archive.ubuntu.com/ubuntu bionic/main i386 Packages [1'007 kB]
    Get:12 http://ch.archive.ubuntu.com/ubuntu bionic/main Translation-en [516 kB]
    Get:13 http://ch.archive.ubuntu.com/ubuntu bionic/main amd64 DEP-11 Metadata [477 kB]
    Get:14 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
    Get:14 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
    Get:14 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
    Get:14 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
    Get:14 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
    Get:14 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
    Get:21 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [204 B]
    Get:14 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
    Get:14 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
    Get:23 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [2'456 B]
    Err:14 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons
    Hash Sum mismatch
    Hashes of expected file:
    - Filesize:118319 [weak]
    - SHA256:72a445c7d354db04d1ffca6f52f7ab66953a3fa889bb66bf6d3210d3ab100f14
    - SHA1:176f580a423a2fcf3e257f0d9a00713e05545a35 [weak]
    - MD5Sum:bdfd4c6a690b2f9d0790443956b327fd [weak]
    Hashes of received file:
    - SHA256:39e0f680c56897c556fd4ce0dbba71e2622b0d1989f2e3fd5ab391d2c7c5c57f
    - SHA1:94e927ca7e5c296674fbed2580f9b34b3eb9f21c [weak]
    - MD5Sum:9b7c8db074b22f5aaba8c8161c204b67 [weak]
    - Filesize:162304 [weak]
    Last modification reported: Thu, 26 Apr 2018 21:24:34 +0000
    Release file created at: Thu, 26 Apr 2018 23:37:48 +0000
    Get:24 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 64x64 Icons [245 kB]
    Get:24 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 64x64 Icons [245 kB]
    Get:24 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 64x64 Icons [245 kB]
    Get:24 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 64x64 Icons [245 kB]
    Get:30 http://ch.archive.ubuntu.com/ubuntu bionic/universe DEP-11 64x64 Icons [8'420 kB]
    Get:30 http://ch.archive.ubuntu.com/ubuntu bionic/universe DEP-11 64x64 Icons [8'420 kB]
    Get:30 http://ch.archive.ubuntu.com/ubuntu bionic/universe DEP-11 64x64 Icons [8'420 kB]
    Get:30 http://ch.archive.ubuntu.com/ubuntu bionic/universe DEP-11 64x64 Icons [8'420 kB]
    Get:35 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse i386 Packages [144 kB]
    Get:36 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
    Get:36 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
    Get:36 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
    Get:36 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
    Get:40 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse Translation-en [108 kB]
    Get:41 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse amd64 DEP-11 Metadata [49.7 kB]
    Get:42 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse DEP-11 48x48 Icons [8'931 B]
    Err:42 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse DEP-11 48x48 Icons

    Get:43 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse DEP-11 64x64 Icons [225 kB]
    Err:43 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse DEP-11 64x64 Icons

    Get:44 http://ch.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [1'968 B]
    Err:44 http://ch.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons
    File has unexpected size (3584 != 1968). Mirror sync in progress? [IP: 130.59.113.36 80]
    Hashes of expected file:
    - Filesize:1968 [weak]
    - SHA256:cf4c0efefe32dbb80cc114bbcfea0a0839b376b3a226e5d0eec524dfa9a036ba
    - SHA1:6b216ddc4346a7b7ac7952c21dab5b5dc85be71a [weak]
    - MD5Sum:31363305fb0d685cd116efd64c89d0f5 [weak]
    Release file created at: Wed, 16 May 2018 05:38:20 +0000
    Fetched 1'039 kB in 2s (473 kB/s)
    Reading package lists... Done
    E: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic/main/dep11/by-hash/SHA256/72a445c7d354db04d1ffca6f52f7ab66953a3fa889bb66bf6d3210d3ab100f14 Hash Sum mismatch
    Hashes of expected file:
    - Filesize:118319 [weak]
    - SHA256:72a445c7d354db04d1ffca6f52f7ab66953a3fa889bb66bf6d3210d3ab100f14
    - SHA1:176f580a423a2fcf3e257f0d9a00713e05545a35 [weak]
    - MD5Sum:bdfd4c6a690b2f9d0790443956b327fd [weak]
    Hashes of received file:
    - SHA256:39e0f680c56897c556fd4ce0dbba71e2622b0d1989f2e3fd5ab391d2c7c5c57f
    - SHA1:94e927ca7e5c296674fbed2580f9b34b3eb9f21c [weak]
    - MD5Sum:9b7c8db074b22f5aaba8c8161c204b67 [weak]
    - Filesize:162304 [weak]
    Last modification reported: Thu, 26 Apr 2018 21:24:34 +0000
    Release file created at: Thu, 26 Apr 2018 23:37:48 +0000
    E: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic/main/dep11/by-hash/SHA256/57f27cd53b92604cbf5c549382eec53d66ef2500fbdd54692688fd3675786aeb
    E: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic/universe/dep11/by-hash/SHA256/44352c8652af9c9071b7cc7a035de3cd55b012e1df7291644bf9b99fd9dffd5a
    E: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic/universe/dep11/by-hash/SHA256/ad41f363b444b3cec5ab94623ea0a5b42a7ea0165e70af3aabf14f244bdbd9eb
    E: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic/multiverse/dep11/by-hash/SHA256/19202b981090cae365536eff597fad79c481e6104bbdb4b5c74c26871123d307
    W: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic/multiverse/dep11/by-hash/SHA256/cbdc792d40b3644aa3fc1fc86f08b8449acf078a5ae52435dcf8dec8e941b897
    E: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic-updates/main/dep11/by-hash/SHA256/cf4c0efefe32dbb80cc114bbcfea0a0839b376b3a226e5d0eec524dfa9a036ba File has unexpected size (3584 != 1968). Mirror sync in progress? [IP: 130.59.113.36 80]
    Hashes of expected file:
    - Filesize:1968 [weak]
    - SHA256:cf4c0efefe32dbb80cc114bbcfea0a0839b376b3a226e5d0eec524dfa9a036ba
    - SHA1:6b216ddc4346a7b7ac7952c21dab5b5dc85be71a [weak]
    - MD5Sum:31363305fb0d685cd116efd64c89d0f5 [weak]
    Release file created at: Wed, 16 May 2018 05:38:20 +0000
    E: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic-updates/main/dep11/by-hash/SHA256/2b149a45789655d141ab257c7d7cb5d23ade57a6cc37b50bdb3b809889038b8c
    E: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic-updates/universe/dep11/by-hash/SHA256/3f6762646dd674ed60d5ed3c1079f9ece9d61077d3becb1366a643f745cf4fb6
    E: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic-updates/universe/dep11/by-hash/SHA256/0a561754077734a04bc7ab7c6c2a105ad8973f70191aa8fc428695bd67651b82
    W: Some index files failed to download. They have been ignored, or old ones used instead.
    developer@monad:~$ sudo apt-get install java-common
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Package java-common is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

    E: Package 'java-common' has no installation candidate






    share|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I followed the tutorial to install JAVA 8.

      But I've the following error message:



      sudo apt-get install oracle-java8-installer
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Some packages could not be installed. This may mean that you have
      requested an impossible situation or if you are using the unstable
      distribution that some required packages have not yet been created
      or been moved out of Incoming.
      The following information may help to resolve the situation:

      The following packages have unmet dependencies:
      oracle-java8-installer : Depends: java-common (>= 0.24) but it is not installable
      Recommends: gsfonts-x11 but it is not installable
      Recommends: oracle-java8-set-default but it is not going to be installed
      E: Unable to correct problems, you have held broken packages.


      What am I doing wrong?



      Update



      I tried to install java-common and I've got:



      developer@monad:~$ sudo apt-get update
      Hit:1 http://archive.canonical.com bionic InRelease
      Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease
      Hit:4 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease
      Hit:6 http://dl.google.com/linux/chrome/deb stable Release
      Hit:7 http://ch.archive.ubuntu.com/ubuntu bionic-backports InRelease
      Get:3 http://ch.archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
      Get:8 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
      Get:5 http://ch.archive.ubuntu.com/ubuntu bionic-updates InRelease [83.2 kB]
      Get:10 http://ch.archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1'019 kB]
      Get:11 http://ch.archive.ubuntu.com/ubuntu bionic/main i386 Packages [1'007 kB]
      Get:12 http://ch.archive.ubuntu.com/ubuntu bionic/main Translation-en [516 kB]
      Get:13 http://ch.archive.ubuntu.com/ubuntu bionic/main amd64 DEP-11 Metadata [477 kB]
      Get:14 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
      Get:14 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
      Get:14 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
      Get:14 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
      Get:14 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
      Get:14 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
      Get:21 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [204 B]
      Get:14 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
      Get:14 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
      Get:23 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [2'456 B]
      Err:14 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons
      Hash Sum mismatch
      Hashes of expected file:
      - Filesize:118319 [weak]
      - SHA256:72a445c7d354db04d1ffca6f52f7ab66953a3fa889bb66bf6d3210d3ab100f14
      - SHA1:176f580a423a2fcf3e257f0d9a00713e05545a35 [weak]
      - MD5Sum:bdfd4c6a690b2f9d0790443956b327fd [weak]
      Hashes of received file:
      - SHA256:39e0f680c56897c556fd4ce0dbba71e2622b0d1989f2e3fd5ab391d2c7c5c57f
      - SHA1:94e927ca7e5c296674fbed2580f9b34b3eb9f21c [weak]
      - MD5Sum:9b7c8db074b22f5aaba8c8161c204b67 [weak]
      - Filesize:162304 [weak]
      Last modification reported: Thu, 26 Apr 2018 21:24:34 +0000
      Release file created at: Thu, 26 Apr 2018 23:37:48 +0000
      Get:24 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 64x64 Icons [245 kB]
      Get:24 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 64x64 Icons [245 kB]
      Get:24 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 64x64 Icons [245 kB]
      Get:24 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 64x64 Icons [245 kB]
      Get:30 http://ch.archive.ubuntu.com/ubuntu bionic/universe DEP-11 64x64 Icons [8'420 kB]
      Get:30 http://ch.archive.ubuntu.com/ubuntu bionic/universe DEP-11 64x64 Icons [8'420 kB]
      Get:30 http://ch.archive.ubuntu.com/ubuntu bionic/universe DEP-11 64x64 Icons [8'420 kB]
      Get:30 http://ch.archive.ubuntu.com/ubuntu bionic/universe DEP-11 64x64 Icons [8'420 kB]
      Get:35 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse i386 Packages [144 kB]
      Get:36 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
      Get:36 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
      Get:36 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
      Get:36 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
      Get:40 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse Translation-en [108 kB]
      Get:41 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse amd64 DEP-11 Metadata [49.7 kB]
      Get:42 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse DEP-11 48x48 Icons [8'931 B]
      Err:42 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse DEP-11 48x48 Icons

      Get:43 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse DEP-11 64x64 Icons [225 kB]
      Err:43 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse DEP-11 64x64 Icons

      Get:44 http://ch.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [1'968 B]
      Err:44 http://ch.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons
      File has unexpected size (3584 != 1968). Mirror sync in progress? [IP: 130.59.113.36 80]
      Hashes of expected file:
      - Filesize:1968 [weak]
      - SHA256:cf4c0efefe32dbb80cc114bbcfea0a0839b376b3a226e5d0eec524dfa9a036ba
      - SHA1:6b216ddc4346a7b7ac7952c21dab5b5dc85be71a [weak]
      - MD5Sum:31363305fb0d685cd116efd64c89d0f5 [weak]
      Release file created at: Wed, 16 May 2018 05:38:20 +0000
      Fetched 1'039 kB in 2s (473 kB/s)
      Reading package lists... Done
      E: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic/main/dep11/by-hash/SHA256/72a445c7d354db04d1ffca6f52f7ab66953a3fa889bb66bf6d3210d3ab100f14 Hash Sum mismatch
      Hashes of expected file:
      - Filesize:118319 [weak]
      - SHA256:72a445c7d354db04d1ffca6f52f7ab66953a3fa889bb66bf6d3210d3ab100f14
      - SHA1:176f580a423a2fcf3e257f0d9a00713e05545a35 [weak]
      - MD5Sum:bdfd4c6a690b2f9d0790443956b327fd [weak]
      Hashes of received file:
      - SHA256:39e0f680c56897c556fd4ce0dbba71e2622b0d1989f2e3fd5ab391d2c7c5c57f
      - SHA1:94e927ca7e5c296674fbed2580f9b34b3eb9f21c [weak]
      - MD5Sum:9b7c8db074b22f5aaba8c8161c204b67 [weak]
      - Filesize:162304 [weak]
      Last modification reported: Thu, 26 Apr 2018 21:24:34 +0000
      Release file created at: Thu, 26 Apr 2018 23:37:48 +0000
      E: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic/main/dep11/by-hash/SHA256/57f27cd53b92604cbf5c549382eec53d66ef2500fbdd54692688fd3675786aeb
      E: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic/universe/dep11/by-hash/SHA256/44352c8652af9c9071b7cc7a035de3cd55b012e1df7291644bf9b99fd9dffd5a
      E: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic/universe/dep11/by-hash/SHA256/ad41f363b444b3cec5ab94623ea0a5b42a7ea0165e70af3aabf14f244bdbd9eb
      E: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic/multiverse/dep11/by-hash/SHA256/19202b981090cae365536eff597fad79c481e6104bbdb4b5c74c26871123d307
      W: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic/multiverse/dep11/by-hash/SHA256/cbdc792d40b3644aa3fc1fc86f08b8449acf078a5ae52435dcf8dec8e941b897
      E: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic-updates/main/dep11/by-hash/SHA256/cf4c0efefe32dbb80cc114bbcfea0a0839b376b3a226e5d0eec524dfa9a036ba File has unexpected size (3584 != 1968). Mirror sync in progress? [IP: 130.59.113.36 80]
      Hashes of expected file:
      - Filesize:1968 [weak]
      - SHA256:cf4c0efefe32dbb80cc114bbcfea0a0839b376b3a226e5d0eec524dfa9a036ba
      - SHA1:6b216ddc4346a7b7ac7952c21dab5b5dc85be71a [weak]
      - MD5Sum:31363305fb0d685cd116efd64c89d0f5 [weak]
      Release file created at: Wed, 16 May 2018 05:38:20 +0000
      E: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic-updates/main/dep11/by-hash/SHA256/2b149a45789655d141ab257c7d7cb5d23ade57a6cc37b50bdb3b809889038b8c
      E: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic-updates/universe/dep11/by-hash/SHA256/3f6762646dd674ed60d5ed3c1079f9ece9d61077d3becb1366a643f745cf4fb6
      E: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic-updates/universe/dep11/by-hash/SHA256/0a561754077734a04bc7ab7c6c2a105ad8973f70191aa8fc428695bd67651b82
      W: Some index files failed to download. They have been ignored, or old ones used instead.
      developer@monad:~$ sudo apt-get install java-common
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Package java-common is not available, but is referred to by another package.
      This may mean that the package is missing, has been obsoleted, or
      is only available from another source

      E: Package 'java-common' has no installation candidate






      share|improve this question














      I followed the tutorial to install JAVA 8.

      But I've the following error message:



      sudo apt-get install oracle-java8-installer
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Some packages could not be installed. This may mean that you have
      requested an impossible situation or if you are using the unstable
      distribution that some required packages have not yet been created
      or been moved out of Incoming.
      The following information may help to resolve the situation:

      The following packages have unmet dependencies:
      oracle-java8-installer : Depends: java-common (>= 0.24) but it is not installable
      Recommends: gsfonts-x11 but it is not installable
      Recommends: oracle-java8-set-default but it is not going to be installed
      E: Unable to correct problems, you have held broken packages.


      What am I doing wrong?



      Update



      I tried to install java-common and I've got:



      developer@monad:~$ sudo apt-get update
      Hit:1 http://archive.canonical.com bionic InRelease
      Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease
      Hit:4 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease
      Hit:6 http://dl.google.com/linux/chrome/deb stable Release
      Hit:7 http://ch.archive.ubuntu.com/ubuntu bionic-backports InRelease
      Get:3 http://ch.archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
      Get:8 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
      Get:5 http://ch.archive.ubuntu.com/ubuntu bionic-updates InRelease [83.2 kB]
      Get:10 http://ch.archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1'019 kB]
      Get:11 http://ch.archive.ubuntu.com/ubuntu bionic/main i386 Packages [1'007 kB]
      Get:12 http://ch.archive.ubuntu.com/ubuntu bionic/main Translation-en [516 kB]
      Get:13 http://ch.archive.ubuntu.com/ubuntu bionic/main amd64 DEP-11 Metadata [477 kB]
      Get:14 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
      Get:14 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
      Get:14 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
      Get:14 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
      Get:14 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
      Get:14 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
      Get:21 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [204 B]
      Get:14 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
      Get:14 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
      Get:23 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [2'456 B]
      Err:14 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons
      Hash Sum mismatch
      Hashes of expected file:
      - Filesize:118319 [weak]
      - SHA256:72a445c7d354db04d1ffca6f52f7ab66953a3fa889bb66bf6d3210d3ab100f14
      - SHA1:176f580a423a2fcf3e257f0d9a00713e05545a35 [weak]
      - MD5Sum:bdfd4c6a690b2f9d0790443956b327fd [weak]
      Hashes of received file:
      - SHA256:39e0f680c56897c556fd4ce0dbba71e2622b0d1989f2e3fd5ab391d2c7c5c57f
      - SHA1:94e927ca7e5c296674fbed2580f9b34b3eb9f21c [weak]
      - MD5Sum:9b7c8db074b22f5aaba8c8161c204b67 [weak]
      - Filesize:162304 [weak]
      Last modification reported: Thu, 26 Apr 2018 21:24:34 +0000
      Release file created at: Thu, 26 Apr 2018 23:37:48 +0000
      Get:24 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 64x64 Icons [245 kB]
      Get:24 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 64x64 Icons [245 kB]
      Get:24 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 64x64 Icons [245 kB]
      Get:24 http://ch.archive.ubuntu.com/ubuntu bionic/main DEP-11 64x64 Icons [245 kB]
      Get:30 http://ch.archive.ubuntu.com/ubuntu bionic/universe DEP-11 64x64 Icons [8'420 kB]
      Get:30 http://ch.archive.ubuntu.com/ubuntu bionic/universe DEP-11 64x64 Icons [8'420 kB]
      Get:30 http://ch.archive.ubuntu.com/ubuntu bionic/universe DEP-11 64x64 Icons [8'420 kB]
      Get:30 http://ch.archive.ubuntu.com/ubuntu bionic/universe DEP-11 64x64 Icons [8'420 kB]
      Get:35 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse i386 Packages [144 kB]
      Get:36 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
      Get:36 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
      Get:36 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
      Get:36 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
      Get:40 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse Translation-en [108 kB]
      Get:41 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse amd64 DEP-11 Metadata [49.7 kB]
      Get:42 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse DEP-11 48x48 Icons [8'931 B]
      Err:42 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse DEP-11 48x48 Icons

      Get:43 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse DEP-11 64x64 Icons [225 kB]
      Err:43 http://ch.archive.ubuntu.com/ubuntu bionic/multiverse DEP-11 64x64 Icons

      Get:44 http://ch.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [1'968 B]
      Err:44 http://ch.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons
      File has unexpected size (3584 != 1968). Mirror sync in progress? [IP: 130.59.113.36 80]
      Hashes of expected file:
      - Filesize:1968 [weak]
      - SHA256:cf4c0efefe32dbb80cc114bbcfea0a0839b376b3a226e5d0eec524dfa9a036ba
      - SHA1:6b216ddc4346a7b7ac7952c21dab5b5dc85be71a [weak]
      - MD5Sum:31363305fb0d685cd116efd64c89d0f5 [weak]
      Release file created at: Wed, 16 May 2018 05:38:20 +0000
      Fetched 1'039 kB in 2s (473 kB/s)
      Reading package lists... Done
      E: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic/main/dep11/by-hash/SHA256/72a445c7d354db04d1ffca6f52f7ab66953a3fa889bb66bf6d3210d3ab100f14 Hash Sum mismatch
      Hashes of expected file:
      - Filesize:118319 [weak]
      - SHA256:72a445c7d354db04d1ffca6f52f7ab66953a3fa889bb66bf6d3210d3ab100f14
      - SHA1:176f580a423a2fcf3e257f0d9a00713e05545a35 [weak]
      - MD5Sum:bdfd4c6a690b2f9d0790443956b327fd [weak]
      Hashes of received file:
      - SHA256:39e0f680c56897c556fd4ce0dbba71e2622b0d1989f2e3fd5ab391d2c7c5c57f
      - SHA1:94e927ca7e5c296674fbed2580f9b34b3eb9f21c [weak]
      - MD5Sum:9b7c8db074b22f5aaba8c8161c204b67 [weak]
      - Filesize:162304 [weak]
      Last modification reported: Thu, 26 Apr 2018 21:24:34 +0000
      Release file created at: Thu, 26 Apr 2018 23:37:48 +0000
      E: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic/main/dep11/by-hash/SHA256/57f27cd53b92604cbf5c549382eec53d66ef2500fbdd54692688fd3675786aeb
      E: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic/universe/dep11/by-hash/SHA256/44352c8652af9c9071b7cc7a035de3cd55b012e1df7291644bf9b99fd9dffd5a
      E: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic/universe/dep11/by-hash/SHA256/ad41f363b444b3cec5ab94623ea0a5b42a7ea0165e70af3aabf14f244bdbd9eb
      E: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic/multiverse/dep11/by-hash/SHA256/19202b981090cae365536eff597fad79c481e6104bbdb4b5c74c26871123d307
      W: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic/multiverse/dep11/by-hash/SHA256/cbdc792d40b3644aa3fc1fc86f08b8449acf078a5ae52435dcf8dec8e941b897
      E: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic-updates/main/dep11/by-hash/SHA256/cf4c0efefe32dbb80cc114bbcfea0a0839b376b3a226e5d0eec524dfa9a036ba File has unexpected size (3584 != 1968). Mirror sync in progress? [IP: 130.59.113.36 80]
      Hashes of expected file:
      - Filesize:1968 [weak]
      - SHA256:cf4c0efefe32dbb80cc114bbcfea0a0839b376b3a226e5d0eec524dfa9a036ba
      - SHA1:6b216ddc4346a7b7ac7952c21dab5b5dc85be71a [weak]
      - MD5Sum:31363305fb0d685cd116efd64c89d0f5 [weak]
      Release file created at: Wed, 16 May 2018 05:38:20 +0000
      E: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic-updates/main/dep11/by-hash/SHA256/2b149a45789655d141ab257c7d7cb5d23ade57a6cc37b50bdb3b809889038b8c
      E: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic-updates/universe/dep11/by-hash/SHA256/3f6762646dd674ed60d5ed3c1079f9ece9d61077d3becb1366a643f745cf4fb6
      E: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/bionic-updates/universe/dep11/by-hash/SHA256/0a561754077734a04bc7ab7c6c2a105ad8973f70191aa8fc428695bd67651b82
      W: Some index files failed to download. They have been ignored, or old ones used instead.
      developer@monad:~$ sudo apt-get install java-common
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Package java-common is not available, but is referred to by another package.
      This may mean that the package is missing, has been obsoleted, or
      is only available from another source

      E: Package 'java-common' has no installation candidate








      share|improve this question













      share|improve this question




      share|improve this question








      edited May 16 at 9:56

























      asked May 16 at 9:05









      zero_coding

      163129




      163129




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted











          The following packages have unmet dependencies:



          oracle-java8-installer : Depends: java-common (>= 0.24) but it is not
          installable



          Recommends: gsfonts-x11 but it is not installable



          Recommends: oracle-java8-set-default but it is not going to be installed E: Unable to correct problems, you have
          held broken packages.




          The bold text above says quite much.
          Install java-common by



          sudo apt-get install java-common






          share|improve this answer




















          • what is java-common?
            – zero_coding
            May 16 at 9:43










          • It's a base package for most of the Java runtimes.
            – Vishesh Gautam
            May 16 at 9:49










          • I updated my post.
            – zero_coding
            May 16 at 9:56










          • Seems like there is something wrong with your Sources.list, try installing java-common manually by downloading the package itself. packages.ubuntu.com/search?keywords=java-common
            – Vishesh Gautam
            May 16 at 10:04










          • What did I wrong?
            – zero_coding
            May 16 at 10:42











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1036856%2fcan-not-install-java-8%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          2
          down vote



          accepted











          The following packages have unmet dependencies:



          oracle-java8-installer : Depends: java-common (>= 0.24) but it is not
          installable



          Recommends: gsfonts-x11 but it is not installable



          Recommends: oracle-java8-set-default but it is not going to be installed E: Unable to correct problems, you have
          held broken packages.




          The bold text above says quite much.
          Install java-common by



          sudo apt-get install java-common






          share|improve this answer




















          • what is java-common?
            – zero_coding
            May 16 at 9:43










          • It's a base package for most of the Java runtimes.
            – Vishesh Gautam
            May 16 at 9:49










          • I updated my post.
            – zero_coding
            May 16 at 9:56










          • Seems like there is something wrong with your Sources.list, try installing java-common manually by downloading the package itself. packages.ubuntu.com/search?keywords=java-common
            – Vishesh Gautam
            May 16 at 10:04










          • What did I wrong?
            – zero_coding
            May 16 at 10:42















          up vote
          2
          down vote



          accepted











          The following packages have unmet dependencies:



          oracle-java8-installer : Depends: java-common (>= 0.24) but it is not
          installable



          Recommends: gsfonts-x11 but it is not installable



          Recommends: oracle-java8-set-default but it is not going to be installed E: Unable to correct problems, you have
          held broken packages.




          The bold text above says quite much.
          Install java-common by



          sudo apt-get install java-common






          share|improve this answer




















          • what is java-common?
            – zero_coding
            May 16 at 9:43










          • It's a base package for most of the Java runtimes.
            – Vishesh Gautam
            May 16 at 9:49










          • I updated my post.
            – zero_coding
            May 16 at 9:56










          • Seems like there is something wrong with your Sources.list, try installing java-common manually by downloading the package itself. packages.ubuntu.com/search?keywords=java-common
            – Vishesh Gautam
            May 16 at 10:04










          • What did I wrong?
            – zero_coding
            May 16 at 10:42













          up vote
          2
          down vote



          accepted







          up vote
          2
          down vote



          accepted







          The following packages have unmet dependencies:



          oracle-java8-installer : Depends: java-common (>= 0.24) but it is not
          installable



          Recommends: gsfonts-x11 but it is not installable



          Recommends: oracle-java8-set-default but it is not going to be installed E: Unable to correct problems, you have
          held broken packages.




          The bold text above says quite much.
          Install java-common by



          sudo apt-get install java-common






          share|improve this answer













          The following packages have unmet dependencies:



          oracle-java8-installer : Depends: java-common (>= 0.24) but it is not
          installable



          Recommends: gsfonts-x11 but it is not installable



          Recommends: oracle-java8-set-default but it is not going to be installed E: Unable to correct problems, you have
          held broken packages.




          The bold text above says quite much.
          Install java-common by



          sudo apt-get install java-common







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered May 16 at 9:10









          Vishesh Gautam

          36011




          36011











          • what is java-common?
            – zero_coding
            May 16 at 9:43










          • It's a base package for most of the Java runtimes.
            – Vishesh Gautam
            May 16 at 9:49










          • I updated my post.
            – zero_coding
            May 16 at 9:56










          • Seems like there is something wrong with your Sources.list, try installing java-common manually by downloading the package itself. packages.ubuntu.com/search?keywords=java-common
            – Vishesh Gautam
            May 16 at 10:04










          • What did I wrong?
            – zero_coding
            May 16 at 10:42

















          • what is java-common?
            – zero_coding
            May 16 at 9:43










          • It's a base package for most of the Java runtimes.
            – Vishesh Gautam
            May 16 at 9:49










          • I updated my post.
            – zero_coding
            May 16 at 9:56










          • Seems like there is something wrong with your Sources.list, try installing java-common manually by downloading the package itself. packages.ubuntu.com/search?keywords=java-common
            – Vishesh Gautam
            May 16 at 10:04










          • What did I wrong?
            – zero_coding
            May 16 at 10:42
















          what is java-common?
          – zero_coding
          May 16 at 9:43




          what is java-common?
          – zero_coding
          May 16 at 9:43












          It's a base package for most of the Java runtimes.
          – Vishesh Gautam
          May 16 at 9:49




          It's a base package for most of the Java runtimes.
          – Vishesh Gautam
          May 16 at 9:49












          I updated my post.
          – zero_coding
          May 16 at 9:56




          I updated my post.
          – zero_coding
          May 16 at 9:56












          Seems like there is something wrong with your Sources.list, try installing java-common manually by downloading the package itself. packages.ubuntu.com/search?keywords=java-common
          – Vishesh Gautam
          May 16 at 10:04




          Seems like there is something wrong with your Sources.list, try installing java-common manually by downloading the package itself. packages.ubuntu.com/search?keywords=java-common
          – Vishesh Gautam
          May 16 at 10:04












          What did I wrong?
          – zero_coding
          May 16 at 10:42





          What did I wrong?
          – zero_coding
          May 16 at 10:42













           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1036856%2fcan-not-install-java-8%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          pylint3 and pip3 broken

          Missing snmpget and snmpwalk

          How to enroll fingerprints to Ubuntu 17.10 with VFS491