Sudo apt-get 설치 git 문제

Sudo apt-get 설치 git 문제

안녕하세요 저는 우분투를 처음 접했습니다. 즉, 일반적으로 ubunty 14.10을 새로 설치할 때 이것을 실행할 수 있습니다.

sudo apt-get update
sudo apt-get install git

그리고 git을 설치해야 합니다.

하지만 내가 얻는 것은 이것이다

me@server1:~$ sudo apt-get install git
[sudo] password for me: 
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:
 git : Depends: liberror-perl but it is not going to be installed
       Depends: git-man (> 1:2.4.5) but it is not going to be installed
       Depends: git-man (< 1:2.4.5-.) but it is not going to be installed
 mariadb-client-5.5 : Breaks: mariadb-server-5.5 (< 5.5.44-1ubuntu0.14.10.1) but 5.5.39-2 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
me@server1:~$ git
The program 'git' is currently not installed. You can install it by typing:
sudo apt-get install git
me@server1:~$ 

apt-get종속성을 자동으로 설치하지 않는 것처럼 보이고 git명령은 git is currently not installed. 달려도 sudo apt-get -f install아무것도 바뀌지 않아

내가 여기서 뭘 잘못하고 있는 걸까? (참고: 나는 mariadb를 설치하고 싶지 않습니다.)

편집 : 실행 후sudo apt-get purge mariadb-client-5.5

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:
 mariadb-client : Depends: mariadb-client-5.5 (>= 5.5.39-2) but it is not going to be installed
 mariadb-server-5.5 : Depends: mariadb-client-5.5 (>= 5.5.39-2) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

답변1

이 오류는 apt-get 종속성 트리가 설치로 인해 일정하지 않은 상태에 도달했기 때문에 발생합니다.mariadb-클라이언트예상한 것보다 최신/이전 버전인 패키지mariadb-서버.

mariadb-client를 제거해 보십시오.

$ sudo apt-get purge mariadb-client-5.5

그런 다음 종속성 트리를 수정해 보십시오.

 $ sudo apt-get -f install

그런 다음 git을 설치해 보세요.

관련 정보