의존성: gcc이지만 설치할 수 없음

의존성: gcc이지만 설치할 수 없음

실수로 gcc내 시스템(Ubuntu 14.04)에서 패키지를 삭제한 것 같습니다. 이제 시스템에 아무것도 설치할 수 없습니다. 아래는 제가 시도했을 때의 샘플 출력입니다 apt-get -f install. 도와주세요!

root@ko-buntu:~/Downloads# apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 arduino-core : Depends: gcc but it is not installable
 build-essential : Depends: gcc (>= 4:4.4.3) but it is not installable
 devscripts:i386 : Depends: perl:i386 but it is not installable
                   Depends: python3:i386 but it is not installable
                   Recommends: at:i386 but it is not installable
                   Recommends: dctrl-tools:i386 but it is not installable
                   Recommends: dput:i386 but it is not installable or
                               dupload:i386 but it is not installable
                   Recommends: libdistro-info-perl:i386 but it is not installable
                   Recommends: libencode-locale-perl:i386 but it is not installable
                   Recommends: libjson-perl:i386 but it is not installable
                   Recommends: libparse-debcontrol-perl:i386 but it is not installable
                   Recommends: liburi-perl:i386 but it is not installable
                   Recommends: libwww-perl:i386 but it is not installable
                   Recommends: python3-debian:i386 (>= 0.1.15) but it is not installable
                   Recommends: python3-magic:i386 but it is not installable
                   Recommends: strace:i386 but it is not installable
                   Recommends: wdiff:i386 but it is not installable
 dpkg-dev : Depends: binutils but it is not installable
            Recommends: gcc but it is not installable or
                        c-compiler
 g++ : Depends: gcc (>= 4:4.8.2-1ubuntu6) but it is not installable
       Depends: gcc-4.8 (>= 4.8.2-5~) but it is not installable
 g++-4.8 : Depends: gcc-4.8-base (= 4.8.4-2ubuntu1~14.04) but 4.8.2-19ubuntu1 is installed
           Depends: gcc-4.8 (= 4.8.4-2ubuntu1~14.04) but it is not installable
 gcc:i386 : Depends: cpp:i386 (>= 4:4.8.2-1ubuntu6) but it is not installable
 gcc-4.8:i386 : Depends: cpp-4.8:i386 (= 4.8.2-19ubuntu1) but it is not installable
                Depends: libgcc-4.8-dev:i386 (= 4.8.2-19ubuntu1) but it is not installable
 gcc-4.9-base : Breaks: gcc-4.9-base:i386 (!= 4.9-20140406-0ubuntu1) but 4.9.1-0ubuntu1 is installed
 gcc-4.9-base:i386 : Breaks: gcc-4.9-base (!= 4.9.1-0ubuntu1) but 4.9-20140406-0ubuntu1 is installed
 hardening-includes : Depends: binutils but it is not installable
 libasan0 : Depends: gcc-4.8-base (= 4.8.4-2ubuntu1~14.04) but 4.8.2-19ubuntu1 is installed
 libatomic1 : Depends: gcc-4.8-base (= 4.8.4-2ubuntu1~14.04) but 4.8.2-19ubuntu1 is installed
 libcodeblocks0 : Depends: binutils (>= 2.14.90.0.7) but it is not installable
 libgcc-4.8-dev : Depends: gcc-4.8-base (= 4.8.4-2ubuntu1~14.04) but 4.8.2-19ubuntu1 is installed
 libgcc1:i386 : Depends: gcc-4.9-base:i386 (= 4.9-20140406-0ubuntu1) but 4.9.1-0ubuntu1 is installed
 libgomp1 : Depends: gcc-4.8-base (= 4.8.4-2ubuntu1~14.04) but 4.8.2-19ubuntu1 is installed
 libitm1 : Depends: gcc-4.8-base (= 4.8.4-2ubuntu1~14.04) but 4.8.2-19ubuntu1 is installed
 libquadmath0 : Depends: gcc-4.8-base (= 4.8.4-2ubuntu1~14.04) but 4.8.2-19ubuntu1 is installed
 libstdc++-4.8-dev : Depends: gcc-4.8-base (= 4.8.4-2ubuntu1~14.04) but 4.8.2-19ubuntu1 is installed
 libstdc++6 : Depends: gcc-4.8-base (= 4.8.4-2ubuntu1~14.04) but 4.8.2-19ubuntu1 is installed
 libtool : Depends: gcc but it is not installable or
                    c-compiler
           Recommends: libltdl-dev but it is not installable
 libtsan0 : Depends: gcc-4.8-base (= 4.8.4-2ubuntu1~14.04) but 4.8.2-19ubuntu1 is installed
 lintian : Depends: binutils but it is not installable
 pptp-linux : Depends: binutils but it is not installable
 sa-compile : Depends: gcc but it is not installable
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
root@ko-buntu:~/Downloads# 

답변1

i386문제를 일으키는 다양한 패키지를 제거해야 합니다 .

apt-get purge devscripts:i386 gcc:i386 gcc-4.8:i386 gcc-4.9-base:i386 libgcc1:i386

관련 정보