top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to resolve GPG Error?

+1 vote
355 views

I'm downloading android studio from Ubuntu PPA and if I try to run sudo apt-get update command, it is showing
E: GPG error: http://ppa.launchpad.net trusty InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?) as error. Please help me in solving this.

posted Oct 5, 2016 by Bhagyashree R

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button
Looks to be a proxy issue rather then android studio or ubuntu issue. Following might help

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


Check the following link (second answer)
http://askubuntu.com/questions/474549/got-nodata-issue-nodata-does-the-network-require-authentication
I already tried this, but it is not working
Try
rm -r /var/cache/apt-cacher/*

We can only guess your problem from here (as dont have access to your system) and problem can be anywhere so would suggest to try all the solution in the provided link.

Similar Questions
+4 votes

What is Unable to resolve target 'android-15' until the SDK is loaded? IN eclipse I am getting the error while am try to run my app. Please help me how to solve this issue.

+2 votes

I am getting this there while updating Sub module in my main project

+1 vote
$scope.addTodo = function() {     
    var url = 'http://services.postcodeanywhere.co.uk/PostcodeAnywhere/Interactive/Find/v1.10/json2.ws?Key=XE97-xXxx-YG99-JK92&SearchTerm=12345&PreferredLanguage=English&Filter=&UserName=&CallbackFunction=a';
    var config1 = {headers:{
    'Access-Control-Allow-Origin':'*',
    'Access-Control-Allow-Methods': ['OPTIONS', 'GET', 'POST'],
    'Access-Control-Allow-Headers':'Origin, X-Requested-With, Content-Type, Accept',
    'Content-Type':'text/plain; charset=utf-8',
    'Accept':'*/*'
            }};
   //  alert("hello");
   alert("url" + url);
   //Enable cross domain calls
   $http.defaults.useXDomain = true;
   // alert("$http.defaults.useXDomain");
   //Remove the header used to identify ajax call  that would prevent CORS from working
   delete $http.defaults.headers.common['X-Requested-With'];
    //   alert("$http.defaults.headers.common");
    //  alert("$http.config1"+config1);
    //  alert("url" + url);

    $http.get(url, config1).success(function (data, status, headers, config) {
  alert("success");
  if(data.success){
  alert("inside success");
  }else{
   alert("inside else");
  }
}).
error(function (data, status, headers, config) {
alert("Error, please report to admin. Error code is " + status);
//alert("data, please report to admin. Error code is " + data);      
});
};
...