Error when run opkg

162 views
Skip to first unread message

serg...@gmail.com

unread,
Jan 10, 2021, 3:41:12 PM1/10/21
to Alt-F
Hi.

When I run opkg I receive next error

# opkg
opkg: symbol lookup error: /opt/lib/libc.so.6: undefined symbol: reßsyotax_options, version GLIBC_2.4

It worked not so far ago but today I noticed message when wanted look at entware packages list.
Pasted Graphic 8.png
Could anyone advice how to fix this?

-Sergey

Jeremy Laidman

unread,
Jan 10, 2021, 6:23:08 PM1/10/21
to al...@googlegroups.com
On Mon, 11 Jan 2021 at 07:41, serg...@gmail.com <serg...@gmail.com> wrote:
Hi.

When I run opkg I receive next error

# opkg
opkg: symbol lookup error: /opt/lib/libc.so.6: undefined symbol: reßsyotax_options, version GLIBC_2.4
 
The symbol is probably supposed to be "re_syntax_options" which is implemented by libc.so.6. I suspect a corrupted opkg binary.

It worked not so far ago but today I noticed message when wanted look at entware packages list.
Could anyone advice how to fix this?

Perhaps reinstall the opkg package. Download the installer copy of the opkg binary from the Entware installer directory, eg:


Once downloaded, and stored in an alternative location, run "/path/to/opkg install opkg". You might need to run "/path/to/opkg remove opkg" first.

serg...@gmail.com

unread,
Jan 11, 2021, 11:56:25 AM1/11/21
to Alt-F
Thanks a lot! 
make it executable 
chmod +x entware_install.sh
and run it
./entware_install.sh
but it didn't help and in logs I saw this error again in logs
ln: ld-linux.so.3: File exists
ln: libc.so.6: File exists
Info: Basic packages installation...
/opt/bin/opkg: symbol lookup error: /opt/lib/libc.so.6: undefined symbol: reßsyotax_options, version GLIBC_2.4
/opt/bin/opkg: symbol lookup error: /opt/lib/libc.so.6: undefined symbol: reßsyotax_options, version GLIBC_2.4
then I removed this file 
rm /opt/lib/libc.so.6
and run installation again
./entware_install.sh
And after that I didn't see any errors in logs and opkg works again

WOOHOO!!!




понедельник, 11 января 2021 г. в 05:23:08 UTC+6, Jezzaaaa:

Jeremy Laidman

unread,
Jan 11, 2021, 5:55:58 PM1/11/21
to al...@googlegroups.com
Sergey, I'm glad it worked for you.

Actually, what you did is not what I meant for you to do. Instead of downloading and running entware_install.sh, I suggested you download and run opkg. I should have been clearer, sorry.

I'm a bit puzzled as to why this has worked. All you did was remove a symbolic link /opt/lib/libc.so.6, which would have been pointing to libc-2.23.so, and now will still be pointing to libc-2.23.so. The first time running the installer, it complained that the symlink already existed ("File exists"), but then it should have carried on, with the existing symlinks in place. In fact, before trying to create the symlinks, the installer has already replaced both the opkg binary and the library files it uses, which were the suspect files, and so the rest of the installer should have worked - the output shows that it didn't, of course. So this is puzzling. My best guess is that the symlink you removed was pointing to a different library altogether, and in removing the symlink, you allowed it to be recreated by the installer, pointing to the correct library.

Oh well, all's well that ends well.

Cheers
Jeremy

--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/alt-f/01caffc5-eb2b-4e5d-bd4f-fde7dd3508dan%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages