How to fix /etc/resolv.conf on mounted SD card

Alright so I know similar questions have already been asked but they havent solved my problem.

On my raspberry pi 3(running ubuntu ARM) there are no tools to access the internet such as wpa_supplicant or others so I stuck the SD card in my laptop running ubuntu.

I mounted the drive using read/write and followed some instructions on chrooting in but cant access the internet. I realized the problem is I cant copy /etc/resolv.conf to /mnt/etc/resolv.conf due to “dangling symlink”.

I then chrooted in again and ran ls -al /etc/resolv.conf and it outputted

lrwxrwxrwx 1 root root 29 Apr 22  2018 /etc/resolv.conf -> ../run/resolvconf/resolv.conf 

I tried running sudo touch /etc/resolv.conf and sudo nano /etc/resolv.conf and it all outputted:

bash: /etc/resolv.conf: No such file or directory 

I then tried running sudo chattr -i /etc/resolv.conf and it outputted:

/usr/bin/chattr: Operation not supported while reading flags on /etc/resolv.conf 

How can I fix this? Im relatively new to this site and linux in general so let me know if you need any more information.