System:ubuntu 12.04
I can't install g++ through apt-get install g++
so I try tu run apt-get update ,But I got this prompt
GPG error: http://deb.torproject.org precise Release: The following signatures were invalid: NODATA 1 NODATA 2
I changes my apt source from ont to one. But it didin't help
Finally I found the solution here http://bbs.51cto.com/thread-954904-1.html
run this
sudo apt-get clean
cd /var/lib/apt
sudo mkdir -p lists/partial
sudo apt-get clean
sudo apt-get update
It helpd, But I still don't understan why. But the problem was solved;