우분투에서 apt-get install하면 오류가 발생합니다
안녕하세요 리눅스 초보입니다..^.^
apt-get install할 때마다 오류가 발생하는데 처치가 안되서 문의드립니다~
(리눅스 버전은 ubuntu 10.10 입니다.)
원래 잘 됐었는데, python을 소스를 통해 빌드해서 설치했던 부분을 삭제하려고 checkinstall을 사용했었습니다.
이미 설치한 python폴더에서 checkinstall로 다시 make install 후, dpkg -r python2.7 이런식으로 삭제했다가 문제가 생겨서,
checkinstall이 자동으로 만들어준 pytho2.7.1-1.deb 이런류의 파일을 이용해 다시 설치했나??
그런데 이후로 상태가 아래와 같습니다 ㅠㅠㅠ
===============================================
The following packages have unmet dependencies:
cloud-init : Depends: python (< 2.7) but 2.7.1-1 is to be installed
Depends: python-cheetah but it is not going to be installed
Depends: python-yaml but it is not going to be installed
Depends: cloud-utils but it is not going to be installed
command-not-found : Depends: python (< 2.7) but 2.7.1-1 is to be installed
euca2ools : Depends: python-m2crypto (>= 0.19.1) but it is not going to be installed
Recommends: cloud-utils but it is not going to be installed
landscape-common : Depends: python (< 2.7) but 2.7.1-1 is to be installed
Depends: python-smartpm (>= 1.2-4) but it is not going to be installed
Depends: python2.6-dbus
Depends: python-twisted-core but it is not going to be installed
Depends: python-gobject but it is not going to be installed
...
...
python-sqlite : Depends: python (< 2.7) but 2.7.1-1 is to be installed
python-xapian : Depends: python (< 2.7) but 2.7.1-1 is to be installed
python-zope.interface : Depends: python (< 2.7) but 2.7.1-1 is to be installed
ufw : Depends: python (< 2.7) but 2.7.1-1 is to be installed
update-manager-core : Depends: python (< 2.7) but 2.7.1-1 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
===============================================
수정완료..
python의 path가 정확하지 않아 발생한 문제..
원래 2.7.1로 심볼릭링크를 걸었고, python -V 했을 때 2.7.1이 출력되어 제대로 되었다고 생각했는데,
심볼릭링크를 2.6으로 변경 후 python -V해도 여전히 2.7.1이었습니다.
python설치 후 심볼릭 링크를 걸었으면,
export PATH=/usr/bin:$PATH
위처럼 해줘야합니다.. 이후 다시 시도하면 성공..
댓글 달기