패키지 시스템이 고장났습니다. 고치는 방법? 20030512 (시험판))이므로 계속

방금 최근 arduino를 구입했으며 소프트웨어를 컴파일하려면 gcc-avr / avrdude가 필요합니다. 얼마 전에 다른 마이크로 프로세서 구성 요소에 avr을 설치했지만 분명히 오래된 버전 (gcc 버전 3.3 20030512 (시험판))이므로 계속 업데이트했지만 작동하지 않았습니다.

(이전에 사전에 불완전한 와인 설치 (글꼴 설치 계약을 통과하지 못함)를 통해 앱 테몬을 깨뜨 렸지만 다시 설치하여 계약을 수락 한 것을 수정했습니다.)

빙고의 빌드 스크립트 를 실행하여 업데이트하려고 하지만 avr로 인해 필요한 종속성을 설치할 수 없습니다 … 터미널 보고서

Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
libncurses5-dev is already the newest version.
libncurses5-dev set to manually installed.
libusb-0.1-4 is already the newest version.
libx11-dev is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
arduino-core : Depends: gcc-avr but it is not going to be installed
avr-libc : Depends: gcc-avr (>= 1:4.3.4) but it is not going to be installed
Depends: binutils-avr (>= 2.20) but it is not going to be installed
binutils-dev : Depends: binutils (= 2.21.0.20110327-2ubuntu3) but 2.21.0.20110327-2ubuntu2 is to be installed
libcwidget-dev : Depends: libcwidget3 (= 0.5.16-3ubuntu2) but it is not going to be installed
Depends: libsigc++-2.0-dev but it is not going to be installed
Depends: libncursesw5-dev but it is not going to be installed
libmpfr-dev : Depends: libgmp3-dev (>= 4.2.dfsg-1) but it is not going to be installed
python-dev : Depends: python (= 2.7.1-0ubuntu5.1) but 2.7.1-0ubuntu5 is to be installed
Depends: python2.7-dev (>= 2.7.1-1~) but it is not going to be installed
tk8.4-dev : Depends: tk8.4 (= 8.4.19-4) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

그러나 달리기

apt-get -f install

결과

(Reading database ... 163021 files and directories currently installed.)
Unpacking binutils-avr (from .../binutils-avr_2.20.1-1ubuntu2_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/binutils-avr_2.20.1-1ubuntu2_i386.deb (--unpack):
trying to overwrite '/usr/bin/avr-size', which is also in package avr-binutils 2.13.90.030512-2
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Unpacking gcc-avr (from .../gcc-avr_1%3a4.3.5-1_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/gcc-avr_1%3a4.3.5-1_i386.deb (--unpack):
trying to overwrite '/usr/bin/avr-g++', which is also in package avr-gcc-c++ 3.2.90.20030512-2
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/binutils-avr_2.20.1-1ubuntu2_i386.deb
/var/cache/apt/archives/gcc-avr_1%3a4.3.5-1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

업데이트 관리자를 실행하고 시스템을 통해 시스템을 업데이트하려고했지만 오류 메시지 만 있습니다.

The following packages have unmet dependencies:
arduino-core: Depends: gcc-avr but it is not installed
avr-libc: Depends: gcc-avr (>= 1:4.3.4) but it is not installed
Depends: binutils-avr (>= 2.20) but it is not installed

그런 다음 apt-get -f install을 실행 해 보도록 지시합니다. 이는 마지막 시간과 동일합니다.

그래서 어떻게 시스템을 고칠 수 있습니까? 정말로 새로운 avr이 필요합니다. 🙂 BTW, 내 시스템은 Ubuntu 11.04입니다.



답변

해당 오류가 발생 sudo apt-get -f install하면 오류로 인해로드되지 않은 파일을 강제로 설치하십시오.

그런 다음 오류가있는 패키지 만 남을 때까지 앞뒤로 sudo apt-get update다시 시도 하십시오 sudo apt-get -f install.

sudo dpkg --configure -a

캐시를 청소하십시오

sudo apt-get clean


답변

이는 일반적으로 ‘설치된 패키지에 대한 충족되지 않은 종속성’의 결과로 발생합니다.

‘Synaptic’을 설치 한 경우 간단한 해결책은 다음과 같습니다.

  • 시냅틱을 엽니 다.
  • 왼쪽 탐색에서 ‘상태’로 이동하십시오.
  • ‘Broken’을 선택하십시오.
  • 이 깨진 패키지를 제거하십시오.

그렇지 않으면 CLI를 통해 처리 할 수 ​​있습니다.

터미널을 열고 다음 명령을 실행하십시오.

sudo apt-get clean

위의 명령은 검색된 패키지 파일의 로컬 저장소를 정리합니다.

sudo apt-get install -f

깨진 종속성을 -f수정합니다. 즉 , “수정 된 오류”를 나타냅니다.

sudo dpkg --configure -a

-a아직 구성되지 않은 모든 패키지를 구성합니다. 결국 update 명령을 실행하십시오 sudo apt-get update.


답변

시냅틱을 엽니 다 . 그런 다음 status로 이동하여 Broken을 선택하십시오 . 그런 다음 손상된 패키지를 완전히 제거하십시오.

시스템을 수정해야합니다.


답변

시도 : sudo apt-get update && sudo apt-get -f install
문제가 해결되기를 바랍니다.


답변

아직 패키지 저장소 참조를 ‘Main’또는 United States로 변경하십시오 . 이렇게하면 Python-dev unmet-dependencies 문제가 해결되었습니다 (12.04 설치 이전에 영국 패키지 저장소를 사용하고 있었습니다 ).

  1. ‘Ubuntu Software Center'(USC)에서 메뉴 / 탭 ‘Edit => Software Sources’로 이동하십시오.
  2. ‘Download from’드롭 다운 값을 ‘Main Server’또는 미국의 서버로 변경하십시오.
  3. USC를 그대로두고 Ubuntu의 프로그램 메뉴에서 ‘업데이트 관리자’를 열고 소프트웨어 업데이트를 ‘확인’하십시오 (또는 터미널 창에서 ‘sudo apt-get update’를 발행하십시오).
  4. 예를 들어 ‘Update Manager’또는 터미널의 apt-get / aptitude를 통해 정상적으로 소프트웨어를 업데이트하십시오.

이로 인해 저장소가 복구되었고 나중에 정상적으로 필요한대로 설치했습니다.

위의 지침으로 내 문제를 수정하기 전에 다양한 적성 / 적응 명령으로 많은 패키지를 제거 할 것을 제안했지만, 당신이 예측할 수 있듯이 6 개월 이상의 패키지 추가를 잃어 버리는 것을 좋아하지 않았습니다. 패키지 목록을 때때로 스냅 샷합니다 ( 힌트는 요지 참조)! 내가 여기서 떠나는 지침에 대해 알게되어서 정말 기쁩니다.

도움이 되었기를 바랍니다.


답변

같은 문제가 있었다

sudo apt-get clean

뒤에

sudo apt-get update

뒤에

sudo apt-get upgrade -f

고쳤다. 이게 도움이 되길 바란다!