Go to this link -> https://www.openprinting.org/printer/Brother/Brother-HL-2040
Click on the link "directly download PPD" which is underlined in green colour
PPD for Brother-HL-2040 |
Now in your linux machine (Debian based)
goto printer settings -> Select the "provide PPD" option -> Browse to the downloaded PPD file and "apply"
Check with the test print.