简体   繁体   中英

Ubuntu 14.04 can't find package dependencies

I m trying to install some packages on ubuntu 14.04 server, and I m facing a problem.

When I try to run

apt-get install build-essential

I got an error that tells me that dependencies can't be reached.

build-essential : Dépend: libc6-dev mais ne sera pas installé ou
                            libc-dev
                   Dépend: gcc (>= 4:4.4.3) mais ne sera pas installé
                   Dépend: g++ (>= 4:4.4.3) mais ne sera pas installé
                   Dépend: make
                   Dépend: dpkg-dev (>= 1.13.5) mais ne sera pas installé


Does anybody knows how to make me able to run it ?

EDIT : I run as root

First, fix any problem with dependencies:

aptitude update; aptitude install -f

aptitude is better for solving dependencies. Maybe you need to remove build-essential, install aptitude, and fix dependency problems. Then install needed packages ( build-essential ).


apt-get install build-essential

The right command is # apt-get update && apt-get install build-essential


Or you can install the same with # apt-get update && apt-get install g++ autoconf


The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM