Ubuntu 12.04 Python 2.7 apt 0.8.16~exp12ubuntu10.17 for amd64 compiled on Jun 13 2014 17:42:13   When I run sudo apt-get install python-pip It installs a a very old version.  $ pip --version pip 1.0 from /usr/lib/python2.7/dist-packages (python 2.7)   This has caused me all sorts of problems as that version of pip has trouble locating many packages.  When I try to install the  via apt-get It wont locate it.  [$ sudo apt-get install python-pip=1.5.6 Reading package lists... Done Building dependency tree        Reading state information... Done E: Version '1.5.6' for 'python-pip' was not found][2]   NOTE: I have previously run apt-get update and apt-get update  When I try to install pip by executing sudo python get-pip.py I get   $ python get-pip.py Downloading/unpacking pip   Cannot fetch index base URL https://pypi.python.org/simple/   Could not find any downloads that satisfy the requirement pip Cleaning up... No distributions at all found for pip Storing debug log for failure in /home/user/.pip/pip.log    I believe this is because of some issues with the Ubuntu VM proxy settings which I can get resolved later in the week.   Preferably I just want to install a recent version of pip via apt-get but I am open to any solution.   Any help is much appreciated
89602
I am new to Linux and Ubuntu.  I was trying to upgrade pip but ran into this...  $ sudo pip install --upgrade pip Cannot fetch index base URL https://pypi.python.org/simple/ Downloading/unpacking pip from https://pypi.python.org/packages/py2.py3/p/pip/pip-7.1.0-py2.py3-none-any.whl#md5=b108384a762825ec20345bb9b5b7209f   Downloading pip-7.1.0-py2.py3-none-any.whl (1.1MB): 1.1MB downloaded Installing collected packages: pip   Found existing installation: pip 1.5.4     Not uninstalling pip at /usr/lib/python2.7/dist-packages, owned by OS Successfully installed pip Cleaning up...   Any idea why?
7161
I had a hard time installing pygame on my ubuntu 16.04 LTS. I use python 3. these are the steps I took to install pygame:  1.first I installed pip:  sudo python3 get-pip.py   this is the output of running pip --version:  pip 10.0.1 from /usr/local/lib/python3.5/dist-packages/pip (python 3.5)    I executed the following commands:   sudo apt-get install python3-dev mercurial  sudo apt-get install libsdl-image1.2-dev libsdl2-dev libsdl-ttf2.0-dev   then I executed the following command:   pip install --user hg+http://bitbucket.org/pygame/pygame  and this is the result in terminal:  Collecting hg+http://bitbucket.org/pygame/pygame   Cloning hg http://bitbucket.org/pygame/pygame to /tmp/pip-req-build-hxy86__i abort: error: Connection reset by peer Command "hg clone --noupdate -q http://bitbucket.org/pygame/pygame /tmp/pip-req-build-hxy86__i" failed with error code 255 in None   and it fails to install pygame. what should I do??
72734
Recently I have faced with the issue that on Ubuntu 18.04 pip3 does not work properly:  :~$ pip3 install jinja2 Traceback (most recent call last):   File "/home/redra/.local/bin/pip3", line 7, in &lt;module&gt;     from pip import main ModuleNotFoundError: No module named 'pip'   Then I have tried to reinstall pip3, seems like it is due to it and faced with another issue:  :~$ sudo -H python3 get-pip.py pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Collecting pip   Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/   Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/   Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/   Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/   Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/   I guess it is stucking ... I cannot install openssl due to bad pip3 and cannot install a new pip3 due to openssl ... Seems like it is cycle (  Any suggestion ? Has anybody faced with the same issue ?
118660
After trying apt-get install postgresql-9.4, updating, trying again etc etc. It seems I can't install it:   Couldn't find any package by regex 'postgresql-9.4'   I know there is a similar question in askubuntu but the answer there doesn't work either.  I need postgresql version 9.4 cause I'm doing a pg:backup from Heroku and I get  error if I don't have 9.4.  Thanks a lot for your help.
66247
I'm having issues with my ubuntu server version 12.04 installed on a HP550 laptop, when i try sudo apt-get install &lt;programname&gt;, e.g apache2 it will not work, saying E: Unable to locate package apache2.  I have tried to look/edit the sources. but they will not work either the gedit command is broken too, i am trying gedit /etc/apt/sources.list for those wondering, is this a case of the computer network not configured properly? it downloaded a language pack easily enough in the installation though. how do i fix this? a prompt reply would be appreciated.
8305
When running sudo apt-get update I get these following errors:  Err archive.ubuntu.com quantal InRelease Err archive.ubuntu.com quantal-updates InRelease Err archive.ubuntu.com quantal-backports InRelease Err archive.ubuntu.com quantal-security InRelease Err archive.ubuntu.com quantal Release.gpg   Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.177 80] Err archive.ubuntu.com quantal-updates Release.gpg   Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.177 80] Err archive.ubuntu.com quantal-backports Release.gpg   Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.177 80] Err archive.ubuntu.com quantal-security Release.gpg   Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.177 80] Reading package lists... Done W: Failed to fetch archive.ubuntu.com/ubuntu/dists/quantal/InRelease   W: Failed to fetch archive.ubuntu.com/ubuntu/dists/quantal-updates/InRelease   W: Failed to fetch archive.ubuntu.com/ubuntu/dists/quantal-backports/InRelease   W: Failed to fetch archive.ubuntu.com/ubuntu/dists/quantal-security/InRelease   W: Failed to fetch archive.ubuntu.com/ubuntu/dists/quantal/Release.gpg  Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.177 80] W: Failed to fetch archive.ubuntu.com/ubuntu/dists/quantal-updates/Release.gpg  Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.177 80] W: Failed to fetch archive.ubuntu.com/ubuntu/dists/quantal-backports/Release.gpg  Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.177 80] W: Failed to fetch archive.ubuntu.com/ubuntu/dists/quantal-security/Release.gpg  Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.177 80] W: Some index files failed to download. They have been ignored, or old ones used instead.   I am using Ubuntu 12.04. This is the command I used after installing Ubuntu from window installer. I am sure my laptop is connected to internet. What can I do now?
6917
I am trying to install current stable version 0.12.1, but it only installs 0.9.9. Any chance to install latest version with apt-get install? It seems that 0.9.9 is very old :(
3544
I am a new Ubuntu user running Ubuntu 13.04.  I've been trying to install and use a DeDRM tool, but I've been having problems doing so. I was following some directions that said I needed a version of Python 2.7, but not anything Python 3.0 or later (because 3.0 versions are missing some necessary libraries?). I tried to install Python 2.7.5.6, but it didn't work. I thought it was probably because I had the later version of Python, so I went through terminal and removed Python 3.3, so I could install the earlier version of Python.  Now that I've uninstalled Python 3.3, a lot of applications no longer work, including the terminal and the Ubuntu Software Center. I have no idea how to fix this problem now.
78790
I'm using Ubuntu 11.10.  The python 2.7.2 provided has a bug that has been corrected in the latest 2.7.2 sources from the python repository.  What is the recommended way to replace the ubuntu provided python with the python from source? Or put another way, how do I "update" the ubuntu-provided one?  Ideally, I would just be able to create new .deb(s) that "update" the python2.7/python2.7-dev provided by Ubuntu.
110868
when i use command sudo apt-get install git it's return below erorrs and it's return for any application to install below :   Setting up util-linux (2.25.2-4ubuntu3) ... update-alternatives: error: cannot stat file '/usr/bin/nodejs': Too many levels of symbolic links dpkg: error processing package util-linux (--configure):  subprocess installed post-installation script returned error exit status 2 Errors were encountered while processing:  util-linux E: Sub-process /usr/bin/dpkg returned an error code (1)   update with sudo apt-get update not working and report below erorr  Fetched 7,032 kB in 5min 32s (21.2 kB/s)                                        W: Failed to fetch http://ppa.launchpad.net/paullo612/unityshell-rotated/ubuntu/dists/vivid/main/binary-amd64/Packages  404  Not Found  W: Failed to fetch http://ppa.launchpad.net/paullo612/unityshell-rotated/ubuntu/dists/vivid/main/binary-i386/Packages  404  Not Found  E: Some index files failed to download. They have been ignored, or old ones used instead.   how can fix it ?
47484
I am trying to install the Pillow module for python 3.3, but for that  I need to install pip. Every time that I install pip it installs for python 2.7, any help?
117334
I'm attempting to install both the last version of python 2 which is currently 2.7.14 according to the site, and the latest for v3, even though I don't really need it. (Just to see if I can get any version of python to work)  I only truly need python 2 in order to run an old python program on Ubuntu.  I recently tried installing both versions in the following manner, first:  sudo apt-get install python2.7   After python 2 seems installed, I tried checking the version:  python -V   However, this input returns:  -bash: python: command not found   Same with python 3:  sudo apt-get install python3.6   I get another negative output when checking for the version.  -bash: /usr/bin/python3: No such file or directory   It seems like both versions don't fully install.  I must add an important fact though, the reason why I can't get to install and use any python version on my Ubuntu system is provably because I already removed python 3 previously in this doubtfull manner:  sudo apt purge python3.5-minimal   Since:  sudo apt-get remove python3.5   Wasn't doing the job for the removal of python 3 (It still fully functioned). I feel like I may have deleted something important while trying to propperly re-install python on my sistem.  Why I installed python 3 (Which I did get to work) if all I really need is python 2? The answer is, I didn't know I needed python 2 in order to run this python program, so I thought installing the latest version would be the wisest thing to do. However the developer informed me that the program can only run with python 2 (Once I found out I couldn't run it on 3). So I thought the best thing would be to remove python 3 entirely and install 2 instead, however this hasn't gone so well.  Could I get some orientation on how to propperly fix this mess and install python 2? All I really need is python 2 for executing a program from that version.  Specifications:  Ubuntu version: 17.04 Desired python version: 2.7.14 (Currently at the time of writing this is  latest)   If you find my issue is not concise enough, please ask. I'll try my best at expanding the details (By editing + commenting).
54551
I just installed a fresh version of Ubuntu 19.10 today, and the first thing I decided to do was to install GNU Screen, using sudo apt-get install screen. my output was: Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package screen  I figured the package archives were not quite updated as it was a clean install so I tried sudo apt-get update. This is what I got: Get:1 http://security.ubuntu.com/ubuntu eoan-security InRelease [97.5 kB]       Err:2 http://au.archive.ubuntu.com/ubuntu eoan InRelease   Cannot initiate the connection to au.archive.ubuntu.com:80 (2001:388:30bc:cafe::beef). - connect (101: Network is unreachable) Could not connect to au.archive.ubuntu.com:80 (202.158.214.106), connection timed out Err:3 http://au.archive.ubuntu.com/ubuntu eoan-updates InRelease      Cannot initiate the connection to au.archive.ubuntu.com:80 (2001:388:30bc:cafe::beef). - connect (101: Network is unreachable) Err:4 http://au.archive.ubuntu.com/ubuntu eoan-backports InRelease   Cannot initiate the connection to au.archive.ubuntu.com:80 (2001:388:30bc:cafe::beef). - connect (101: Network is unreachable) Fetched 97.5 kB in 31s (3,106 B/s) Reading package lists... Done Building dependency tree        Reading state information... Done All packages are up to date. W: Failed to fetch http://au.archive.ubuntu.com/ubuntu/dists/eoan/InRelease  Cannot initiate the connection to au.archive.ubuntu.com:80 (2001:388:30bc:cafe::beef). - connect (101: Network is unreachable) Could not connect to au.archive.ubuntu.com:80 (202.158.214.106), connection timed out W: Failed to fetch http://au.archive.ubuntu.com/ubuntu/dists/eoan-updates/InRelease  Cannot initiate the connection to au.archive.ubuntu.com:80 (2001:388:30bc:cafe::beef). - connect (101: Network is unreachable) W: Failed to fetch http://au.archive.ubuntu.com/ubuntu/dists/eoan-backports/InRelease  Cannot initiate the connection to au.archive.ubuntu.com:80 (2001:388:30bc:cafe::beef). - connect (101: Network is unreachable) W: Some index files failed to download. They have been ignored, or old ones used instead.  I'm really not sure why it would be doing this, other than maybe some first-use hiccups? The computer is definitely connected to the internet, as I am writing this from that machine, and I have tried running the commands after rebooting and it still gives the errors. I can't seem to be able to connect to au.archive.ubuntu.com at all. ping au.archive.ubuntu.com just sits there without a response. If anyone could help, that would be great! If any extra information is required I'd be happy to edit it into the question.
13555
I'm trying to install PIL a python module on ubuntu   I first need to install a package called python-imaging using the following command    sudo apt-get build-dep python-imaging   When I try and do this I get the error   E: You must put some 'source' URIs in your sources.list   I saw  question whihc shows how to fix via the GUI but I'm using the command line. Does anyone know how I can fix this error..?    UPDATE: Based on the below answers I've updated my package list but I now get this error. Not sure if it is related, if not I'll start a new question as I can't find reference to the error anywhere.   E: Build-Depends dependency for python-imaging cannot be satisfied because candidate version of package python-all-dev can't satisfy version requirements
84542
The apt-get command and the sudo command does not work for me. which apt-get returns nothing. I checked by bin folder to make sure, and there is no aptget. I however have wget. Can I install apt-get with wget? If not, how can I install it?
58403
I wanted to remove and reinstall python2.7 interpreter on 12.04  But when I did sudo apt-get remove python2.7, The crazy terminal started to remove everything!!! Any idea how I can restore whatever I've removed?
88741
According to official documentation of Python, Python2.7 support will end near in future.     DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at    Why is Ubuntu not using Python3 as default in their upcoming version?  $ cat /etc/os-release  NAME="Ubuntu" VERSION="19.04 (Disco Dingo)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 19.04" VERSION_ID="19.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=disco UBUNTU_CODENAME=disco     $ python Python 2.7.16 (default, Apr  6 2019, 01:42:57)  [GCC 8.3.0] on linux2 Type "help", "copyright", "credits" or "license" for more information.