karlharv
Posts: 2
Joined: Sun May 24, 2015 1:14 pm

Problem : illegal instruction

Sun May 24, 2015 1:18 pm

Hi, I have a problem since a dist-upgrade I think.

Can't use anymore Sudo command.

I don't think the content of the source.list file has been changed.

Can't find any solution to this on internet.... please help !! ;-(

fruitoftheloom
Posts: 27226
Joined: Tue Mar 25, 2014 12:40 pm

Re: Problem : illegal instruction

Sun May 24, 2015 1:57 pm

karlharv wrote:Hi, I have a problem since a dist-upgrade I think.

Can't use anymore Sudo command.

I don't think the content of the source.list file has been changed.

Can't find any solution to this on internet.... please help !! ;-(
It should be all lower case sudo and not Sudo ;)
Take what I advise as advice not the utopian holy grail, and it is gratis !!

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: Problem : illegal instruction

Sun May 24, 2015 2:05 pm

It should be all lower case sudo and not Sudo ;)
Yes, but that typo is unlikely to cause an "illegal instruction" trap.
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

karlharv
Posts: 2
Joined: Sun May 24, 2015 1:14 pm

Re: Problem : illegal instruction

Sun May 24, 2015 9:02 pm

Don't worry about the typo... any idea why i get this ?

Thanks.

User avatar
rpdom
Posts: 19543
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Problem : illegal instruction

Mon May 25, 2015 9:01 am

If you haven't changed anything in sources.list, then the only thing I can think of is a corrupt file.

Pi 1 or Pi 2?

There are various checks you can do to see if the sudo file is ok

Check it is the right general CPU type (ARM not i386)

Code: Select all

rpdom@raspi5 ~ $ file /usr/bin/sudo
/usr/bin/sudo: setuid ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.26, BuildID[sha1]=0x2911544d109eb20766d56dce67962a69d29bdcb1, stripped
Then make sure it is ARMv6, (although v7 will work on a Pi2)

Code: Select all

rpdom@raspi5 ~ $ readelf -A /usr/bin/sudo| grep CPU
  Tag_CPU_name: "6"
  Tag_CPU_arch: v6
Of course it might not be the actual sudo file which is wrong, it could be one of the libraries it uses. You'd need to look at using strace to find out where the error is happening and if it comes to that amount of work you might want to consider backing up what you can and reinstalling. :(

Return to “Raspberry Pi OS”