Ben
The APM always installs all required packages when I use it. I think if you are having these problems we need a more step by step explanation, with the actual error messages you receive, rather then a statement of "crash" which does not help us debug.
I will look at the repository generation. The code was not designed to do everything that is being expected of it.