Table of Contents

apt-get update reference

When needed
E: Failed to fetch <uri>  404  Not Found [IP: <ip> 80]
E: Failed to fetch <uri>  404  Not Found [IP: <ip> 80]
When fails
  • Check files in:

  • Files for the list of packages, downloaded from Ubuntu servers.
  • The size of the files is over MBs, people generally delete these files when building a Docker image.

apt vs apt-get discussion

The apt command is meant to be pleasant for end users and does not need to be backward compatible like apt-get(8).

Install java8 with apt-get howto

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

java -version
sudo apt-get install oracle-java8-set-default

sudo update-alternatives --config java