Ajuda! Não consigo instalar nada por causa do erro de subprocesso [RESOLVIDO]

0

Eu não sei o que aconteceu, mas de repente, sem motivo nenhum aplicativos e pacotes podem ser instalados. Quando eu quero instalar um pacote com sudo apt-get install <package> , recebo este erro:

mpiuser@host:~$ sudo apt-get install synaptic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  docbook-xml libcairo-perl libept1.4.12 libglib-perl libgtk2-perl
  libpango-perl librarian0 rarian-compat sgml-data
Suggested packages:
  docbook docbook-dsssl docbook-xsl docbook-defguide libfont-freetype-perl
  libgtk2-perl-doc perlsgml w3-recs opensp libxml2-utils dwww menu deborphan tasksel
The following NEW packages will be installed:
  docbook-xml libcairo-perl libept1.4.12 libglib-perl libgtk2-perl
  libpango-perl librarian0 rarian-compat sgml-data synaptic
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/3,441 kB of archives.
After this operation, 17.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up install-info (5.2.0.dfsg.1-2) ...
/etc/environment: line 2: /home/mpiuser/mpich1/bin: Is a directory
dpkg: error processing package install-info (--configure):
subprocess installed post-installation script returned error exit status 126
E: Sub-process /usr/bin/dpkg returned an error code (1)

Isso também está correto quando eu quero instalar um aplicativo do Ubuntu software center.
A mensagem de erro é assim:

O que devo fazer? Eu não quero reinstalar meu Ubuntu.

    
por Ali Tohidi 14.04.2016 / 08:24

1 resposta

0

este código resolveu meu problema

sudo mv /var/lib/dpkg/info/install-info.postinst /var/lib/dpkg/info/install-info.postinst.bad
    
por Ali Tohidi 19.04.2016 / 11:43