데비안에 gcc 5 설치 문제

데비안에 gcc 5 설치 문제

여기에 제공된 지침을 따르려고 합니다.Debian jessie 8.1에 GCC 5를 설치하는 방법

하지만 다음 오류가 발생합니다.

sudo apt-get install -t testing gcc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 gsettings-desktop-schemas : Breaks: gnome-settings-daemon (< 3.19.92) but 3.14.2-3 is to be installed
                             Breaks: mutter (< 3.19.92) but 3.14.4-1~deb8u1 is to be installed
 gstreamer1.0-plugins-base : Breaks: gstreamer1.0-plugins-bad (< 1.7.90) but 1.4.4-2.1+deb8u1 is to be installed
 libgstreamer-plugins-base1.0-0 : Breaks: gstreamer1.0-plugins-bad (< 1.7.1) but 1.4.4-2.1+deb8u1 is to be installed
 libpam-systemd : Depends: systemd (= 215-17+deb8u6) but 232-15 is to be installed
 libvlccore8 : Breaks: vlc (< 2.2.4-7~) but 2.2.4-1~deb8u1 is to be installed
               Breaks: vlc-nox (< 2.2.4-7~) but 2.2.4-1~deb8u1 is to be installed
 systemd-sysv : Depends: systemd (= 215-17+deb8u6) but 232-15 is to be installed
 task-cinnamon-desktop : Depends: cinnamon-desktop-environment but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

문제는 무엇이고 어떻게 해결하나요?

답변1

문제가 무엇입니까?

gcc5이 방법을 사용 하여 apt설치 pining하면 시스템이 중단될 수 있습니다 testing. .

어떻게 해결할 수 있나요?

gcc-5.3.0설치할 수 있습니다linuxbrew(안전하고 안정적인 데비안 KDE에서 테스트되었습니다):

필수 패키지를 설치합니다:

sudo apt-get install build-essential curl git python-setuptools ruby

설치하다 linuxbrew:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install)"
PATH="$HOME/.linuxbrew/bin:$PATH"

경로에 ~/.bashrc추가하려면 편집하세요 .~/.linuxbrew/bin

echo 'export PATH="$HOME/.linuxbrew/bin:$PATH"' >>~/.bashrc

사용 가능한 최신 gcc버전을 업데이트하고 설치합니다.

brew update
brew install gcc

검증된 gcc버전:

#gcc --version
gcc (Homebrew gcc 5.3.0) 5.3.0

관련 정보