Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debian apt error: "The following signatures were invalid: NODATA 1 NODATA 2" [closed]

I'm having some trouble with apt/aptitude. Recently, out of nowhere, I realized I couldn't install anything and apt-get update would produce this result:

$ sudo apt-get update
Get:1 http://security.debian.org wheezy/updates Release.gpg [1,936 B]
Get:2 http://ftp.debian.org wheezy Release.gpg [1,936 B]
Get:3 http://ftp.debian.org wheezy-updates Release.gpg [1,936 B]
Get:4 http://security.debian.org wheezy/updates Release [1,936 B]
Ign http://security.debian.org wheezy/updates Release
E: GPG error: http://security.debian.org wheezy/updates Release: The following signatures were invalid: NODATA 1 NODATA 2

This part: Ign http://security.debian.org wheezy/updates Release seems worrisome to me, but I don't really know what it could affect.

I know that this is not a problem with my system. I had an old Debian VM lying around and I tested with it as well, getting the same problem. I'm getting this problem at work, if that helps, so I'm not in full control of the network here and it might be something that they did with the network.

I also tried different mirrors, achieving the same result.

This is my sources.list:

$ cat /etc/apt/sources.list
deb http://ftp.debian.org/debian/ wheezy main
deb-src http://ftp.debian.org/debian/ wheezy main
deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main
deb http://ftp.debian.org/debian/ wheezy-updates main
deb-src http://ftp.debian.org/debian/ wheezy-updates main

Thank you in advance.

like image 598
user986730 Avatar asked Aug 19 '14 16:08

user986730


Video Answer


3 Answers

Just solved this myself; this question came up along with a lot of other unsolved or non-applicable-to-me questions/answers around the net. Thought I'd add my particular solution for future reference --

Check disk space

df -h

Keep an eye on your /tmp/ -- I had run out of disk space, resolved the low disk situation, then still had the NODATA signature error. Finding this page gave me the answer - when low on space Ubuntu converts your /tmp to a small ramdisk.

sudo umount -l /tmp

Solves this problem.

like image 78
Saiboogu Avatar answered Oct 21 '22 20:10

Saiboogu


Try: sudo apt-get clean cd /var/lib/apt sudo mv lists lists.old sudo mkdir -p lists/partial sudo apt-get clean sudo apt-get update

As a last resort, try:

sudo fuser -vvv /var/lib/dpkg/lock
sudo rm /var/lib/apt/lists/lock
sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
sudo rm -rf /var/lib/dpkg/updates/*
sudo rm -rf /var/lib/apt/lists
sudo rm /var/cache/apt/*.bin
sudo mkdir /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists/partial
LANG=C;sudo apt-get clean
LANG=C;sudo apt-get autoclean
LANG=C;sudo apt-get --purge autoremove
LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824
sudo dpkg --clear-avail
sudo dpkg --configure -a
LANG=C;sudo apt-get -f install
LANG=C;sudo apt-get --fix-missing install
LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade

Hope you solve this. P.S, that's why I don't have Debian (hehe jk)

like image 32
gogobebe2 Avatar answered Oct 21 '22 21:10

gogobebe2


I have done following steps and it works fine for me (basically removed the lists folder and recreated it by update command)

# cd /var/lib/apt
# mv lists  lists-backup
# apt-get clean all

Now recreate the folder using

# apt-get update

Reinstall all the pre-requisite packages

# apt-get -f install

Now you are all set for installing your required packages. Hope this helps.

PS: Please also make sure that if you are running inside a firewall then proxy environment variables are set ($http_proxy and https_proxy)

like image 26
NRK Rao Avatar answered Oct 21 '22 22:10

NRK Rao