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: http://stackoverflow.com/questions/35934227/cannot-install-g-on-ubuntu-14-04-4-lts-i-have-tried-commands-and-software-cen, 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
matheusvalenca
 
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: AzPainter 2.0.6, Pale Moon 27.4.1, Liquorix kernel 4.11-9, mpv 0.26.0, Kodi 17.3, 0ad 0.0.22, Mesa 13.0.6
User avatar
stevepusser
 
Posts: 8507
Joined: 2009-10-06 05:53


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable