Problem Updating Debian-10 using whonix source list?

When i press update qube system from qube manager to debian-10 template it gives me

E: Type ‘sudo’ is not known on line 1 in source list /etc/apt/sources.list.d/whonix.list
E: The list of sources could not be read.

When i open whonix.list normally in file manager, it is this:

Copyright (C) 2012 - 2020 ENCRYPTED SUPPORT LP adrelanos@riseup.net
See the file COPYING for copying conditions.
Whonix /etc/apt/sources.list.d/whonix.list
This file has been automatically created by /usr/bin/whonix_repository.
If you make manual changes to it, your changes get lost next time you run the whonix_repository tool.
You can conveniently manage this file, using the whonix_repository tool.
For any modifications (delete this file, use stable version, use testers
version or use developers version), please use the whonix_repository tool.
Run:
sudo whonix_repository

#deb tor+http://deb.dds6qkxpwdeubwucdiaord2xgbbeyds25rbsgr73tbfpqpt4a6vjwsyd.onion buster main contrib non-free
#deb-src tor+http://deb.dds6qkxpwdeubwucdiaord2xgbbeyds25rbsgr73tbfpqpt4a6vjwsyd.onion buster main contrib non-free

deb tor+https://deb.whonix.org buster main contrib non-free
#deb-src tor+https://deb.whonix.org buster main contrib non-free

Leaving source line disabled by default to safe some time, it’s not useful
anyway, since it’s better to get the source code from the git repository.

End of /etc/apt/sources.list.d/whonix.list

I cant see a problem there. Remade file using whonix_repository tool to make sure as well.

When i open /etc/apt/sources.list.d/whonix.list in sudoedit from debian-10 terminal, it gives me just:

sudo apt-get update
sudo apt-get dist-upgrade

So sudo shouldnt be there, right? Should be something else, like links or something like that.

Tried to torify apt-get traffic before, so maybe the issue is related to that?

All other updates seem to be working fine.

Sorry if this was not the right place. Thanks.

If contents of file /etc/apt/sources.list.d/whonix.list contain

sudo apt-get update
sudo apt-get dist-upgrade

that is totally wrong.

I suggest to delete /etc/apt/sources.list.d/whonix.list and re-create it according to documentation.