I installed Ubuntu 14.04 image on docker. After that, when I try to install packages inside the ubuntu image, I\'m getting unable to locate package error:
a
From the docs in May 2017 2018 2019 2020
Always combine
RUN apt-get updatewithapt-get installin the sameRUNstatement, for example
RUN apt-get update && apt-get install -y package-bar(...)
Using
apt-get updatealone in aRUNstatement causes caching issues and subsequentapt-get installinstructions fail.(...)
Using
RUN apt-get update && apt-get install -yensures your Dockerfile installs the latest package versions with no further coding or manual intervention. This technique is known as “cache busting”.