I have problem with dpkg and perl-base

Hello, I am new to Kali Linux and I tried to install it on my cell phone but I have a problem when using apt upgrade and this error appears

Preparing to unpack …/perl-base_5.40.0-8_arm64.deb …
Unpacking perl-base (5.40.0-8) over (5.40.0-7) … dpkg: error processing archive /var/cache/apt/archives/perl-base_5.40.0-8_arm64.deb (–unpack): unable to stat ‘./usr/bin/perl’ (which was about to be installed): Operation not permitted dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) Errors were encountered while processing:
/var/cache/apt/archives/perl_5.40.0-8_arm64.deb /var/cache/apt/archives/perl-base_5.40.0-8_arm64.deb
Error: Sub-process /usr/bin/dpkg returned an error code (1)

3 Likes

I have the same problem and I can’t use Kex, I tried a lot of solutions but no one works

Nobody replies😭, are you be available to solve the problem?

You should probably have asked in one of the nethunter sections.

And with those low effort questions without any context or anything - really no one bothers

1 Like

Same issue. Cant believe this forum exists to let issues rot or just mock users with absolutely zero constructive feedback. What a low effort user base.

Kali is already a ‘niche’ platform, and the nethunter base is even smaller.
Many of the questions aren’t specific to Kali but to general kex and Linux issues that a web search can already help with, hence ‘what have you already tried’, to fix the issue.

sudo apt update
sudo apt full-upgrade -y

is how to update a system, first update the package manger, then perform a full upgrade, and sudo is needed as it requrres escalated privileges (this in the users output, ‘Operation not permitted’, tells me that is probably the cause) , on all unix like systems, including Linux there is already a built in help manual that comes with the system, in a terminal;

man apt

would launch the manual and search for the apt package manger section, which would already give you a lot of helpful information about how to use the apt package manager, but frankly many users want to be spoon fed answers. It is not a low effort user base, but low effort new userbase.

constructive feedback requires some context, what did you try, what was the result, what was the error message, how did you try to fix it already…

What did we do? Installed termux from github latest release. Used apt update and upgrade. Followed instructions from Kali wiki to install kali on termux. After kali was installed, tried apt update and upgrade. Got the errors listed here. Its a fresh nethunter install in termux on android following official instructions. The reason we didnt specify is clear. This error occurs repeatedly using every guide for install I can find, and the pristine nature of the install makes us assume the error ia common and well known to experts. If youre only qualified to link instructuons then thank you but we’ve already got those and followed them to the error. If there are any experts here who are familiar with the issues Icd like to hear from them or be directed to a forum with capable help.

I had same issue
Get andronix app then install Kali from there and this problem is solved

It can’t be solved by us. Use a different linux like ubuntu, debian, etc. But don’t use parrot os and kali linux in termux. It has several problems.

Are you rooted or rootless. What worked for me (rootless) ran the wget…nh…install command alone (developer option) once downloaded, ran the command in termux…bash…/nh…termux* followed prompts…configured etc/resolv…checked sources.list…uncomment deb…src…update…upgrade…ensure dbus-x11 present…(optional)…xfce4 install if not present…xfce4-whiskermenu-profile…kex…passwd…configure kex…termux-api install can also help with rootless

1 Like