Fix #3894

The apt code here is raising an exception, this should most likely
not be happening