problema ao instalar o gcc 5 no debian

2
Estou tentando seguir as instruções apresentadas aqui: "> Como instalar o GCC 5 no debian jessie 8.1

mas estou recebendo este erro:

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.

Qual é o problema e como posso corrigi-lo?

    
por user654019 21.02.2017 / 18:34

1 resposta

1

What is the problem?

A instalação de gcc5 a apt usando o método pining pode quebrar seu sistema, porque no seu caso, há muitas dependências que precisam ser atualizadas para testing . Infelizmente, os pacotes necessários não estão disponíveis nos backports.

how I can fix it?

Você pode instalar o gcc-5.3.0 através do linuxbrew (seguro e testado no KDE estável do debian):

instale o pacote necessário:

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

Instale linuxbrew :

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

Edite seu ~/.bashrc para adicionar ~/.linuxbrew/bin ao seu PATH:

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

Atualize e instale a última versão gcc disponível:

brew update
brew install gcc

Verifique o gcc version:

#gcc --version
gcc (Homebrew gcc 5.3.0) 5.3.0
    
por 21.02.2017 / 21:16