apport

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

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

Step 3: In principle you should create a file inside
/etc/sysctl.d 
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 
core

Restart if needed!