superx335
Posts: 15
Joined: Wed Oct 22, 2014 11:31 am

Curl - Illegal instruction

Thu Jul 18, 2019 7:45 am

Hello everyone,

I am struggling with Raspbian Buster, as much as I like it and really want to work on it, I'm having the most weird issues I've never had before.

The last of it is similar to others I had, gettin "Illegal instruction" as a result, but this one is really mandatory for me, since I need curl to update DuckDNS and feed it with current public IP, and I automatized it on cron.

At the end of the day it all come down to this simple problem:

Code: Select all

[email protected]:~ $ curl
Illegal instruction
I have read on the internet and only got something about gdb and librtmp but they are not installed and don't see how they can help.

Do you have any ideas? I really want to workaround this issue or I'll have to downgrade Raspbian (although I can't find Stretch image on this site anymore!)

Thank you in advance for any help on this.

pcmanbob
Posts: 6408
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: Curl - Illegal instruction

Thu Jul 18, 2019 8:06 am

Well curl seems to work ok on buster lite for me,

just typing curl gets the response " curl: try 'curl --help' or 'curl --manual' for more information"

and doing this curl -s ipinfo.io/ip returns my WAN IP address.

So have you changed any user settings or may be created a new user ?
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

superx335
Posts: 15
Joined: Wed Oct 22, 2014 11:31 am

Re: Curl - Illegal instruction

Thu Jul 18, 2019 8:15 am

pcmanbob wrote:
Thu Jul 18, 2019 8:06 am
Well curl seems to work ok on buster lite for me,

just typing curl gets the response " curl: try 'curl --help' or 'curl --manual' for more information"

and doing this curl -s ipinfo.io/ip returns my WAN IP address.

So have you changed any user settings or may be created a new user ?
Thanks for your answer.

Well, I haven't changed any user, it's just "pi" since the beginning. I am just wondering... I tried to install Kodi with no success (apparently is not ready for Buster yet, can you use it on lite?) and then purged it, I'm worried I "broke" something, but honestly don't see how... even "illegal instruction" is odd to me, I never had any message like that before in years

RonR
Posts: 414
Joined: Tue Apr 12, 2016 10:29 pm
Location: US

Re: Curl - Illegal instruction

Thu Jul 18, 2019 8:17 am

You might try reinstalling curl and its dependencies:

Code: Select all

suro apt-get --reinstall install curl libc6 libcurl4 zlib1g

superx335
Posts: 15
Joined: Wed Oct 22, 2014 11:31 am

Re: Curl - Illegal instruction

Thu Jul 18, 2019 8:54 am

RonR wrote:
Thu Jul 18, 2019 8:17 am
You might try reinstalling curl and its dependencies:

Code: Select all

suro apt-get --reinstall install curl libc6 libcurl4 zlib1g
Thank you for your input.

I did it, rebooted and still getting the same error :(

I thought in pasting here duckdns log but I don't think it would actually help since the error seems to be located in curl...

User avatar
B.Goode
Posts: 8042
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Curl - Illegal instruction

Thu Jul 18, 2019 9:02 am

I tried to install Kodi with no success (apparently is not ready for Buster yet, can you use it on lite?) and then purged it, I'm worried I "broke" something



That seems to be a potential source for your difficulty.

What steps did you take during that process?


(But maybe the quickest way to a reliable working system will be a fresh installation of your Operating System: perhaps there is other hidden damage you haven't become aware of yet... ? )

superx335
Posts: 15
Joined: Wed Oct 22, 2014 11:31 am

Re: Curl - Illegal instruction

Thu Jul 18, 2019 9:24 am

B.Goode wrote:
Thu Jul 18, 2019 9:02 am
I tried to install Kodi with no success (apparently is not ready for Buster yet, can you use it on lite?) and then purged it, I'm worried I "broke" something



That seems to be a potential source for your difficulty.

What steps did you take during that process?


(But maybe the quickest way to a reliable working system will be a fresh installation of your Operating System: perhaps there is other hidden damage you haven't become aware of yet... ? )
I started by visiting this webpage https://www.raspberrypi.org/blog/buster ... -raspbian/

Where an user told this:
There isn’t a custom kodi version for raspbian buster and, the “debian buster version” is outdated and not working for me.
I updated the whole systen to buster as instructed in this post. After that, I tried to install kodi stretch and the main problem was the libraries libcurl3 libmariadbclient18 are incompatible with buster (replaced with libcurl4 and libmariadb3). The packages curl and rpi-update need the new libraries…
It took me a while to solve all the problems, I leave my solution:

# add stretch and buster repositories (both, don’t worry about conflics)
nano /etc/apt/sources.list
nano /etc/apt/sources.list.d/raspi.list

# remove kodi from buster (if you installed it)
apt-get purge kodi kodi-bin kodi-data kodi-repository-kodi kodi-visualization-spectrum

# install old libraries used by kodi, you have to remove some packages when asked
apt-get install libcurl3 libmariadbclient18

# install stretch versions
apt-get install -t stretch kodi kodi-bin curl rpi-update

# enable autostart (in my installation I commented the group in systemd unit)
https://www.raspberrypi.org/forums/view ... 7#p1250200
And also followed another site (I really can't find it anymore) where an user guided to disable buster repo, use stretch repository instead and then install Kodi... I couldn't get it working though and in fact I remember among other issues the command line showed illegal instruction as well at some point.

Do you think it would be better to start a fresh clean installation? I am thinking about doing that but on Stretch until Buster is more advanced (or rather applications are compiled for Buster). The problem is that Stretch doesn't seem to be available on this official site anymore

thank you very much for your help

pcmanbob
Posts: 6408
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: Curl - Illegal instruction

Thu Jul 18, 2019 9:32 am

You can still download stretch images from here

https://downloads.raspberrypi.org/raspbian/images/

https://downloads.raspberrypi.org/raspbian_lite/images/

the final stretch image being dated 2019-04-09
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

superx335
Posts: 15
Joined: Wed Oct 22, 2014 11:31 am

Re: Curl - Illegal instruction

Thu Jul 18, 2019 3:25 pm

pcmanbob wrote:
Thu Jul 18, 2019 9:32 am
You can still download stretch images from here

https://downloads.raspberrypi.org/raspbian/images/

https://downloads.raspberrypi.org/raspbian_lite/images/

the final stretch image being dated 2019-04-09
Thank you very much! couldn't find that link by myself, thanks!

Return to “General discussion”