Cannot install build-essential on LinuxMint 15

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
tridephysique

Cannot install build-essential on LinuxMint 15

Post by tridephysique »

Hi,
I have installed LinuxMint 15. Everything works fine except installing build-essential.
When trying to install the package, I received this message:
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:
build-essential : Depends: g++ (>= 4:4.4.3) but it is not going to be installed
Depends: dpkg-dev (>= 1.13.5) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I had tried many times but I all failed.
Please help me solve this, thanks.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
palo
Level 4
Level 4
Posts: 476
Joined: Mon Jun 25, 2012 7:28 am
Location: Walking on sunshine

Re: Cannot install build-essential on LinuxMint 15

Post by palo »

Installed okay for me - those dependencies are available. Using Synaptic? - click the reload button first. Terminal? "sudo apt-get update" first. Any errors?

Pat
tridephysique

Re: Cannot install build-essential on LinuxMint 15

Post by tridephysique »

palo
I followed your instruction but the problem is still not be solve.

Synaptic Packages Manager reports broken packages so I tried to fix it using Edit>Fix broken packages; I receive this:
E: Unable to correct problems, you have held broken packages.
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies


The next times I receive this:
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
tridephysique

Re: Cannot install build-essential on LinuxMint 15

Post by tridephysique »

Trying use aptitude to install, I got this:
The following NEW packages will be installed:
build-essential dpkg-dev{ab} g++{a} g++-4.7{ab}
0 packages upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 8,991 kB of archives. After unpacking 18.4 MB will be used.
The following packages have unmet dependencies:
g++-4.7 : Depends: gcc-4.7-base (= 4.7.2-17ubuntu1) but 4.7.3-1ubuntu1 is installed.
Depends: gcc-4.7 (= 4.7.2-17ubuntu1) but 4.7.3-1ubuntu1 is installed.
Depends: libstdc++6-4.7-dev (= 4.7.2-17ubuntu1) but it is not going to be installed.
dpkg-dev : Depends: libdpkg-perl (= 1.16.9ubuntu2) but 1.16.10ubuntu1 is installed.
The following actions will resolve these dependencies:

Keep the following packages at their current version:
1) build-essential [Not Installed]
2) dpkg-dev [Not Installed]
3) g++ [Not Installed]
4) g++-4.7 [Not Installed]

Accept this solution? [Y/n/q/?] y
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
palo
Level 4
Level 4
Posts: 476
Joined: Mon Jun 25, 2012 7:28 am
Location: Walking on sunshine

Re: Cannot install build-essential on LinuxMint 15

Post by palo »

Ah. Maybe someone will step in and help fix the broken packages. What is the output for

Code: Select all

inxi -Sr
Locked

Return to “Software & Applications”