На этот вопрос уже есть ответ здесь:
$ sudo apt-get install python2.7
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
python:i386 : Depends: python2.7:i386 (>= 2.7.5-1~) but it is not going to be installed
Depends: python-minimal:i386 (= 2.7.5-5ubuntu3) but it is not going to be installed
Depends: libpython-stdlib:i386 (= 2.7.5-5ubuntu3) but it is not going to be installed
python2.7 : Depends: python2.7-minimal (= 2.7.12-1~trusty1) but it is not going to be installed
Depends: libpython2.7-stdlib (= 2.7.12-1~trusty1) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Раньше я использовал команду sudo apt-get autoremove 'python. *'
, и теперь у меня возникают проблемы с установкой и зависимостями при загрузке Python 2.7.
Мне нужно загрузить Python 2.7.
Для более технического Вы могли создать свое собственное из источника.
1 - Загрузите и извлеките v2.7.6 - https://www.python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz
wget https://www.python.org/ftp/python/2.7.5/Python-2.7.6.tar.xz && tar -xJvf Python-2.7.6.tar.xz
2 - Переместитесь в dir
cd Python-2.7.6
3 - Настроить
./configure
4 - Сделайте и установите
make && sudo make install
5 - Проверить
python
команда должна поднять подсказку, содержащую что-то как
Python 2.7.6 (default, Nov 23 2017, 15:49:48)
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>