AnswerBun.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!

Related Questions

RFID RC522 Reader & Chromium Web Page

1  Asked on December 5, 2020

     

Access Raspberry pi jenkins server over the internet

1  Asked on December 4, 2020 by emil-mller-ringgaard

   

Stuck in matchbox window

1  Asked on December 2, 2020 by christian-benner

   

How to use PI4J with a brushless motor?

1  Asked on November 27, 2020 by cy8berpunk

     

Android Things for RaspBerry

0  Asked on November 16, 2020 by flower

 

Pioneer TV shows “unsupported” when connected to RPI 4

1  Asked on October 29, 2020 by dannyniu

     

Docker disables network connectivity

0  Asked on October 16, 2020 by stevepoling

   

Is there documentation for RPi.GPIO

2  Asked on October 15, 2020 by milliways

 

Redirecting Traffic to local mqtt server

2  Asked on October 11, 2020 by elior

     

Playing Kodi without UPnP

0  Asked on October 6, 2020 by hasan

     

Powering a Servo with 12V Battery and Buck Converter

0  Asked on September 26, 2020 by gumby4231

     

Trying to get SSH over USB to work (Raspberry pi Zero W)

1  Asked on September 26, 2020 by damightyzombie

       

Raspberry PI random connection interruptions

1  Asked on September 22, 2020 by ben

     

Connect sim800 to Raspberry PI (RX, TX)

4  Asked on September 15, 2020 by max

       

make: *** No rule to make target ‘Install’. Stop

1  Asked on September 12, 2020 by travism

       

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir