VirtualBox Whonix VM: no internet connection

I am using Fedora 34 and installed VirtualBox. I am launching a Whonix VM on it. Sadly, the WiFi doesn’t work on it. I am having the default settings (NAT). Whonix Gateway as well as Whonix Workstation are both running. Whonix Workstation’s Device settings says NAT, “Enable Network Adapter” is enabled, and “Cable connected” as well. On Whonix Gateway too. If you need more logs, please tell me which command I have to use for the output I can give you then.

I have recently used the following command to update my Whonix Workstation (the Gateway update worked well).

sudo apt-get-update-plus dist-upgrade

Unfortunately, this didn’t work. This is the output I got:

$ sudo apt-get-update-plus dist-upgrade
Ign:1 tor+https://fasttrack.debian.net/debian bullseye-fasttrack InRelease     
Ign:2 tor+https://deb.whonix.org bullseye InRelease                            
Ign:3 tor+https://deb.debian.org/debian bullseye InRelease                     
Ign:4 tor+https://deb.debian.org/debian bullseye-updates InRelease             
Ign:1 tor+https://fasttrack.debian.net/debian bullseye-fasttrack InRelease     
Ign:2 tor+https://deb.whonix.org bullseye InRelease                            
Ign:1 tor+https://fasttrack.debian.net/debian bullseye-fasttrack InRelease     
Ign:2 tor+https://deb.whonix.org bullseye InRelease                            
Ign:5 tor+https://deb.debian.org/debian-security bullseye-security InRelease   
Ign:6 tor+https://deb.debian.org/debian bullseye-backports InRelease           
Err:1 tor+https://fasttrack.debian.net/debian bullseye-fasttrack InRelease     
  Read error - read (104: Connection reset by peer) Reading the greet back from SOCKS proxy socks5h://127.0.0.1:9050 failed [IP: 127.0.0.1 9050]
Err:2 tor+https://deb.whonix.org bullseye InRelease                            
  Read error - read (104: Connection reset by peer) Reading the greet back from SOCKS proxy socks5h://127.0.0.1:9050 failed [IP: 127.0.0.1 9050]
Ign:3 tor+https://deb.debian.org/debian bullseye InRelease 
Ign:4 tor+https://deb.debian.org/debian bullseye-updates InRelease
Ign:5 tor+https://deb.debian.org/debian-security bullseye-security InRelease
Ign:6 tor+https://deb.debian.org/debian bullseye-backports InRelease
Ign:3 tor+https://deb.debian.org/debian bullseye InRelease 
Ign:4 tor+https://deb.debian.org/debian bullseye-updates InRelease
Ign:5 tor+https://deb.debian.org/debian-security bullseye-security InRelease
Ign:6 tor+https://deb.debian.org/debian bullseye-backports InRelease
Err:3 tor+https://deb.debian.org/debian bullseye InRelease 
  Read error - read (104: Connection reset by peer) Reading the greet back from SOCKS proxy socks5h://127.0.0.1:9050 failed [IP: 127.0.0.1 9050]
Err:4 tor+https://deb.debian.org/debian bullseye-updates InRelease
  Read error - read (104: Connection reset by peer) Reading the greet back from SOCKS proxy socks5h://127.0.0.1:9050 failed [IP: 127.0.0.1 9050]
Err:5 tor+https://deb.debian.org/debian-security bullseye-security InRelease
  Read error - read (104: Connection reset by peer) Reading the greet back from SOCKS proxy socks5h://127.0.0.1:9050 failed [IP: 127.0.0.1 9050]
Err:6 tor+https://deb.debian.org/debian bullseye-backports InRelease
  Read error - read (104: Connection reset by peer) Reading the greet back from SOCKS proxy socks5h://127.0.0.1:9050 failed [IP: 127.0.0.1 9050]
Reading package lists... Done                              
E: Failed to fetch tor+https://deb.debian.org/debian/dists/bullseye/InRelease  Read error - read (104: Connection reset by peer) Reading the greet back from SOCKS proxy socks5h://127.0.0.1:9050 failed [IP: 127.0.0.1 9050]
E: Failed to fetch tor+https://deb.debian.org/debian/dists/bullseye-updates/InRelease  Read error - read (104: Connection reset by peer) Reading the greet back from SOCKS proxy socks5h://127.0.0.1:9050 failed [IP: 127.0.0.1 9050]
E: Failed to fetch tor+https://deb.debian.org/debian-security/dists/bullseye-security/InRelease  Read error - read (104: Connection reset by peer) Reading the greet back from SOCKS proxy socks5h://127.0.0.1:9050 failed [IP: 127.0.0.1 9050]
E: Failed to fetch tor+https://deb.debian.org/debian/dists/bullseye-backports/InRelease  Read error - read (104: Connection reset by peer) Reading the greet back from SOCKS proxy socks5h://127.0.0.1:9050 failed [IP: 127.0.0.1 9050]
E: Failed to fetch tor+https://fasttrack.debian.net/debian/dists/bullseye-fasttrack/InRelease  Read error - read (104: Connection reset by peer) Reading the greet back from SOCKS proxy socks5h://127.0.0.1:9050 failed [IP: 127.0.0.1 9050]
E: Failed to fetch tor+https://deb.whonix.org/dists/bullseye/InRelease  Read error - read (104: Connection reset by peer) Reading the greet back from SOCKS proxy socks5h://127.0.0.1:9050 failed [IP: 127.0.0.1 9050]
E: Some index files failed to download. They have been ignored, or old ones used instead.

You are asking a question on the fedora forum that would be better answered on an ubuntu or debian forum since those distros use apt for updates and fedora uses dnf.

You may want to make sure you have internet connection from the VM as has been discussed in your other related posts before you bring up errors that may be affected by the network connectivity.

Work through the issues with connectivity before you add additional things to the mix.