ppa : cassou / emacs에서 Emacs 24를 설치할 수 없습니다


8

내 컴퓨터에 Emacs 24를 설치하려면 다음 지침을 따르십시오 ( http://www.mikeyboldt.com/2011/11/30/install-emacs-24-in-ubuntu/ 에서 차용 ).

sudo add-apt-repository ppa:cassou/emacs
sudo apt-get update
sudo apt-get install emacs-snapshot

그러나 다음과 같은 오류가 발생합니다.

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:
emacs-snapshot : Depends: libgnutls26 (>= 2.12.6.1-0) but 2.10.5-1ubuntu3 is to be installed
Depends: libmagickcore4 (>= 8:6.6.9.7) but it is not installable
Depends: libmagickwand4 (>= 8:6.6.9.7) but it is not installable
E: Unable to correct problems, you have held broken packages.

1
시도 sudo apt-get install -f?
jrg

불운. sudo apt-get install -f를 실행 한 다음 sudo apt-get autoremove를 실행 한 후에도 여전히 같은 오류가 발생합니다.
Kevin Albrecht

나는이 똑같은 문제에 직면하고있다.
GeneralBecos

방금 업데이트 후 다시 시도했는데 이제 작동했습니다!
GeneralBecos

답변:


5

어제 같은 오류가 발생했습니다. 리포지토리에 모든 emacs 패키지를 설치하려고 시도했지만 작동하지 않을 때 충돌이 발생했을 수 있습니다. 작동 emacs23한다면 필요하지 않았으므로 emacs-snapshot다음을 수행했습니다.

모든 Emacs 패키지 제거

계속하기 전에,`sudo apt-cache search emacs '를 발행하여 어떤 emacs 패키지가 설치 될 수 있는지 살펴보십시오. 출력에서 모든 것을 희생 할 수 있다면 다음 제안을 진행하십시오.

sudo apt-get remove `apt-cache search emacs | awk '{print $1}'` --purge

유지하려는 출력에 다른 항목이 표시되는 경우 원하지 않는 것을 제거하는 빠른 방법은 명령 출력을 파일로 리디렉션하고 해당 파일을 편집 한 다음 내용을 사용하는 것입니다. 에 대한 인수 파일입니다 apt-get remove.

  1. sudo apt-cache search emacs > remove.txt
  2. 유지하려는remove.txt 패키지 줄을 삭제하여 편집하십시오 . 여기서 목표는 emacs와 관련된 모든 것을 제거하는 것이므로 해당 패키지를 파일에 남겨 두십시오.
  3. sudo cat remove.txt | xargs apt-get remove --purge

emacs-snapshot이 올바르게 설치되지 않아서 여기에 오류가 발생할 수 있습니다. 그럴 경우 먼저 손상된 패키지를 강제 설치 한 다음 제거 제거하여 해당 패키지를 수동으로 제거하십시오.

sudo apt-get -f install # don't list packages here
sudo apt-get remove emacs-snapshot --purge

또한 아마에 좋은 아이디어이다 autocleanautoremove.

sudo apt-get autoclean
sudo apt-get autoremove

이맥스 설치 24

sudo apt-get install emacs-snapshot

이것은 PPA가 올바르게 추가되었다고 가정합니다 (cassou PPA도 사용하고 있습니다). 이제 모든 것이 잘 작동하는 것 같습니다!

시험 aptitude

원래이 답변을 작성 한 이후 aptitude명령 줄에서 패키지를 관리하는 데 사용 했습니다. 발행 sudo aptitude에서 얻은 그래픽 인터페이스 (ncurses)가 마음에 들지 않으므로 다른 데스크탑 환경에서 실험하여 남은 종속성 / 충돌을 해결해야 할 때만 사용합니다. 대부분의 시간, 나는 단순히 드롭 인 교체로 사용할 apt-get처럼 sudo aptitude install [package].

관련 : 적성은 여전히 ​​apt-get보다 우월한 것으로 간주됩니까?


12.04에 이것을하지 않을 것입니다 sudo apt-get remove apt-cache search emacs | awk '{print $1}'--purge 내가 그것을 시작하기 시작했지만 우분투 밴시 화합 geany의 절반과 우분투의 다른 291mb를 제거하고 싶었습니다.
sayth

나는 그 장님을하는 것이 바람직하지 않다는 데 동의합니다. apt-cache search emacs진행하기 전에 출력 확인을 제안하기 위해 답변을 편집했습니다 . 나에게 이것은 문제를 해결 한 유일한 솔루션이었습니다. 아무것도 다시 설치해야한다는 것을 기억하지 못하지만 오류가 발생하면 패키지 관리자로 쉽게 수정할 수 있습니다.
jrhorn424

@ jrhorn424 "sudo apt-get remove apt-cache search emacs | awk '{print $1}'--purge" 명령을 실행할 수 없습니다 .
전설

2

이 PPA에서 Emacs를 설치했으며 종속성을 확인했습니다. Ubuntu 11.10은 기본적으로이 PPA와 함께 작동하므로 아무런 문제가 없습니다. emacs-snapshot의 종속성 목록은 다음과 같습니다.

emacs-snapshot-bin-common (= 1:20111227-1~ppa1~oneiric1)libasound2 (>> 1.0.24.1), libc6 (>= 2.11), libcairo2 (>= 1.2.4), libdbus-1-3 (>= 1.1.1), libfontconfig1 (>= 2.8.0), libfreetype6 (>= 2.2.1), libgdk-pixbuf2.0-0 (>= 2.22.0), libgif4 (>= 4.1.4), libglib2.0-0 (>= 2.26.0), libgnutls26 (>= 2.9.11-0), libgpm2 (>= 1.20.4), libgtk-3-0 (>= 3.0.0), libice6 (>= 1:1.0.0), libjpeg62 (>= 6b1), libm17n-0 (>= 1.6.1), libmagickcore3 (>= 8:6.6.0.4), libmagickwand3 (>= 8:6.6.0.4), libncurses5 (>= 5.5-5~), libotf0 (>= 0.9.11), libpng12-0 (>= 1.2.13-4), librsvg2-2 (>= 2.14.4), libselinux1 (>= 1.32), libsm6, libtiff4, libtinfo5 (>= 5.6+20070908), libx11-6, libxft2 (>> 2.1.1), libxml2 (>= 2.7.4), libxpm4, libxrender1

의존성에 문제가 있습니다. PPA를 비활성화하고 apt-get 업데이트 및 업그레이드를 수행 한 다음 apt-get clean을 수행 한 다음 PPA를 다시 활성화하고 다시 시도하십시오.


1

Precise Pangolin 12.04에 대한 정보는 간단히

sudo add-apt-repository ppa:cassou/emacs
sudo apt-get update
sudo apt-get install emacs-snapshot

기본적으로 작동합니다.


"즉시 사용 가능"이란 새로 설치를 의미합니까? 가 emacs현재 이미 설치했을 때 emacs-snapshot?
jrhorn424

죄송합니다. 일단 해당 명령을 내리면 다른 개입없이 작동합니다.
leonard vertighel

0

도움이 될 것이라고 생각합니다 http://zabambo.com/blog/?p=45

24.1 용이지만 원하는대로 버전을 변경할 수 있습니다.


Ask Ubuntu에 오신 것을 환영합니다! 이 이론적으로 질문에 대답 할 수 있습니다 동안, 바람직 할 것이다 여기에 대한 대답의 본질적인 부분을 포함하고 참조 할 수 있도록 링크를 제공합니다.
Eric Carvalho
당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.