0

Everytime I open a new terminal session, there's an error that greets me:

/usr/bin/lesspipe: 1: /usr/bin/lesspipe: basename: not found
/usr/bin/lesspipe: 295: [: =: unexpected operator
junjie@Amamangi:~$

They were not there when I installed this OS some days ago.. and I believe this was a by-product of something I installed. The first time I saw them, I just ignored them because I was busy, until OCD attacked me today.

I'm new in Ubuntu and I hope someone can point me in the right direction so I can remove this eyesore.

  • Does basename --version work? basename is part of the coreutils package, so you could try reinstalling that if the binary has been deleted – steeldriver Dec 31 '15 at 13:39
  • @steeldriver nope, it doesn't. Terminal says The program 'basename' is currently not installed. – Junjie Dec 31 '15 at 14:28
  • Then try reinstalling the coreutils package - either from Software Center or from the terminal using sudo apt-get install --reinstall coreutils – steeldriver Dec 31 '15 at 14:33
1

It looks like your basename program has gone missing: you should be able to restore it by reinstalling the coreutils package, either from Software Center or from the terminal using

sudo apt-get install --reinstall coreutils

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.