GPG error : signatures were invalid: NODATA1 NODATA2

来源:互联网 发布:xp下查找网络打印机 编辑:程序博客网 时间:2024/06/07 10:42

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;


0 0