I searched and read all possible pages here but I could not find the exact problem.
When I open my terminal I am getting:
bash: /usr/bin/lesspipe: /bin/sh: bad interpreter: No such file or directory
then when I use apt-get update
I am getting following errors.
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
Does any one know why this error occurred and how can I solve it?
namei -lx /bin/sh
, please. – muru Apr 07 '17 at 07:56