how to fix a “E: The method driver /usr/lib/apt/methods/http could not be found.” error?
Actually, it's not only this problem. Just now, I followed a damn tutorial (http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html) to install oracle Java8 on Ubuntu, which made me end with :
"sudo: apt-get: command not found".

I saw the installation note:
Removing python-software-properties (0.92.35) ...
Removing jockey-gtk (0.9.7-0ubuntu15) ...
Removing ubuntu-minimal (1.324) ...
Removing nautilus-share (0.7.3-1ubuntu5) ...
Removing apturl (0.5.2ubuntu4) ...
Removing ubuntu-desktop (1.324) ...
Removing software-center (13.10-0ubuntu3) ...
Removing ubuntu-extras-keyring (2010.09.27) ...
OK
Removing software-properties-gtk (0.92.35) ...
Removing software-properties-common (0.92.35) ...
Removing python3-software-properties (0.92.35) ...
Removing unattended-upgrades (0.82.1ubuntu2) ...
Removing tasksel (2.88ubuntu15) ...
Removing tasksel-data (2.88ubuntu15) ...
Removing apt (0.9.15.4ubuntu4) ...


Why the hell installing java8 requires removing so many packages, including apt? 

Having no "apt" will lead you cannot use apt-get.

So I tried to use "sudo aptitude install apt" to get it back, which ends up with “E: The method driver /usr/lib/apt/methods/http could not be found.” In such a case, there is pretty much nothing you can do.

So how did i fix a “E: The method driver /usr/lib/apt/methods/http could not be found.” error?

Solution is simple : find a similar ubuntu machine and copy the "http" file back to your own one.

The problem stems from the default jdk in Ubuntu is open-jdk. open-jdk is not suitable for many things, with which you even cannot use pycharm. What the hell is wrong with Ubuntu to choose open-jdk?

Every time with a newly-install ubuntu system, the first thing for me to do is to install oracle jdk. I hate this.

Popular Posts