LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unable to install any package using apt-get in Debain 6 (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-install-any-package-using-apt-get-in-debain-6-a-4175478845/)

tarunchawla 09-28-2013 02:01 AM

Unable to install any package using apt-get in Debain 6
 
Hi ,
When I give the command "sudo apt-get install build-essential" following message is coming.

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:
build-essential : Depends: libc6-dev but it is not going to be installed or
libc-dev
Depends: g++ (>= 4:4.4.3) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


Things done by me:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -f

Please help me in removing these error.
Thanks

jamison20000e 09-28-2013 02:30 AM

Hi, try apt-get clear and\or clean as well but probably need to upgrade to 7 to fix Dependencies?

tarunchawla 09-28-2013 02:58 AM

Yes I am doing an upgrade.

jamison20000e 09-28-2013 03:24 AM

I would recommend backing up all your data and doing a fresh install. If possible? :)

tarunchawla 09-28-2013 05:23 AM

No upgrade is sufficient,now it is working fine.


All times are GMT -5. The time now is 12:30 PM.