whenever I am sudo I ma getting errors --> E: Type 'sudo' is not known on line 2 in source list /etc/apt/sources.list.d/balena-etcher.list E: The list of sources could not be read. E: Type 'sudo' is not known on line 2 in source list /etc/apt/sources.list.d/balena-etcher.list E: The list of sources could not be read.
I don't know what should I do please help me
1 Answer
Most likely, you accidentally included sudo inside the file /etc/apt/sources.list.d/balena-etcher.list, which shouldn't be there. If you're following this guide, the contents of that file should be
deb stable etcherOpen a terminal window, type sudo nano /etc/apt/sources.list.d/balena-etcher.list, edit the file so it matches, then press Ctrl + X to exit. Press Y when prompted to save, and Enter to save to the same file.
Finally, run sudo apt update to refresh your list of packages. Hopefully afterwards you can do apt commands again!