My pwnbox cannot connect to anything (linux fundamentals)

i can ping many servers such as google, reddit, github etc. however when i attempt to run several commands, such as apt-get update i get

  Cannot initiate the connection to download.docker.com:443 (2600:9000:2804:4400:3:db06:4200:93a1). - connect (101: Network is unreachable)

even pinging some servers gets no replies, i needed to connect and curl inlanefreight.com but it wasnt working, when pinging it i received

└──╼ [★]$ ping inlanefreight.com
PING inlanefreight.com (134.209.24.248) 56(84) bytes of data.
^C
--- inlanefreight.com ping statistics ---
55 packets transmitted, 0 received, 100% packet loss, time 54713ms

i cannot progress and im not sure why i cant connect to anything, when trying to install something i get stuck when connecting

After this operation, 96.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
81% [Connecting to deb.parrot.sh (104.237.149.90)]      

which eventually leads into

E: Failed to fetch https://deb.parrot.sh/parrot/pool/main/n/npm/npm_9.2.0%7eds1-1_all.deb  Unable to connect to deb.parrot.sh:https:
E: Sub-process /usr/bin/dpkg returned an error code (1)

as soon as it tries to connect to the server it gets stuck. it seemed to be able to find how large the file was so there must be some connection but i cant install it. im using the hackthebox academy pwnbox and i really want to continue collecting flags. if anyone has any insight into this please reply. ive been really confused by this and havent been able to answer many questions/collect flags