Ok I have found a solution that worked for me...
I did the following:
Step 1: Open a new terminal and run sudo apt autoremove sudo apt clean sudo apt autoclean
Step 2: Open a new terminal and run rm -rf ~/.cache/thumbnails/* systemctl stop ufw && systemctl disable ufw
step 3: Open a new terminal and run sudo apt autoremove --purge
Step 4: Open new terminla and run sudo apt install nload iftop nload iftop
Step 5: Open new terminla and run curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python3 -