Unable to build AOSP - /usr/lib/libncurses.so.5:

error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

I tried creating a sym link called libncurses.so.5 like was suggested here:

This results in error:
error while loading shared libraries: /usr/lib/libncurses.so.5: file too short

That won’t work, remove it. ncurses5-compatlibs (available in the AUR) provides that library.

1 Like

Using add/remove software:

Preparing...
Checking lib32-ncurses5-compat-libs dependencies...
Checking ncurses5-compat-libs dependencies...
Resolving dependencies...
Checking inter-conflicts...

Building lib32-ncurses5-compat-libs...
Cloning lib32-ncurses5-compat-libs build files...
==> Making package: lib32-ncurses5-compat-libs 6.2-1 (Sat 10 Jul 2021 07:39:29 PM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading ncurses-6.2.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
 38 3345k   38 1296k    0     0  1256k      0  0:00:02  0:00:01  0:00:01 1255k
100 3345k  100 3345k    0     0  2954k      0  0:00:01  0:00:01 --:--:-- 2952k
  -> Downloading ncurses-6.2.tar.gz.sig...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100    95  100    95    0     0    251      0 --:--:-- --:--:-- --:--:--   251
==> Validating source files with sha512sums...
    ncurses-6.2.tar.gz ... Passed
    ncurses-6.2.tar.gz.sig ... Skipped
==> Verifying source file signatures with gpg...
    ncurses-6.2.tar.gz ... FAILED (unknown public key 702353E0F7E48EDB)
==> ERROR: One or more PGP signatures could not be verified!
Failed to build lib32-ncurses5-compat-libs

I’m guessing i need to import someone’s key? but idk

Yes, but the default keyserver is dead. The issue is resolved with gnupg 2.2.29 which will come along in the next stable update. You can import the key like this for now:

gpg --keyserver keyserver.ubuntu.com --recv-keys 702353E0F7E48EDB
3 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.