Não consigo instalar o NMAP devido a dependências não atendidas!

0

Eu não consigo instalar o nmap devido às seguintes dependências não atendidas

HP-Pavilion-g6-Notebook-PC:~$ sudo apt-get install nmap
[sudo] password for rohan: 
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:
nmap : Depends: libstdc++6 (>= 4.9) but 4.8.4-2ubuntu1~14.04.3 is to be   installed
E: Unable to correct problems, you have held broken packages.

Eu já tentei seguir os comandos mas não tive sorte:

sudo apt-get clean
sudo apt-get autoclean
sudo apt-get -f install

Tentou pesquisar a própria dependência ....

~$ apt-cache search libstdc | grep libstdc++6
libstdc++6 - GNU Standard C++ Library v3
libstdc++6-4.7-dbg - GNU Standard C++ Library v3 (debugging files)
libstdc++6-4.7-dev - GNU Standard C++ Library v3 (development files)
libstdc++6-4.7-doc - GNU Standard C++ Library v3 (documentation files)
libstdc++6-4.8-dbg - GNU Standard C++ Library v3 (debugging files)
libstdc++6-arm64-cross - GNU Standard C++ Library v3
libstdc++6-armhf-cross - GNU Standard C++ Library v3
libstdc++6-powerpc-cross - GNU Standard C++ Library v3
libstdc++6-ppc64el-cross - GNU Standard C++ Library v3
libstdc++6-4.4-dbg - GNU Standard C++ Library v3 (debugging files)
libstdc++6-4.4-dev - GNU Standard C++ Library v3 (development files)
libstdc++6-4.4-doc - GNU Standard C++ Library v3 (documentation files)
libstdc++6-4.4-pic - GNU Standard C++ Library v3 (shared library subset kit)
libstdc++6-4.6-dbg - GNU Standard C++ Library v3 (debugging files)
libstdc++6-4.6-dev - GNU Standard C++ Library v3 (development files)
libstdc++6-4.6-doc - GNU Standard C++ Library v3 (documentation files)
libstdc++6-4.6-pic - GNU Standard C++ Library v3 (shared library subset kit)
libstdc++6-4.7-dbg-armel-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-4.7-dbg-armhf-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-4.7-dev-armel-cross - GNU Standard C++ Library v3 (development files)
libstdc++6-4.7-dev-armhf-cross - GNU Standard C++ Library v3 (development files)
libstdc++6-4.7-pic - GNU Standard C++ Library v3 (shared library subset kit)
libstdc++6-4.7-pic-armel-cross - GNU Standard C++ Library v3 (shared library subset kit)
libstdc++6-4.7-pic-armhf-cross - GNU Standard C++ Library v3 (shared library subset kit)
libstdc++6-4.8-dbg-arm64-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-4.8-dbg-armhf-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-4.8-dbg-powerpc-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-4.8-dbg-ppc64el-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-armel-cross - GNU Standard C++ Library v3
libstdc++6-4.9-dbg - GNU Standard C++ Library v3 (debugging files)
libstdc++6-4.9-dbg-arm64-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-4.9-dbg-armel-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-4.9-dbg-armhf-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-4.9-dbg-powerpc-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-4.9-dbg-ppc64el-cross - GNU Standard C++ Library v3 (debugging files)

E instalando-o ....

~$ sudo apt-get install libstdc++6 -yReading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libstdc++6
0 upgraded, 0 newly installed, 0 to remove and 1629 not upgraded.

Tentei instalar o Aptitude, mas .....

~$ sudo apt-get install aptitude
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:
 aptitude : Depends: libstdc++6 (>= 4.9) but 4.8.4-2ubuntu1~14.04.3 is to be installed
E: Unable to correct problems, you have held broken packages

AJUDA !!!

    
por rohan aggarwal 24.02.2017 / 13:56

1 resposta

0

Tente instalar a dependência. No log do apt-get install, você verá que há uma dependência ausente:

% bl0ck_qu0te%

Portanto, para corrigir isso, tente procurá-lo para ter certeza de que ele está disponível:

apt-cache search libstdc | grep libstdc++6

ou

apt-cache show libstdc++6

Da minha saída, vejo:

:~$ apt-cache search libstdc | grep libstdc++6
libstdc++6 - GNU Standard C++ Library v3
libstdc++6-5-dbg - GNU Standard C++ Library v3 (debugging files)
libstdc++6-arm64-cross - GNU Standard C++ Library v3
libstdc++6-armhf-cross - GNU Standard C++ Library v3
libstdc++6-powerpc-cross - GNU Standard C++ Library v3
libstdc++6-ppc64el-cross - GNU Standard C++ Library v3
libstdc++6-4.7-dbg - GNU Standard C++ Library v3 (debugging files)
libstdc++6-4.7-dbg-armel-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-4.7-dbg-armhf-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-4.7-dev - GNU Standard C++ Library v3 (development files)
libstdc++6-4.7-dev-armel-cross - GNU Standard C++ Library v3 (development files)
libstdc++6-4.7-dev-armhf-cross - GNU Standard C++ Library v3 (development files)
libstdc++6-4.7-doc - GNU Standard C++ Library v3 (documentation files)
libstdc++6-4.7-pic - GNU Standard C++ Library v3 (shared library subset kit)
libstdc++6-4.7-pic-armel-cross - GNU Standard C++ Library v3 (shared library subset kit)
libstdc++6-4.7-pic-armhf-cross - GNU Standard C++ Library v3 (shared library subset kit)
libstdc++6-4.8-dbg - GNU Standard C++ Library v3 (debugging files)
libstdc++6-4.8-dbg-arm64-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-4.8-dbg-armhf-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-4.8-dbg-powerpc-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-4.8-dbg-ppc64el-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-4.9-dbg - GNU Standard C++ Library v3 (debugging files)
libstdc++6-4.9-dbg-arm64-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-4.9-dbg-armel-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-4.9-dbg-armhf-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-4.9-dbg-powerpc-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-4.9-dbg-ppc64el-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-4.9-dbg-s390x-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-5-dbg-alpha-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-5-dbg-arm64-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-5-dbg-armel-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-5-dbg-armhf-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-5-dbg-hppa-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-5-dbg-m68k-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-5-dbg-mips-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-5-dbg-mips64-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-5-dbg-mips64el-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-5-dbg-mipsel-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-5-dbg-powerpc-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-5-dbg-powerpcspe-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-5-dbg-ppc64-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-5-dbg-ppc64el-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-5-dbg-s390x-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-5-dbg-sh4-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-5-dbg-sparc64-cross - GNU Standard C++ Library v3 (debugging files)
libstdc++6-alpha-cross - GNU Standard C++ Library v3
libstdc++6-armel-cross - GNU Standard C++ Library v3
libstdc++6-hppa-cross - GNU Standard C++ Library v3
libstdc++6-m68k-cross - GNU Standard C++ Library v3
libstdc++6-mips-cross - GNU Standard C++ Library v3
libstdc++6-mips64-cross - GNU Standard C++ Library v3
libstdc++6-mips64el-cross - GNU Standard C++ Library v3
libstdc++6-mipsel-cross - GNU Standard C++ Library v3
libstdc++6-powerpcspe-cross - GNU Standard C++ Library v3
libstdc++6-ppc64-cross - GNU Standard C++ Library v3
libstdc++6-s390x-cross - GNU Standard C++ Library v3
libstdc++6-sh4-cross - GNU Standard C++ Library v3
libstdc++6-sparc64-cross - GNU Standard C++ Library v3

Então ... O primeiro vai fazer por mim.

sudo apt-get install libstdc++6 nmap -y

Note que eu incluí o nmap também para que você obtenha o nmap após o libstdc ++ 6.

Método 2 & amp; 3

É tentar um gerenciador de pacotes "diferente" e isso é aptitude.

Aptidão

Você tentará instalar ou corrigir todas as suas dependências ausentes, basta selecionar se deseja ou não seguir suas diretrizes. Infelizmente eu não usei muito, mas cada vez que eu tive que usá-lo, sempre resolvi problemas com o meu apt.

Para instalá-lo:

 sudo apt-get install aptitude -y

Em seguida, execute-o:

 sudo aptitude install nmap
    
por Zauxst 24.02.2017 / 14:17