Trying to install inside a docker, either vim or nano but I only get this:
0% [Connecting to archive.ubuntu.com (91.189.88.152)]
Exit docker an
It looks like your docker is unable to connect to internet. Try this:-
sysctl -w net.ipv4.ip_forward=1
Then restart:-
service docker restart
If still not working, read here:- My docker container has no internet