Sometimes you have to read the error messages carefully and do a bit of guesswork to figure out solutions.
The only line that explicitly states what happened is this:
rmdir: failed to remove `usr/lib/libreoffice/basis3.4/program/': Directory not empty
Usually this kind of error doesn't cause the whole installation to fail, but maybe it's something necessary this time. I don't know. First see what's in that directory that's causing it to fail. Then either move it out, or just rename the directory away, and re-running the command. You may need to use "apt-get install -f" first. If everything works correctly, you should be able to delete them permanently.
Speaking of which, it's often a good idea to pay careful attention whenever apt wants to remove a package. It can sometimes want to uninstall optional packages that you may actually want to keep.
Finally, while probably not the case here, remember that most errors caused by package conflicts tend to be temporary. Often you just have wait a few days until they get resolved upstream.