apt-get install python-dev не удалось устранить зависимость [дубликат]

Я не могу установить python-dev на свой сервер. ЦП - ARM64 ОС - Ubuntu16.04.03

Не удалось из-за неудовлетворенных зависимостей.

Я уже пробовал выполнить обновление, обновление, принудительную установку, и я использовал несколько ссылок для решения. Похоже, проблема специфична для ARM64 с ubuntu16.04.3 ...

# sudo apt policy python-dev
python-dev:
  Installed: (none)
  Candidate: 2.7.11-1
  Version table:
     2.7.11-1 500
        500 http://us.ports.ubuntu.com/ubuntu-ports xenial/main arm64 Packages

Я попытался вручную установить зависимый пакет python pkg, но не смог разрешить зависимость:

root@ubuntu:/home# sudo apt-get install python-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python-dev : Depends: libpython-dev (= 2.7.11-1) but it is not going to be installed
              Depends: python2.7-dev (>= 2.7.11-1~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

root@ubuntu:/home# sudo apt-get install python2.7-dev 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python2.7-dev : Depends: libpython2.7-dev (= 2.7.12-1ubuntu0~16.04.2) but it is not going to be installed
                 Depends: libpython2.7 (= 2.7.12-1ubuntu0~16.04.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

root@ubuntu:/home# sudo apt-get install libpython2.7 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libpython2.7 : Depends: libpython2.7-stdlib (= 2.7.12-1ubuntu0~16.04.1) but 2.7.12-1ubuntu0~16.04.2 is to be installed
E: Unable to correct problems, you have held broken packages.

root@ubuntu:/home# sudo apt-get install libpython2.7-stdlib 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libpython2.7-stdlib is already the newest version (2.7.12-1ubuntu0~16.04.2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

root@ubuntu:/home# sudo apt-get install libpython2.7 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libpython2.7 : Depends: libpython2.7-stdlib (= 2.7.12-1ubuntu0~16.04.1) but 2.7.12-1ubuntu0~16.04.2 is to be installed
E: Unable to correct problems, you have held broken packages.

Пожалуйста, дайте мне знать, если нужно поделиться дополнительной информацией.

Спасибо

0
задан 27 December 2017 в 09:27

1 ответ

Попробуйте запустить

 sudo apt-get install -f

Я столкнулся с аналогичной проблемой, что и некоторые другие пакеты, и это сработало. Я надеюсь, что вы уже выполнили эту команду.

0
ответ дан 27 December 2017 в 09:27

Другие вопросы по тегам:

Похожие вопросы: