Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

libncurses.so.5 library missing in UBUNTU 22.04 installation for ARM64 (rapsberry PI 4)

I'm trying to run some 32bit application using wine and Box86 on UBUNTU 22.04 64bit and it seems that libncurses.so.5:i386 are missing. I tried to install those libraries as per this stack exchange question

error while loading shared libraries: libncurses.so.5:

but all those tips are failing

krzysztof@krzysiaczekpi1:~$ sudo apt-get install libncurses5:i386
[sudo] password for krzysztof:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package libncurses5:i386

sudo apt-get install ia32-libs
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package ia32-libs


Box86 with Dynarec v0.2.7 e9fcef3d built on Aug 21 2022 00:07:30
Box86 with Dynarec v0.2.7 e9fcef3d built on Aug 21 2022 00:07:30
Error initializing native libncurses.so.5 (last dlerror is libncurses.so.5: cannot open shared object file: No such file or directory)
Wine cannot find the ncurses library (libncurses.so.5).

any idea where to find those libraries 32 bit version for arm architecture ??

like image 288
Krzysztof Fajst Avatar asked Oct 23 '25 17:10

Krzysztof Fajst


1 Answers

I figured this out for Ubuntu 24.x though I could not find the exact answer anywhere, so posting this here for posterity:

First, if you are on amd64 make sure you have the i386 foreign architecture configured. Then follow the advice on the download page for curses by modifying your /etc/apt/sources.list.d/ubuntu.sources. Ensure you have a deb entry for http://security.ubuntu.com/ubuntu. In that entry, ensure you have 'focal-security' as an item for 'Suites' and 'universe' as an item for 'Components.' Run "sudo apt update." Then you should be able to install libncurses5:i386.

like image 169
Henri Hein Avatar answered Oct 26 '25 09:10

Henri Hein



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!