Please help me, removed iproute2 now can't access Pi

I’m using the diet-pi. I already have access to the disk partition by setting up a SD card with another raspberry version (official) and mounted the HDD with the dietpi on there.

Now, I’m trying to find a way to get it back by installing the the iproute2 on the external (with dietpi) drive. Tried wget this one: http://ftp.debian.org/debian/pool/main/i/iproute2/iproute2_5.10.0-4_armhf.deb and then using dpkg and it installed but probably installed in the SD card instead of the SSD (which is where the dietpi is) because it’s still not working.