diff --git a/apt-file b/apt-file
index 57c76b489..4fce27066 100644
--- a/apt-file
+++ b/apt-file
@@ -199,7 +199,7 @@ sub open_data_pipeline {
         my @cat_cmd = (
             'xargs',
             '-0r',
-            '/usr/lib/apt/apt-helper',
+            '@TERMUX_PREFIX@/lib/apt/apt-helper',
             @apt_options,
             'cat-file'
         );
