Broken packages - g++ - Debian 8

New to Debian (Or Linux in general)? Ask your questions here!

Broken packages - g++ - Debian 8

Postby matheusvalenca » 2017-03-17 17:49

Hello, guys

I have installed Code Blocks (CB) but I can't run codes because g++ can't be identified by CB. In order to solve this, I tried to install g++ (Debian 8 ), but the following problem appears. How can I solve this? (I tried the solution presented in here:, but it doesn't work.)

Code: Select all

root@aio-landau:/etc/apt# apt-get install g++
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
g++ : Depends: g++-4.9 (>= 4.6.4-1~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Code: Select all
Posts: 1
Joined: 2017-03-17 17:38

Re: Broken packages - g++ - Debian 8

Postby stevepusser » 2017-03-17 19:57

If you keep on using Ubuntu solutions on Debian, you are playing with matches in a fireworks factory.

Anyway, this is a common issue if you don't get a Net connection during the install. Let's diagnose this:

as sysadmin in a terminal, execute
Code: Select all
apt-get update

then cut and paste the output in a code box here.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: GIMP 2.10, Pale Moon 27.9.1, Enlightenment 0.22, Calligra 3.1, VLC 3.0.2, Firefox 60.0, Krita 4.0.3
User avatar
Posts: 9542
Joined: 2009-10-06 05:53

Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 4 guests