What have you tried:Have tried every suggestion on co-pilot github
What is the error: error running pypy3 rtupdate hook public_modules.rtupdate
dpkg: error processing package pypy3 (–configure)
What device is this on: debian vbox
What have you tried:Have tried every suggestion on co-pilot github
What is the error: error running pypy3 rtupdate hook public_modules.rtupdate
dpkg: error processing package pypy3 (–configure)
What device is this on: debian vbox
Have you installed some python package and now it wont work?
It is better to tell us what you are trying to achieve than just posting an error message out of context. just asking that error message with an AI like copilot will also have little success for the same reason
I believe they’re trying to install a package that depends on pypy3 but seems to be throwing this error when pypy3 is trying to install and dpkg, i am also having this issue with the same vbox configuration, unsure on what is causing it though if anyone is able to help out that’d be awesome
I have a similar issue. kali 24.4. I’m trying to get routersploit running. Routersploit is installed but requires pypy3-venv, which needs pypy3. Installing thru pipx doesn’t work either and kali docs prefers using apt if there is a package. apt has pypy3 (7.3.19+dfsg-2). when using apt I get this error;
──(gmm㉿kali)-[~]
└─$ sudo apt install pypy3
Installing:
pypy3
Installing dependencies:
pypy3-lib
Suggested packages:
pypy3-doc pypy3-tk
Summary:
Upgrading: 0, Installing: 2, Removing: 0, Not Upgrading: 0
Download size: 0 B / 13.2 MB
Space needed: 79.1 MB / 780 GB available
Continue? [Y/n] y
Selecting previously unselected package pypy3-lib:amd64.
(Reading database … 618122 files and directories currently installed.)
Preparing to unpack …/pypy3-lib_7.3.19+dfsg-2_amd64.deb …
Unpacking pypy3-lib:amd64 (7.3.19+dfsg-2) …
Setting up pypy3-lib:amd64 (7.3.19+dfsg-2) …
Selecting previously unselected package pypy3.
(Reading database … 619372 files and directories currently installed.)
Preparing to unpack …/pypy3_7.3.19+dfsg-2_amd64.deb …
Unpacking pypy3 (7.3.19+dfsg-2) …
Setting up pypy3 (7.3.19+dfsg-2) …
running pypy3 rtupdate hooks for 7.3
RPython traceback:
File “rpython_jit_metainterp.c”, line 59312, in BlackholeInterpreter_run
File “rpython_jit_metainterp_2.c”, line 13519, in dispatch_loop
Fatal RPython error: AssertionError
Aborted
error running pypy3 rtupdate hook public_modules.rtupdate
dpkg: error processing package pypy3 (–configure):
installed pypy3 package post-installation script subprocess returned error exit status 4
Processing triggers for man-db (2.13.0-1) …
Processing triggers for kali-menu (2025.2.0) …
Errors were encountered while processing:
pypy3
Error: Sub-process /usr/bin/dpkg returned an error code (1)
┌──(gmm㉿kali)-[~]
└─$
sudo apt update
sudo apt install pypy3-venv
once you have the pypy3 virtual environment set up, try installing pypy3 again.
I believe pypy3 must be installed first but pypy3-venv. I have tried countless tutorials, install, reinstall, purge etc. results from your suggestion below.
──(gmm㉿kali)-[~]
└─$ sudo apt update
[sudo] password for gmm:
Hit:1 ########.kali.org/kali kali-rolling InRelease
Hit:2 #####brave-browser-apt-release.s3.brave#### stable InRelease
All packages are up to date.
┌──(gmm㉿kali)-[~]
└─$ sudo apt install pypy3-venv
Installing:
pypy3-venv
Installing dependencies:
pypy3
Suggested packages:
pypy3-doc pypy3-tk
Summary:
Upgrading: 0, Installing: 2, Removing: 0, Not Upgrading: 0
Download size: 35.0 kB / 10.4 MB
Space needed: 62.2 MB / 779 GB available
Continue? [Y/n] y
Get:1#######kali.org/kali kali-rolling/main amd64 pypy3-venv all 7.3.19+dfsg-2 [35.0 kB]
Fetched 35.0 kB in 0s (114 kB/s)
Selecting previously unselected package pypy3.
(Reading database … 619398 files and directories currently installed.)
Preparing to unpack …/pypy3_7.3.19+dfsg-2_amd64.deb …
Unpacking pypy3 (7.3.19+dfsg-2) …
Selecting previously unselected package pypy3-venv.
Preparing to unpack …/pypy3-venv_7.3.19+dfsg-2_all.deb …
Unpacking pypy3-venv (7.3.19+dfsg-2) …
Setting up pypy3 (7.3.19+dfsg-2) …
running pypy3 rtupdate hooks for 7.3
RPython traceback:
File “rpython_jit_metainterp.c”, line 59312, in BlackholeInterpreter_run
File “rpython_jit_metainterp_2.c”, line 13519, in dispatch_loop
Fatal RPython error: AssertionError
Aborted
error running pypy3 rtupdate hook public_modules.rtupdate
dpkg: error processing package pypy3 (–configure):
installed pypy3 package post-installation script subprocess returned error exit status 4
dpkg: dependency problems prevent configuration of pypy3-venv:
pypy3-venv depends on pypy3 (>= 7.3.19+dfsg-2); however:
Package pypy3 is not configured yet.
dpkg: error processing package pypy3-venv (–configure):
dependency problems - leaving unconfigured
Processing triggers for kali-menu (2025.2.0) …
Processing triggers for man-db (2.13.0-1) …
Errors were encountered while processing:
pypy3
pypy3-venv
Error: Sub-process /usr/bin/dpkg returned an error code (1)
┌──(gmm㉿kali)-[~]
└─$
Pypy3 and pypy-venv will install, but won’t configure and hence routersploit encounters module errors.
I think its because Kali is using Python version 3.13.2 and according to the pypy website;
its built against Python 3.11
Thanks, thats the best answer so far.
I decided to not use routersploit as it seems the last update was 2022.
As i am no longer interested, i will consider this thread abandoned.
Is there a solution to this? I am experiencing the same error and I need to install a module needed for a cve. thanks.
You could install an earlier version of Python that pypy3 would be happy with, the easiest way is to use pyenv which is a container for python;
If you want to do this more globally, have a read here;