Which linux distribution are you using? Maybe you should use the correct package manager (like rpm, yum ....) or even install from the source code. I don't recoment you to use apt-get if your distribution is not based on it.