Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Broken packages - g++ - Debian 8

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
matheusvalenca
Posts: 1
Joined: 2017-03-17 17:38

Broken packages - g++ - Debian 8

#1 Post by matheusvalenca »

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: http://stackoverflow.com/questions/3593 ... ftware-cen, but it doesn't work.)
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.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Broken packages - g++ - Debian 8

#2 Post by stevepusser »

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.
MX Linux packager and developer

Post Reply