TransWikia.com

Raspian buster lite: grep fails with "Illegal instruction"

Raspberry Pi Asked by MACE on August 16, 2020

Suddenly, grep has begun failing.

cat test.txt | grep hello

generates an “Illegal instruction” error. It makes no difference what’s being piped in nor what PATTERN I use.

  • cat test.txt | less
  • grep
  • grep -V
  • grep –help

all work fine

I’ve done a update and upgrade. How do I fix this?

One Answer

SD card got corrupted. Recreated and all works fine. Not sure how to prevent it in the future. Possibly related to the power.

Correct answer by MACE on August 16, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP