Manually remove a broken package on Debian/Ubuntu

The other day, after a do-release-update on an Ubuntu box I had some issues with a package which told me:

Errors were encountered while processing:
BROKEN-PACKAGE
E: Sub-process /usr/bin/dpkg returned an error code (1)

here’s how I solved:

mv /var/lib/dpkg/info/BROKEN-PACKAGE.* /tmp/
dpkg --remove --force-remove-reinstreq BROKEN-PACKAGE

(via)

What version of OS X is installed on this drive?

It may occur to some to have a bunch of old disks laying in closets and them suddenly having the need to attach them to a running machine to restore some old data. Or you could have the need to boot up it’s System.

How to know which OS X operating system is installed on that drive? Well, all you have to do is a simple:

more /System/Library/CoreServices/SystemVersion.plist

over the Terminal.app. I’m writing this as a reminder for an eventual future need.