0

I believe I've corrupted the /usr/bin/time executable as when I try to run it, this is the message that shows up:

bash: /usr/bin/time: cannot execute binary file

It was working till I inadvertently overwrote it.

How can I revert the changes I've made to this executable or get a fresh copy of it?

Thanks in advance.

  • Reinstall the relevant package, probably time. What is your OS/distribution? – Faheem Mitha Mar 22 '15 at 16:48
  • I'm working on Ubuntu 12.04. – deborah-digges Mar 22 '15 at 16:48
  • Ok, then apt-get install --reinstall time. – Faheem Mitha Mar 22 '15 at 16:50
0

To reinstall the time binary /usr/bin/time, reinstall the package that contains it.

First, find that package.

dpkg -S /usr/bin/time 
time: /usr/bin/time

Then install it.

sudo apt-get install --reinstall time

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.