Não consigo instalar o valgrind devido ao dpkg-deb broken pipe, como consertar isso? [duplicado]

0
hanu@hanu-HP-Pavilion-Sleekbook-14:~/raijin/build_debug$ sudo apt-get -f install 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  locales
The following packages will be upgraded:
  locales
1 upgraded, 0 newly installed, 0 to remove and 1008 not upgraded.
Need to get 0 B/3,801 kB of archives.
After this operation, 6,537 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
WARNING: The following packages cannot be authenticated!
  locales
Install these packages without verification [y/N]? y
Preconfiguring packages ...
(Reading database ... 204496 files and directories currently installed.)
Preparing to replace locales 2.13+git20120306-9 (using .../locales_2.17-92_all.deb) ...
Unpacking replacement locales ...
dpkg: error processing /var/cache/apt/archives/locales_2.17-92_all.deb (--unpack):
 trying to overwrite '/usr/sbin/validlocale', which is also in package libc-bin 2.17-0ubuntu5
configured to not write apport reports
                                      dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/locales_2.17-92_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


hanu@hanu-HP-Pavilion-Sleekbook-14:~/raijin/build_debug$ valgrind
The program 'valgrind' is currently not installed. You can install it by typing:
sudo apt-get install valgrind
    
por user192919 14.09.2013 / 18:20

2 respostas

0

Ao encontrar erros, geralmente é informativo olhar o erro primeiro , aquele que causou os posteriores.

dpkg: error processing /var/cache/apt/archives/locales_2.17-92_all.deb (--unpack):
 trying to overwrite '/usr/sbin/validlocale', which is also in package libc-bin 2.17-0ubuntu5

O problema é que o dpkg diz: o mesmo arquivo validlocale existe em dois pacotes, então ambos não podem ser instalados. O que pode consertar isso é atualizar o pacote outro primeiro.

aptitude install libc-bin

Quando terminar, tente instalar o valgrind novamente.

    
por joeytwiddle 14.09.2013 / 19:25
-1

Pode ser melhor instalá-lo no Ubuntu Software Center. Pesquisar por valgrind

Issopermitiriaquevocêinstalasseoprogramaprincipal

e quaisquer outros pacotes adicionais que possam ser relevantes.

    
por SimplySimon 14.09.2013 / 18:55