[ IF YOU COPY PASTE: Watch out the webpage will format links to:
http:link (NUMBER) bionic main ,
if you copy paste remove the (NUMBER) ]
C.) use keyboard to save changes:
Ctrl o / Strg o
D.) use keyboard to exit nano editor:
Ctrl x / Strg x
E.) then, try #sudo apt update
F.) If the error persists, try rename the file with: #sudo mv /etc/apt/sources.list.d/brave-browser-release-.list /etc/apt/sources.list.d/brave-browser-release-bionic.list
Applying both resolved my issues with “Malformed entry 1 in list file /etc/apt/sources.list.d/brave-browser-release-.list (Component)”, but I am not sure what it was. Apparently there is an issue with the expression “${UBUNTU_CODENAME}” on ubuntu minimal installs.
lucky you, for me the same is happening so i tryed to forget it, but when i tried to install something else through the command line, it told me it again