How Do You Install Software and OS Packages on an Ubuntu Server?

Problem scenario:  You are trying to install various packages on Ubuntu 14.04, but they are not working.   You are root and you run this command (where postgresql is the name of the package you want to install):

apt-get install postgresql postgresql-contrib

This error message is what you see as a result:

“Reading package lists… Done
Building dependency tree… Done
E: Unable to locate package postgresql
E: Unable to locate package postgresql-contrib”

How do you install new packages on your Ubuntu server?

Beware of Fake USB External Batteries / Fake Powerbanks

This is a great article on fake powerbanks (also referred to as “external USB battery chargers”).  Batteries with advertised capacities of 100,000 mAh to 300,000 mAh with low prices should be considered suspicious.  If it seems too to be true, it probably is.  Here is a 50,000 mAh battery pack that appears legitimate.

How Do You Troubleshoot a PowerShell Error “CreateFromDirectory … The Path Is Not of a Legal Form”?

Problem scenario
You want a PowerShell script to place files from a folder into one zip file.

When using PowerShell version 3, your script throws this error:


Exception calling “CreateFromDirectory” with “2” argument(s): “The path is not of a legal form.”
At line…
     CategoryInfo                  : NotSpecified: (:) [], MethodInvocationException
     FullyQualifiedErrorId    

How Do You Prevent the Error Message “AccelerometerSt.Exe – Application Error” from Popping Up?

Problem scenario:  When you log into your Windows 7 computer, you get this error:

“AccelerometerSt.exe – Application error

The application was unable to start correctly (0x000007b).  Click OK to close the application.”

How do you keep this error from popping up every time you log in?

Solution
Reinstall HP 3D Driveguard.  You used to be able to download the media from here (http://h20564.www2.hp.com/hpsc/swd/public/detail?swItemId=ob_124661_1).