Skip to content

[Bug]: After pkg up to apt 3.0.1, apt-file outputs Can't load '/data/data/com.termux/files/usr/lib/perl5/site_perl/5.38.2/aarch64-android/auto/AptPkg/AptPkg.so' for module AptPkg: dlopen failed: cannot locate symbol "_config" #74

Description

@SwuduSusuwu

Problem description

Want to know how to go back to the last version of apt, before this broke.

Steps to reproduce the behavior.

~ $ apt-file search tensorflow
Finding relevant cache files to search ...E: The cache is empty. You need to run "apt-file update" first.
~ $ pkg up
Hit:1 https://termux.net stable InRelease
6 packages can be upgraded. Run 'apt list --upgradable' to see them.

Upgrading:
  apt  command-not-found  glib  libpixman  libpng  python-pip

Summary:
  Upgrading: 6, Installing: 0, Removing: 0, Not Upgrading: 0
  Download size: 6642 kB
  Space needed: 49.2 kB

Continue? [Y/n] y
Get:1 https://termux.net stable/main aarch64 apt aarch64 3.0.1 [1080 kB]
Get:2 https://termux.net stable/main aarch64 command-not-found aarch64 2.4.0-74 [83.5 kB]
Get:3 https://termux.net stable/main aarch64 glib aarch64 2.84.1-3 [2544 kB]
Get:4 https://termux.net stable/main aarch64 libpixman aarch64 0.46.0 [156 kB]
Get:5 https://termux.net stable/main aarch64 libpng aarch64 1.6.48 [196 kB]
Get:6 https://termux.net stable/main aarch64 python-pip all 25.1.1-1 [2584 kB]
Fetched 6642 kB in 4s (1709 kB/s)
(Reading database ... 41150 files and directories currently installed.)
Preparing to unpack .../archives/apt_3.0.1_aarch64.deb ...
Unpacking apt (3.0.1) over (2.9.28-1) ...
Setting up apt (3.0.1) ...
(Reading database ... 41149 files and directories currently installed.)
Preparing to unpack .../command-not-found_2.4.0-74_aarch64.deb ...
Unpacking command-not-found (2.4.0-74) over (2.4.0-73) ...
Preparing to unpack .../glib_2.84.1-3_aarch64.deb ...
Unpacking glib (2.84.1-3) over (2.84.1-2) ...
Preparing to unpack .../libpixman_0.46.0_aarch64.deb ...
Unpacking libpixman (0.46.0) over (0.44.2) ...
Preparing to unpack .../libpng_1.6.48_aarch64.deb ...
Unpacking libpng (1.6.48) over (1.6.47) ...
Preparing to unpack .../python-pip_25.1.1-1_all.deb ...
Unpacking python-pip (25.1.1-1) over (25.1) ...
Setting up libpng (1.6.48) ...
Setting up libpixman (0.46.0) ...
Setting up command-not-found (2.4.0-74) ...
Setting up python-pip (25.1.1-1) ...
pip setup...
Writing to /data/data/com.termux/files/usr/etc/pip.conf
Setting up glib (2.84.1-3) ...
No schema files found: doing nothing.
Processing triggers for mandoc (1.14.6-3) ...
~ $ apt-file search tensorflow
Can't load '/data/data/com.termux/files/usr/lib/perl5/site_perl/5.38.2/aarch64-android/auto/AptPkg/AptPkg.so' for module AptPkg: dlopen failed: cannot locate symbol "_config" referenced by "/data/data/com.termux/files/usr/lib/perl5/site_perl/5.38.2/aarch64-android/auto/AptPkg/AptPkg.so"... at /data/data/com.termux/files/usr/lib/perl5/5.38.2/aarch64-android/DynaLoader.pm line 209.
 at /data/data/com.termux/files/usr/lib/perl5/site_perl/5.38.2/aarch64-android/AptPkg/Config.pm line 6.
Compilation failed in require at /data/data/com.termux/files/usr/lib/perl5/site_perl/5.38.2/aarch64-android/AptPkg/Config.pm line 6.
BEGIN failed--compilation aborted at /data/data/com.termux/files/usr/lib/perl5/site_perl/5.38.2/aarch64-android/AptPkg/Config.pm line 6.
Compilation failed in require at /data/data/com.termux/files/usr/bin/apt-file line 40.
BEGIN failed--compilation aborted at /data/data/com.termux/files/usr/bin/apt-file line 40.
~ $ apt-file update
Can't load '/data/data/com.termux/files/usr/lib/perl5/site_perl/5.38.2/aarch64-android/auto/AptPkg/AptPkg.so' for module AptPkg: dlopen failed: cannot locate symbol "_config" referenced by "/data/data/com.termux/files/usr/lib/perl5/site_perl/5.38.2/aarch64-android/auto/AptPkg/AptPkg.so"... at /data/data/com.termux/files/usr/lib/perl5/5.38.2/aarch64-android/DynaLoader.pm line 209.
 at /data/data/com.termux/files/usr/lib/perl5/site_perl/5.38.2/aarch64-android/AptPkg/Config.pm line 6.
Compilation failed in require at /data/data/com.termux/files/usr/lib/perl5/site_perl/5.38.2/aarch64-android/AptPkg/Config.pm line 6.
BEGIN failed--compilation aborted at /data/data/com.termux/files/usr/lib/perl5/site_perl/5.38.2/aarch64-android/AptPkg/Config.pm line 6.
Compilation failed in require at /data/data/com.termux/files/usr/bin/apt-file line 40.
BEGIN failed--compilation aborted at /data/data/com.termux/files/usr/bin/apt-file line 40.

What is the expected behavior?

~ $ pkg up
Hit:1 https://termux.net stable InRelease
6 packages can be upgraded. Run 'apt list --upgradable' to see them.

Upgrading:
  apt  command-not-found  glib  libpixman  libpng  python-pip

Summary:
  Upgrading: 6, Installing: 0, Removing: 0, Not Upgrading: 0
  Download size: 6642 kB
  Space needed: 49.2 kB

Continue? [Y/n] y
Get:1 https://termux.net stable/main aarch64 apt aarch64 3.0.1 [1080 kB]
Get:2 https://termux.net stable/main aarch64 command-not-found aarch64 2.4.0-74 [83.5 kB]
Get:3 https://termux.net stable/main aarch64 glib aarch64 2.84.1-3 [2544 kB]
Get:4 https://termux.net stable/main aarch64 libpixman aarch64 0.46.0 [156 kB]
Get:5 https://termux.net stable/main aarch64 libpng aarch64 1.6.48 [196 kB]
Get:6 https://termux.net stable/main aarch64 python-pip all 25.1.1-1 [2584 kB]
Fetched 6642 kB in 4s (1709 kB/s)
(Reading database ... 41150 files and directories currently installed.)
Preparing to unpack .../archives/apt_3.0.1_aarch64.deb ...
Unpacking apt (3.0.1) over (2.9.28-1) ...
Setting up apt (3.0.1) ...
(Reading database ... 41149 files and directories currently installed.)
Preparing to unpack .../command-not-found_2.4.0-74_aarch64.deb ...
Unpacking command-not-found (2.4.0-74) over (2.4.0-73) ...
Preparing to unpack .../glib_2.84.1-3_aarch64.deb ...
Unpacking glib (2.84.1-3) over (2.84.1-2) ...
Preparing to unpack .../libpixman_0.46.0_aarch64.deb ...
Unpacking libpixman (0.46.0) over (0.44.2) ...
Preparing to unpack .../libpng_1.6.48_aarch64.deb ...
Unpacking libpng (1.6.48) over (1.6.47) ...
Preparing to unpack .../python-pip_25.1.1-1_all.deb ...
Unpacking python-pip (25.1.1-1) over (25.1) ...
Setting up libpng (1.6.48) ...
Setting up libpixman (0.46.0) ...
Setting up command-not-found (2.4.0-74) ...
Setting up python-pip (25.1.1-1) ...
pip setup...
Writing to /data/data/com.termux/files/usr/etc/pip.conf
Setting up glib (2.84.1-3) ...
No schema files found: doing nothing.
Processing triggers for mandoc (1.14.6-3) ...

~ $ apt-file search tensorflow
Finding relevant cache files to search ...E: The cache is empty. You need to run "apt-file update" first.
~ $ apt-file update
Apt database cached, you can now use "apt-file search"

System information

~ $ termux-info
Termux Variables:
TERMUX_EXEC__PROC_SELF_EXE=/data/data/com.termux/files/usr/bin/termux-info
TERMUX_VERSION=googleplay.2025.01.18
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
URIs: https://termux.net
Updatable packages:
All packages up to date
termux-tools version:
3.0.8
Android version:
15
Kernel build information:
Linux localhost 6.1.99-android14-11-gd7dac4b14270-ab12946699 #1 SMP PREEMPT Tue Jan 21 13:39:43 UTC 2025 aarch64 Android
Device manufacturer:
Google
Device model:
Pixel 6a
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions