terminal start para dar erro bash: / usr / bin / lesspipe

0

Eu pesquisei e li todas as páginas possíveis aqui, mas não consegui encontrar o problema exato.

Quando abro meu terminal, estou recebendo:

bash: /usr/bin/lesspipe: /bin/sh: bad interpreter: No such file or directory

quando eu uso apt-get update , estou recebendo erros de acompanhamento.

Fetched 39,9 MB in 53s (747 kB/s)                                              
Reading package lists. . .  Done
W: GPG error: http://archive. canonical.com/ubuntu xenial InRelease: Could not execute 'apt-key' to verify signature (is gnupg installed?)
W: The repository 'http://archive.canonical.com/ubuntu xenial InRelease' is not signed. 
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. 
N: See apt-secure(8) manpage for repository creation and user configuration details. 
W: GPG error: http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial InRelease: Could not execute 'apt-key' to verify signature (is gnupg installed?)
.......
W: The repository 'http://us.archive.ubuntu.com/ubuntu xenial-security InRelease' is not signed. 
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. 
N: See apt-secure(8) manpage for repository creation and user configuration details. 
E: Problem executing scripts APT::Update::Post-Invoke-Success 'touch /var/lib/apt/periodic/update-success-stamp 2>/dev/null || true'
E: Sub-process returned an error code




$ namei -lx /bin/sh
f: /bin/sh
Drwxr-xr-x root root /
drwxr-xr-x root root bin
                     sh - No such file or directory

Alguém sabe por que esse erro ocorreu e como posso resolvê-lo?

    
por melic 07.04.2017 / 07:54

1 resposta

1

Por algum motivo, você não tem /bin/sh . Isso pode significar que muitas coisas em seu sistema também podem estar erradas, mas apenas para esse problema específico, você pode recriar o link simbólico:

sudo ln -s /bin/dash /bin/sh

Se /bin/sh existir, mas algo estiver errado, faça:

sudo ln -sf /bin/dash /bin/sh
    
por muru 07.04.2017 / 08:05