Permanently disable error reporting in Ubuntu or Lubuntu

For some reason the errors keep coming in Lubuntu or Ubuntu. If you want to stop this you can just turn of the annoying Apport by typing in the following in terminal:

sudo leafpad /etc/default/apport

Replace leafpad with any text editor.

Then in the text file that opens replace enabled=1 to enabled=0

Close the file and exit. No more error reporting for you.

Edit: Actually i did that but kept getting errors. I think it might have something to do that I built a custom Lubuntu and it keeps fetching the file from the live cd instead of the one stored in the saved files. So what solved the annoying error reporting coming back was this:

sudo systemctl disable apport