0
votes

I am trying to install Spark which requires Java with using

!apt-get install openjdk-8-jdk-headless -qq > /dev/null

And I get an error after it.

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jre-headless_8u252-b09-1~18.04_amd64.deb 404 Not Found [IP: 91.189.88.142 80] E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jdk-headless_8u252-b09-1~18.04_amd64.deb 404 Not Found [IP: 91.189.88.142 80]

Is there any problem with the servers?

I am doing this on Google Colab.

1
sudo apt-get install openjdk-8-jdk-headless ?Robert Harvey
Anyway, those two URLs do indeed return 404.Robert Harvey

1 Answers

4
votes

You should update your local version of the package catalog.

sudo apt update

After the above synchronisation step, you can re-issue the command

sudo apt-get install openjdk-8-jdk-headless -qq > /dev/null

Thereby, it will download the latest version of openjdk-8-jdk-headless. There is an updated package in the repository. It has the version 8u282-b08. Note the difference.

See also this direct link here to download a .deb package.: