I want to use gcc 4.7.2 on my Debian squeeze 64x
I followed instructions in this thread: Get newest gcc for debian?, but I'm getting an error, I tried several apt-get install commands
I will settle with 4.7.1, as long as i can use the new c++ 11 features.
Below are my updated sources list and preferences file. After i updated these files i used apt-get update from a root terminal.
/etc/apt/sources.list
#
# deb cdrom:[Debian GNU/Linux 6.0.5 _Squeeze_ - Official amd64 NETINST Binary-1 20120512-20:40]/ squeeze main
#deb cdrom:[Debian GNU/Linux 6.0.5 _Squeeze_ - Official amd64 NETINST Binary-1 20120512-20:40]/ squeeze main
deb http://ftp.belnet.be/debian/ squeeze main
deb-src http://ftp.belnet.be/debian/ squeeze main
deb http://ftp.belnet.be/debian/ wheezy main
deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main
# squeeze-updates, previously known as 'volatile'
deb http://ftp.belnet.be/debian/ squeeze-updates main
deb-src http://ftp.belnet.be/debian/ squeeze-updates main
deb http://apt.jenslody.de/stable stable main
deb-src http://apt.jenslody.de/stable stable main
deb http://apt.wxwidgets.org/ squeeze-wx main
/etc/apt/preferences
Package: *
Pin: release n=squeeze
Pin-Priority: 900
Package: *
Pin: release n=wheezy
Pin-Priority: 200
It seems that this helped but now apt-get is complaining about unmet dependencies
root@debianWillem:/home/willem# apt-get install gcc-4.7/testing
Reading package lists... Done
Building dependency tree
Reading state information... Done
Selected version '4.7.1-7' (Debian:testing [amd64]) for 'gcc-4.7'
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:
gcc-4.7 : Depends: cpp-4.7 (= 4.7.1-7) but it is not going to be installed
Depends: binutils (>= 2.21.1) but 2.20.1-16 is to be installed
Depends: libgcc1 (>= 1:4.7.1-7) but 1:4.4.5-8 is to be installed
Depends: libgomp1 (>= 4.7.1-7) but 4.4.5-8 is to be installed
Depends: libmpfr4 (>= 3.1.0) but 3.0.0-2 is to be installed
Recommends: libc6-dev (>= 2.13-5) but 2.11.3-3 is to be installed
E: Broken packages
root@debianWillem:/home/willem# apt-get --target-release testing install gcc-4.7
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:
initscripts : Breaks: console-setup (< 1.74) but 1.68+squeeze2 is to be installed
Breaks: nfs-common (< 1:1.2.5-3) but 1:1.2.2-4squeeze2 is to be installed
libglib2.0-0 : Breaks: eog (< 3.2.2-3) but 2.30.2-1 is to be installed
libgnome-keyring0 : Breaks: gnome-keyring (< 3.0) but 2.30.3-5 is to be installed
network-manager : Recommends: crda but it is not going to be installed
Breaks: network-manager-gnome (< 0.9) but 0.8.1-2 is to be installed
E: Broken packages
How do i resolve these unmet dependencies ?
apt-get install
command you used please? – terdon Sep 23 '12 at 12:56apt-get update
first (after editing yoursources.list
), correct? Second, please post the two files you edited—/etc/apt/sources.list
and/etc/apt/preferences
. – derobert Sep 23 '12 at 14:55