Attempting to install python-pip on a fresh Ubuntu 14.04.2 VM.
sudo apt-get update
sudo apt-get install python-pip
The error I get indicates some basic libc
package can't be found:
Err http://archive.ubuntu.com/ubuntu/ trusty-security/main linux-libc-dev amd64 3.13.0-52.86
404 Not Found [IP: 91.189.91.15 80]
Fetched 26.1 MB in 4s (5918 kB/s)
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_3.13.0-52.86_amd64.deb 404 Not Found [IP: 91.189.91.15 80]
And indeed, hitting the URL listed from a browser throws a 404.
Same issue happens when trying to install python-dev
and python3-pip
.
What's the workaround?
EDIT - Solved
The problem was actually that I was building the VM using vagrant and docker.
The RUN sudo apt-get update
step in my Dockerfile was cached for some reason, meaning it was being skipped. Consequently, python-pip
was probably looking for an outdated dependency.