The original post: /r/debian by /u/PenDramatic1821 on 2024-12-27 07:09:16.

So I was following a tutorial to run kismet from virtualbox and I either did not complete all the steps or I followed a wrong set of steps. Now Im unable to use Sudo anymore. This is the error code I receive…please if somebody could help me resolve this. Google hasnt been super helpful. Im unable to just re-install I must fix it. Thank you guys so much for your time.

┌──(sdv㉿sdv)-[~]

└─$ sudo apt upgrade

[sudo] password for sdv:

Error: Type ‘sudo’ is not known on line 1 in source list /etc/apt/sources.list.d/virtualbox.list

Error: The list of sources could not be read.

Error: Type ‘sudo’ is not known on line 1 in source list /etc/apt/sources.list.d/virtualbox.list

Error: The list of sources could not be read.

///////////////////////////\\\\\\\\\\\\\///////////////////////////\\\\\\\\\\\//////////////////////////\\\\\\\

When I open my ETC/APT sources list in nano this is the only text it has in it.

See https://www.kali.org/docs/general-use/kali-linux-sources-list-repositories/

deb http://http.kali.org/kali kali-rolling main contrib non-free non-free-firmware

Additional line for source packages

deb-src http://http.kali.org/kali kali-rolling main contrib non-free non-free-firmw>