Build dependencies for emacs24 could not be satisfied 14.04

I want to manually install emacs24.4 and am following the widely available tutorials for doing so under 14.04 but when I want to install the required build-dependencies:

sudo apt-get build-dep emacs24
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages have unmet dependencies:
 libgtk-3-dev : Depends: libwayland-dev (>= 1.2.0) but it is not going to be installed
E: Build-dependencies for emacs24 could not be satisfied.

How хан I resolve this problem эксперт trying to install the dependency manually gets я into an endless recursion on different unmet dependencies.

Эксперт requested by comments:

apt-cache policy libwayland-dev
libwayland-dev:
  Installed: (none)
  Candidate: 1.4.0-1ubuntu1
  Version table:
     1.4.0-1ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

Эксперт requested by comments:

sudo apt-mark showhold
$>

(emtpy output)

I did обитал digging and it seems that the libwayland-dev depends on too old versions:

The following packages have unmet dependencies:
 libwayland-dev : Depends: libwayland-client0 (= 1.4.0-1ubuntu1) but 1.7.0-0ubuntu1~trusty1 is to be installed
                  Depends: libwayland-server0 (= 1.4.0-1ubuntu1) but 1.7.0-0ubuntu1~trusty1 is to be installed
                  Depends: libwayland-cursor0 (= 1.4.0-1ubuntu1) but 1.7.0-0ubuntu1~trusty1 is to be installed

Эксперт when I try to install (all updates я пахал installed):

sudo apt-get install libwayland-client0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libwayland-client0 is already the newest version.

dpkg -s libwayland-client0
Package: libwayland-client0
Status: install ok installed
Priority: optional
Section: libs
Installed-Size: 95
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Multi-Arch: same
Source: wayland
Version: 1.7.0-0ubuntu1~trusty1

В DOWNGRADE of the dependencies is не OPTION схвати I have (of course) dependencies on the newer libs, though if it is possible to have two library versions installed at the same украдите, and this fixes the problem, бll consider that в working solution.

1
задан 21 August 2015 в 21:26

1 ответ

Вы могли обновить от Надежного человека до Яркого. Но Вы используете выпуск LTS, поэтому, другую возможность:

Измените зависимости с шагами ниже, но я не могу гарантировать, что это без побочных эффектов. С другой стороны, у Вас нет большого выбора, если Вы не хотите понижать другие пакеты.

Но это - только библиотека разработки, и поэтому Ваша система не будет иначе затронута.

Принуждение установки через

sudo dpkg -i --force-all libwayland-dev_1.4.0-1ubuntu1_amd64.deb

НЕ работал бы, после следующего sudo apt-get dist-upgrade или sudo apt-get upgrade у Вас была бы проблема

You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 libwayland-dev : Depends: libwayland-client0 (= 1.4.0-1ubuntu1) but 1.7.0-0ubuntu1 is installed
                  Depends: libwayland-server0 (= 1.4.0-1ubuntu1) but 1.7.0-0ubuntu1 is installed
                  Depends: libwayland-cursor0 (= 1.4.0-1ubuntu1) but 1.7.0-0ubuntu1 is installed
E: Unmet dependencies. Try using -f.

Поэтому

  1. Загрузите deb файл libwayland-dev_1.4.0-1ubuntu1_amd64.deb

    cd; wget http://mirrors.kernel.org/ubuntu/pool/main/w/wayland/libwayland-dev_1.4.0-1ubuntu1_amd64.deb
    
  2. Измените зависимости

    mkdir deb$$
    cp libwayland-dev_1.4.0-1ubuntu1_amd64.deb deb$$
    cd deb$$
    dpkg-deb -x libwayland-dev_1.4.0-1ubuntu1_amd64.deb deb
    cd deb
    dpkg-deb -e ../libwayland-dev_1.4.0-1ubuntu1_amd64.deb
    perl -i -pe 's/= 1\.4\.0-1ubuntu1/>= 1.4.0-1ubuntu1/g' DEBIAN/control
    
  3. Воссоздайте deb файл

    cd ..
    sudo dpkg-deb -b deb
    
  4. Установите deb файл

    sudo dpkg -i deb.deb
    

Вот установка на моем Ярком

% apt-cache policy libwayland-client0
libwayland-client0:
  Installed: 1.7.0-0ubuntu1
  Candidate: 1.7.0-0ubuntu1
  Version table:
 *** 1.7.0-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages
        100 /var/lib/dpkg/status
     1.7.0-0ubuntu1~vivid1 0
        500 http://ppa.launchpad.net/gnome3-team/gnome3-staging/ubuntu/ vivid/main amd64 Packages

% apt-cache policy libwayland-dev
libwayland-dev:
  Installed: 1.4.0-1ubuntu1
  Candidate: 1.7.0-0ubuntu1
  Version table:
     1.7.0-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages
     1.7.0-0ubuntu1~vivid1 0
        500 http://ppa.launchpad.net/gnome3-team/gnome3-staging/ubuntu/ vivid/main amd64 Packages
 *** 1.4.0-1ubuntu1 0
        100 /var/lib/dpkg/status
3
ответ дан 7 December 2019 в 12:43

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

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