gnutls_handshake() failed after using Tor Browser

After using Tor Browser, I can't use apt-get update and git pull. I downloaded Tor Browser source(I didn't install it) and opened it and used it. After using Tor browser I've noticed that I can't use git pull and apt-get update because of this error:

gnutls_handshake() failed: A TLS packet with unexpected length was received. Err https://private-ppa.launchpad.net precise/main i386 Packages I've even changed gnutls to openssl but it still didn't work.

Unknown SSL protocol error in connection to gerrit.wikimedia.org:443 while accessing https://gerrit.wikimedia.org/r/p/mediawiki/core.git/info/refs fatal: HTTP request failed

I stopped Tor and restarted my computer but nothing fixed.

Ubutnu 64bit 12.04 Vidalia 0.2.21 Tor 0.2.3.25

Trac:
Username: omidh