Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)" when updating package list

Tags:

apt

Here is what I see in my terminal:

user@user-OptiPlex-9020:~$ sudo apt-get update
Ign http://extras.ubuntu.com trusty InRelease                                  
Ign http://in.archive.ubuntu.com trusty InRelease                              
Get:1 http://dl.google.com stable InRelease                                    
100% [1 InRelease gpgv 1,661 B] [Connecting to 192.168.0.90 (192.168.0.90)] [WaSplitting up /var/lib/apt/lists/partial/dl.google.com_linux_chrome_deb_dists_stable_InRelease intoIgn http://dl.google.com stable InRelease                                      
E: GPG error: http://dl.google.com stable InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)

I have the required authentication information in /etc/apt/apt.conf file:

Acquire::http::proxy "http://username:[email protected]:8080/";
Acquire::https::proxy "https://username:[email protected]:8080/";
Acquire::ftp::proxy "ftp://username:[email protected]:8080/";

I am not able to figure out the problem.

like image 534
Swaroop Avatar asked Jun 30 '14 09:06

Swaroop


2 Answers

One way for that is to remove dl.google.com from your software update repositories,

for that, use System Settings -> Software & Update -> Other Software

and uncheck dl.google.com

then run

sudo apt-get update

I could not find a way to keep google in circle because I live in Iran & google refuses service to users in Iran.

like image 142
ashkanb0 Avatar answered Nov 19 '22 21:11

ashkanb0


Just follow below 3 easy steps, and it works for me:

Step 1: Edit google-chrome.list repo file:

$ sudo nano /etc/apt/sources.list.d/google-chrome.list

Step 2: Comment the "dl.google.com..." line and save the file:

# deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main

Step 3: Run update again:

$ sudo apt-get update
like image 43
rva Avatar answered Nov 19 '22 22:11

rva