Ubuntu Update error 'nodata'



  • When doing an

    $ sudo apt-get update
    

    error is received

    Get:1 http://security.ubuntu.com trusty-security InRelease
    100% [1 InRelease gpgv 1,139 B]Splitting up /var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_trusty-security_InRelease into data and       Ign http://security.ubuntu.com trusty-security InRelease
    E: GPG error: http://security.ubuntu.com trusty-security InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)
    
    

    Found and tried this:

    sudo apt-get clean
    sudo mv /var/lib/apt/lists /var/lib/apt/lists.broke
    sudo mkdir -p /var/lib/apt/lists/partial
    sudo apt-get update
    

    which did not work.



  • From what this is saying.... remove GPG from your sources.list http://security.ubuntu.com trusty-security

    A bit out of date I know.... but not seeing a ton of info for this off hand..



  • I added tags.

    Treat a Linux system the same that you would any other OS. You mentioned the OS here, Ubuntu, but we only know that it is Ubuntu 14.04 because we know that you were working on that from another thread. You'd always say Windows Server 2012 R2 or Windows 7 if it were Windows, do the same with other operating systems. You never know when it is important, but you can be sure that it's the first thing that people will ask.



  • @scottalanmiller said in Ubuntu Update error 'nodata':

    I added tags.

    Treat a Linux system the same that you would any other OS. You mentioned the OS here, Ubuntu, but we only know that it is Ubuntu 14.04 because we know that you were working on that from another thread. You'd always say Windows Server 2012 R2 or Windows 7 if it were Windows, do the same with other operating systems. You never know when it is important, but you can be sure that it's the first thing that people will ask.

    Noted - and does make sense. I will see about that in the future.



  • @gjacobse

    So if you run sudo find / -iname "sources.list" you'll see where your repo sources are.... likely in /usr/share/doc.apt/examples/sources.list and the important location of /etc/apt/sources.list

    You can make a backup of this list cp /etc/apt/sources.list /etc/apt/sources.list.bak before proceeding below.

    Then perform a sudo nano /etc/apt/sources.list and find the offending record and comment it out.

    Save the file, and try the update again.



  • Am I reading correct then that in the below, I need to comment out ever reference to us.archive.ubuntu.com/ubuntu trusty

    # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
    # newer versions of the distribution.
    deb http://us.archive.ubuntu.com/ubuntu/ trusty main restricted
    deb-src http://us.archive.ubuntu.com/ubuntu/ trusty main restricted
    
    ## Major bug fix updates produced after the final release of the
    ## distribution.
    deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
    deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
    
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team. Also, please note that software in universe WILL NOT receive any
    ## review or updates from the Ubuntu security team.
    deb http://us.archive.ubuntu.com/ubuntu/ trusty universe
    deb-src http://us.archive.ubuntu.com/ubuntu/ trusty universe
    deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe
    deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe
    
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team, and may not be under a free licence. Please satisfy yourself as to
    ## your rights to use the software. Also, please note that software in
    ## multiverse WILL NOT receive any review or updates from the Ubuntu
    ## security team.
    deb http://us.archive.ubuntu.com/ubuntu/ trusty multiverse
    deb-src http://us.archive.ubuntu.com/ubuntu/ trusty multiverse
    deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
    deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
    
    ## N.B. software from this repository may not have been tested as
    ## extensively as that contained in the main release, although it includes
    ## newer versions of some applications which may provide useful features.
    ## Also, please note that software in backports WILL NOT receive any review
    ## or updates from the Ubuntu security team.
    deb http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
    deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
    
    


  • From the error you posted you should be looking for http://security.ubuntu.com trusty-security



  • nvm this... you already tried this...



  • From this post.... a possible cause for this is if you are behind a proxy and to try the update like so...

    http_proxy
    -E
    sudo -E apt-get update
    

    I'm not sure about that though..... maybe just the sudo -E . . . would suffice



  • This is after commenting out

    ## Commednted 2017 Feb 7
    #deb http://security.ubuntu.com/ubuntu trusty-security main restricted
    #deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted
    #deb http://security.ubuntu.com/ubuntu trusty-security universe
    #deb-src http://security.ubuntu.com/ubuntu trusty-security universe
    #deb http://security.ubuntu.com/ubuntu trusty-security multiverse
    #deb-src http://security.ubuntu.com/ubuntu trusty-security multiverse
    
    
    sudo apt-get update
    Get:1 http://us.archive.ubuntu.com trusty InRelease
    100% [1 InRelease gpgv 1,139 B]Splitting up /var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_trusty_InRelease into data and signature faiIgn http://us.archive.ubuntu.com trusty InRelease
    E: GPG error: http://us.archive.ubuntu.com trusty InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)
    
    


  • Anyone have an old Ubuntu box with Trusty on it to look at and get the right entries for that file?



  • @scottalanmiller I don't have a version of this here....



  • @DustinB3403 said in Ubuntu Update error 'nodata':

    @scottalanmiller I don't have a version of this here....

    Nor do I.



  • Those links look wrong, though.



  • Try editing /usr/bin/apt-mirror
    and comment out
    add_url_to_download( $url . "InRelease" );
    to
    #add_url_to_download( $url . "InRelease" );
    whereever you see it, should be onl,y a couple places.



  • Trusty full sources.list only difference is I get the mx repos


    # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
    
    # newer versions of the distribution.
    deb http://mx.archive.ubuntu.com/ubuntu/ trusty main restricted
    deb-src http://mx.archive.ubuntu.com/ubuntu/ trusty main restricted
    
    ## Major bug fix updates produced after the final release of the
    ## distribution.
    deb http://mx.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
    deb-src http://mx.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
    
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team. Also, please note that software in universe WILL NOT receive any
    ## review or updates from the Ubuntu security team.
    deb http://mx.archive.ubuntu.com/ubuntu/ trusty universe
    deb-src http://mx.archive.ubuntu.com/ubuntu/ trusty universe
    deb http://mx.archive.ubuntu.com/ubuntu/ trusty-updates universe
    deb-src http://mx.archive.ubuntu.com/ubuntu/ trusty-updates universe
    
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
    ## team, and may not be under a free licence. Please satisfy yourself as to 
    ## your rights to use the software. Also, please note that software in 
    ## multiverse WILL NOT receive any review or updates from the Ubuntu
    ## security team.
    deb http://mx.archive.ubuntu.com/ubuntu/ trusty multiverse
    deb-src http://mx.archive.ubuntu.com/ubuntu/ trusty multiverse
    deb http://mx.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
    deb-src http://mx.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
    
    ## N.B. software from this repository may not have been tested as
    ## extensively as that contained in the main release, although it includes
    ## newer versions of some applications which may provide useful features.
    ## Also, please note that software in backports WILL NOT receive any review
    ## or updates from the Ubuntu security team.
    deb http://mx.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
    deb-src http://mx.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
    
    deb http://security.ubuntu.com/ubuntu trusty-security main restricted
    deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted
    deb http://security.ubuntu.com/ubuntu trusty-security universe
    deb-src http://security.ubuntu.com/ubuntu trusty-security universe
    deb http://security.ubuntu.com/ubuntu trusty-security multiverse
    deb-src http://security.ubuntu.com/ubuntu trusty-security multiverse
    
    ## Uncomment the following two lines to add software from Canonical's
    ## 'partner' repository.
    ## This software is not part of Ubuntu, but is offered by Canonical and the
    ## respective vendors as a service to Ubuntu users.
    # deb http://archive.canonical.com/ubuntu trusty partner
    # deb-src http://archive.canonical.com/ubuntu trusty partner
    
    ## This software is not part of Ubuntu, but is offered by third-party
    ## developers who want to ship their latest software.
    deb http://extras.ubuntu.com/ubuntu trusty main
    deb-src http://extras.ubuntu.com/ubuntu trusty main