Permanently edit the core_pattern file This file defines the whole saga
Step 1: Remove apport and everything related to it

Step 2: Edit
and insert at the end of the file
kernel.core_pattern = core

Step 3: In principle you should create a file inside
but this is a work around.

Step 4: Verify by typing
sysctl -p /etc/sysctl.conf
It must output
root@localhost:/var/log# sysctl -p /etc/sysctl.conf
kernel.core_pattern = core
Step 5: You can cat the kernel parameter as follows:
root@localhost:/var/log# cat /proc/sys/kernel/core_pattern 

Restart if needed!