Не удается установить libcairo2-dev в Ubuntu 20.04

В Ubuntu 20.04 (обновлено с 18.04) I ' Я пытаюсь установить libcairo2-dev, но я получаю информацию об отсутствующих зависимостях. Наконец, кажется, что все установлено, но есть какая-то проблема с именами lib или чем-то еще. У кого-нибудь есть идеи?

> sudo apt install libcairo2-dev

The following packages have unmet dependencies:
 libcairo2-dev : Depends: libglib2.0-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

, затем

> sudo apt install libglib2.0-dev

The following packages have unmet dependencies:
 libglib2.0-dev : Depends: libselinux1-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

, затем

> sudo apt install libselinux1-dev

The following packages have unmet dependencies:
 libselinux1-dev : Depends: libpcre2-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

, затем

> sudo apt install libpcre2-dev

The following packages have unmet dependencies:
 libpcre2-dev : Depends: libpcre2-8-0 (= 10.34-7) but 10.34-7+ubuntu18.04.1+deb.sury.org+1 is to be installed
E: Unable to correct problems, you have held broken packages.

, но, наконец, все в порядке, но не в порядке.

> sudo apt install libpcre2-8-0

libpcre2-8-0 is already the newest version (10.34-7+ubuntu18.04.1+deb.sury.org+1).

РЕДАКТИРОВАТЬ:

@ N0rbert: running:

> apt-cache policy libpcre2-8-0 libpcre2-dev libselinux1-dev libglib2.0-dev

выводит:

libpcre2-8-0:
  Installed: 10.34-7+ubuntu18.04.1+deb.sury.org+1
  Candidate: 10.34-7+ubuntu18.04.1+deb.sury.org+1
  Version table:
 *** 10.34-7+ubuntu18.04.1+deb.sury.org+1 100
        100 /var/lib/dpkg/status
     10.34-7 500
        500 http://mirror.switch.ch/ftp/mirror/ubuntu focal/main amd64 Packages
libpcre2-dev:
  Installed: 10.21-1
  Candidate: 10.34-7
  Version table:
     10.34-7 500
        500 http://mirror.switch.ch/ftp/mirror/ubuntu focal/main amd64 Packages
 *** 10.21-1 100
        100 /var/lib/dpkg/status
libselinux1-dev:
  Installed: (none)
  Candidate: 3.0-1build2
  Version table:
     3.0-1build2 500
        500 http://mirror.switch.ch/ftp/mirror/ubuntu focal/main amd64 Packages
libglib2.0-dev:
  Installed: (none)
  Candidate: 2.64.2-1~fakesync1
  Version table:
     2.64.2-1~fakesync1 500
        500 http://mirror.switch.ch/ftp/mirror/ubuntu focal/main amd64 Packages

@ Парса Мусави: Установка из пакета также не работает:

> sudo dpkg -i libpcre2-dev_10.21-1_amd64.deb 

(Reading database ... 271075 files and directories currently installed.)
Preparing to unpack libpcre2-dev_10.21-1_amd64.deb ...
Unpacking libpcre2-dev:amd64 (10.21-1) over (10.21-1) ...
dpkg: dependency problems prevent configuration of libpcre2-dev:amd64:
 libpcre2-dev:amd64 depends on libpcre2-8-0 (= 10.21-1); however:
  Version of libpcre2-8-0:amd64 on system is 10.34-7+ubuntu18.04.1+deb.sury.org+1.
 libpcre2-dev:amd64 depends on libpcre2-16-0 (= 10.21-1); however:
  Version of libpcre2-16-0:amd64 on system is 10.34-7.
 libpcre2-dev:amd64 depends on libpcre2-32-0 (= 10.21-1); however:
  Version of libpcre2-32-0:amd64 on system is 10.34-7.
 libpcre2-dev:amd64 depends on libpcre2-posix0 (= 10.21-1); however:
  Package libpcre2-posix0 is not installed.

dpkg: error processing package libpcre2-dev:amd64 (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.9.1-1) ...
Errors were encountered while processing:
 libpcre2-dev:amd64
0
задан 8 June 2020 в 12:32

1 ответ

Focal Fossa's official repository contains liblibpcre2-8-0 v10.34-7. However, you have v10.34-7+ubuntu18.04.1+deb.sury.org+1 installed which clearly seems to be from third party source. Since the output of apt-cache policy libpcre2-8-0 shows that you don't have any sources which provides the unofficial version, you can install v10.34-7 using apt. To install run,

sudo apt install libpcre2-8-0=10.34-7
1
ответ дан 19 June 2020 в 21:28

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

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