При попытке загрузить SWI-Prolog с помощью sudo apt-get install swi-prolog
я получил серию ошибок:
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:
libpython3-dev : Depends: libpython3.5-dev (>= 3.5.1-2~) but it is not installable
python3.5-dev : Depends: python3.5 (= 3.5.2-2ubuntu0~16.04.4) but 3.5.2-2ubuntu0~16.04.3 is to be
installed
Depends: libpython3.5-dev (= 3.5.2-2ubuntu0~16.04.4) but it is not installable
Depends: libpython3.5 (= 3.5.2-2ubuntu0~16.04.4) but 3.5.2-2ubuntu0~16.04.3 is to be
installed
swi-prolog-nox : Depends: libossp-uuid16 but it is not going to be installed
Depends: libreadline7 (>= 6.0) but it is not going to be installed
Depends: libssl1.1 (>= 1.1.0) but it is not going to be installed
Depends: libedit-dev but it is not going to be installed
Depends: libgmp-dev but it is not going to be installed
Depends: libncursesw5-dev but it is not going to be installed
Depends: libreadline-dev but it is not going to be installed
Recommends: debhelper but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Я попробовал apt-get - f install
, в результате которого возникли ошибки:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
libpython3-dev : Depends: libpython3.5-dev (>= 3.5.1-2~) but it is not
installable
python3.5-dev : Depends: python3.5 (= 3.5.2-2ubuntu0~16.04.4) but 3.5.2-
2ubuntu0~16.04.3 is installed
Depends: libpython3.5-dev (= 3.5.2-2ubuntu0~16.04.4) but it is
not installable
Depends: libpython3.5 (= 3.5.2-2ubuntu0~16.04.4) but 3.5.2-
2ubuntu0~16.04.3 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by
held packages.
E: Unable to correct dependencies
У меня также были такие же проблемы при выполнении полного обновления с использованием sudo apt-get update
или upgrade
. Как я могу исправить эти ошибки?
Спасибо!
Отвечая на мой вопрос .... Мне пришлось сделать новую установку Ubuntu. Сейчас 20.04.