Install python-pip on Ubuntu 14.04.2 Problem

Trying to install python-pip on a new Ubuntu virtual machine 14.04.2.

sudo apt-get update sudo apt-get install python-pip 

The error I get indicates that some basic libc package was not 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] 

Indeed, clicking the URL specified in the browser calls 404.

The same problem occurs when trying to install python-dev and python3-pip .

What is the workaround?


EDIT - Allowed

The problem was that I was building a virtual machine using tramps and dockers.

The RUN sudo apt-get update step RUN sudo apt-get update in my Dockerfile was cached for some reason, i.e. it was skipped. Consequently, python-pip was probably looking for an obsolete dependency.

+7
linux ubuntu apt
source share
1 answer

I am in virtualenv where all I had to do was:

pip install --upgrade pip

Now that virtualenv is updated, but I didn't have to bother with the rest of the Ubuntu pip on this system. Probably the best way to go, given how old Ubuntu doesn't want to mess with their packaging system.

0
source share

All Articles