우분투 16.04에 Maven을 설치할 수 없습니다

우분투 16.04에 Maven을 설치할 수 없습니다

내 시스템에 Maven을 설치할 수 없습니다. 아래 명령을 사용해 보았습니다.

sudo apt-get install maven

아래 오류가 발생합니다.

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:
  libperl5.22 : Depends: perl-modules-5.22 (>= 5.22.1-9ubuntu0.2) but 5.22.1-9 is to be installed
  maven : Depends: libmaven3-core-java (= 3.3.9-3) but it is not going to be installed
  perl : Depends: perl-modules-5.22 (>= 5.22.1-9ubuntu0.2) but 5.22.1-9 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

여기서 무슨 일이 일어나고 어떻게 설치하는지 전혀 모르겠습니다.

답변1

오류 메시지에서 " apt-get -f install패키지 없이 실행"을 제안합니다.

sudo apt-get install -f

그래도 도움이 되지 않으면 패키지가 (부분적으로) 오래된 것일 수 있습니다. 종속성 문제를 다시 수정하면서 업데이트하세요( -f).

sudo apt-get update
sudo apt-get upgrade -f

(후자의 명령에 추가하여 maven업그레이드 및 종속성 수정과 함께 한 번에 설치할 수도 있습니다.)

자체적으로 오류가 발생하는 경우 apt-get update계속 진행하기 전에 오류를 수정해 보세요. Ask Ubuntu에서 오류 메시지 1 을 검색 하거나 새로운 질문을 하세요.


1 때때로 Google은 Stack Exchange에 통합된 검색 엔진보다 더 나은 검색 엔진입니다. 연산자를 사용하여 Google 검색을 하나의 도메인으로 제한할 수 있습니다 site:(예: ) site:askubuntu.com Unmet dependencies.

답변2

이상해 보일 수도 있지만 sudo apt-get -f install권장 사항대로 실행하셨나요?

관련 정보