When using apt-get install, how to monitor errors and troubleshoot?

You may want to have a look into the Karaf console. Read first the documentation, then use it and learn to love it. I have always two sessions opened one with the console and one where I edit the files. :grin:

And then use

log:tail