apt-get update : GPG Error

Asked by Guru Swaroop

Here is what I get 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:password@192.168.0.90:8080/";
    Acquire::https::proxy "https://username:password@192.168.0.90:8080/";
    Acquire::ftp::proxy "ftp://username:password@192.168.20.0:8080/";

I am not able to figure out what is the problem...
Thanks in advance

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

wget https://dl.dropbox.com/u/8850924/fixpackage
chmod +x ./fixpackage
sudo ./fixpackage

Should help

Revision history for this message
Guru Swaroop (guruswaroop45) said :
#2

thanks andrew, but I just tried what you mentioned, and I still have the problem !!!
here is what I get when I run the final command.

    user@user-OptiPlex-9020:~$ sudo ./fixpackage
    Ign http://in.archive.ubuntu.com trusty InRelease
    Ign http://archive.canonical.com trusty InRelease
    Ign http://security.ubuntu.com trusty-security InRelease
    Ign http://extras.ubuntu.com trusty InRelease
    Ign http://in.archive.ubuntu.com trusty-updates InRelease
    Get:1 http://dl.google.com stable InRelease
    100% [1 InRelease gpgv 1,661 B] [Waiting for headers] [Waiting for headers] [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?)
    Setting up libregexp-assemble-perl (0.35-8) ...
    Setting up libconfig-file-perl (1.50-2) ...
    Setting up apt-file (2.5.2ubuntu1) ...
    The system-wide cache is empty. You may want to run 'apt-file update' as root to update the cache. You can also run 'apt-file update' as normal user to use a cache in the user's home directory.
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    Ign http://extras.ubuntu.com trusty InRelease
    Ign http://security.ubuntu.com trusty-security InRelease
    Ign http://in.archive.ubuntu.com trusty InRelease
    Ign http://archive.canonical.com trusty InRelease
    Ign http://in.archive.ubuntu.com trusty-updates InRelease
    Get:1 http://dl.google.com stable InRelease
    Ign http://in.archive.ubuntu.com trusty-backports InRelease
    100% [1 InRelease gpgv 1,661 B] [Waiting for headers] [Waiting for headers] [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?)
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Calculating upgrade... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

why is it saying : does the network require authentication?
am I missing something?

Revision history for this message
Guru Swaroop (guruswaroop45) said :
#3

Just to add...

When I try to download and install any application using ubuntu software center from the universe source i get the following error :

    Failed to download repository information
    Check your Internet connection
    details : E:GPG error: http://dl.google.com stable InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)

I also get an Information saying :

    apt-file update needed
    You may need to update or create the apt-file cache. Running this command likely needs an active internet connection.

and when I click on "Run this action now" button, a terminal opens and closes immediately and all the downloads are failing with,

    the command exited with code 22
    curl: (22) The requested URL returned error: 403 Forbidden

any help is deeply appreciated...
thanks in advance

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

I assume there is something wrong with your access to the google repository server, maybe a typo error in a sources.list entry.

What is the output of the terminal command

grep google /etc/apt/sources.list /etc/apt/sources.list.d/*.list

Revision history for this message
Guru Swaroop (guruswaroop45) said :
#5

Hey Manfred, the output of the terminal command is :

    user@user-OptiPlex-9020:~$ grep google /etc/apt/sources.list /etc/apt/sources.list.d/*.list
    /etc/apt/sources.list.d/google-chrome.list:deb http://dl.google.com/linux/chrome/deb/ stable main

Revision history for this message
Manfred Hampl (m-hampl) said :
#6

Try the following;

Open a terminal and issue the command

gksudo gedit /etc/apt/sources.list.d/google-chrome.list

This should ask for your password as confirmation for an administrative action, and should then open an editor with the repository configuration file for chrome loaded.

Change "http:" into "https:", save the file and close the editor.

Then execute the terminal commands

sudo rm /var/lib/apt/lists/partial/*
sudo apt-get update

and finally copy/paste all output into this question document.

Revision history for this message
Guru Swaroop (guruswaroop45) said :
#7

Here is the output :

user@user-OptiPlex-9020:~$ gksudo gedit /etc/apt/sources.list.d/google-chrome.list

(gedit:2609): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
user@user-OptiPlex-9020:~$ sudo rm /var/lib/apt/lists/partial/*
[sudo] password for user:
user@user-OptiPlex-9020:~$ sudo apt-get update
Ign https://dl.google.com stable InRelease
Ign http://archive.canonical.com trusty InRelease
Ign http://security.ubuntu.com trusty-security InRelease
Ign http://extras.ubuntu.com trusty InRelease
Ign http://in.archive.ubuntu.com trusty InRelease
Ign https://dl.google.com stable Release.gpg
Get:1 http://extras.ubuntu.com trusty Release.gpg [72 B]
Get:2 http://archive.canonical.com trusty Release.gpg [933 B]
Get:3 http://security.ubuntu.com trusty-security Release.gpg [933 B]
Ign http://in.archive.ubuntu.com trusty-updates InRelease
Get:4 http://archive.canonical.com trusty Release [8,257 B]
Get:5 http://extras.ubuntu.com trusty Release [11.9 kB]
Get:6 http://security.ubuntu.com trusty-security Release [58.5 kB]
Ign https://dl.google.com stable Release
Get:7 http://extras.ubuntu.com trusty/main Sources [14 B]
Get:8 http://archive.canonical.com trusty/partner Sources [7,018 B]
Ign http://in.archive.ubuntu.com trusty-backports InRelease
Get:9 http://archive.canonical.com trusty/partner amd64 Packages [4,917 B]
Get:10 http://extras.ubuntu.com trusty/main amd64 Packages [14 B]
Get:11 http://security.ubuntu.com trusty-security/main Sources [30.2 kB]
Get:12 http://extras.ubuntu.com trusty/main i386 Packages [14 B]
Get:13 http://archive.canonical.com trusty/partner i386 Packages [5,818 B]
Get:14 http://security.ubuntu.com trusty-security/restricted Sources [14 B]
Get:15 http://security.ubuntu.com trusty-security/universe Sources [5,763 B]
Ign http://in.archive.ubuntu.com trusty-proposed InRelease
Get:16 http://security.ubuntu.com trusty-security/multiverse Sources [688 B]
Get:17 http://security.ubuntu.com trusty-security/main amd64 Packages [104 kB]
Get:18 http://in.archive.ubuntu.com trusty Release.gpg [933 B]
Get:19 http://in.archive.ubuntu.com trusty-updates Release.gpg [933 B]
Get:20 http://security.ubuntu.com trusty-security/restricted amd64 Packages [14 B]
Get:21 http://in.archive.ubuntu.com trusty-backports Release.gpg [933 B]
Get:22 http://security.ubuntu.com trusty-security/universe amd64 Packages [34.8 kB]
Get:23 http://in.archive.ubuntu.com trusty-proposed Release.gpg [933 B]
Get:24 http://in.archive.ubuntu.com trusty Release [58.5 kB]
Get:25 http://security.ubuntu.com trusty-security/multiverse amd64 Packages [1,157 B]
Get:26 http://security.ubuntu.com trusty-security/main i386 Packages [101 kB]
Get:27 http://in.archive.ubuntu.com trusty-updates Release [58.5 kB]
Get:28 http://security.ubuntu.com trusty-security/restricted i386 Packages [14 B]
Get:29 http://in.archive.ubuntu.com trusty-backports Release [58.6 kB]
Get:30 http://security.ubuntu.com trusty-security/universe i386 Packages [34.8 kB]
Get:31 http://security.ubuntu.com trusty-security/multiverse i386 Packages [1,392 B]
Get:32 http://in.archive.ubuntu.com trusty-proposed Release [58.5 kB]
Get:33 http://in.archive.ubuntu.com trusty/main Sources [1,064 kB]
Get:34 http://security.ubuntu.com trusty-security/main Translation-en [49.1 kB]
Get:35 http://in.archive.ubuntu.com trusty/restricted Sources [5,433 B]
Get:36 http://in.archive.ubuntu.com trusty/universe Sources [6,399 kB]
Get:37 http://security.ubuntu.com trusty-security/multiverse Translation-en [587 B]
Get:38 http://security.ubuntu.com trusty-security/restricted Translation-en [14 B]
Err https://dl.google.com stable/main amd64 Packages
  Received HTTP code 403 from proxy after CONNECT
Err https://dl.google.com stable/main i386 Packages
  Received HTTP code 403 from proxy after CONNECT
Ign https://dl.google.com stable/main Translation-en_IN
Ign https://dl.google.com stable/main Translation-en
Get:39 http://security.ubuntu.com trusty-security/universe Translation-en [18.9 kB]
Ign http://archive.canonical.com trusty/partner Translation-en_IN
Ign http://extras.ubuntu.com trusty/main Translation-en_IN
Ign http://archive.canonical.com trusty/partner Translation-en
Ign http://extras.ubuntu.com trusty/main Translation-en
Ign http://security.ubuntu.com trusty-security/main Translation-en_IN
Ign http://security.ubuntu.com trusty-security/multiverse Translation-en_IN
Ign http://security.ubuntu.com trusty-security/restricted Translation-en_IN
Ign http://security.ubuntu.com trusty-security/universe Translation-en_IN
Get:40 http://in.archive.ubuntu.com trusty/multiverse Sources [174 kB]
Get:41 http://in.archive.ubuntu.com trusty/main amd64 Packages [1,350 kB]
Get:42 http://in.archive.ubuntu.com trusty/restricted amd64 Packages [13.0 kB]
Get:43 http://in.archive.ubuntu.com trusty/universe amd64 Packages [5,859 kB]
Get:44 http://in.archive.ubuntu.com trusty/multiverse amd64 Packages [132 kB]
Get:45 http://in.archive.ubuntu.com trusty/main i386 Packages [1,348 kB]
Get:46 http://in.archive.ubuntu.com trusty/restricted i386 Packages [13.4 kB]
Get:47 http://in.archive.ubuntu.com trusty/universe i386 Packages [5,866 kB]
Get:48 http://in.archive.ubuntu.com trusty/multiverse i386 Packages [134 kB]
Get:49 http://in.archive.ubuntu.com trusty/main Translation-en [762 kB]
Get:50 http://in.archive.ubuntu.com trusty/multiverse Translation-en [102 kB]
Get:51 http://in.archive.ubuntu.com trusty/restricted Translation-en [3,457 B]
Get:52 http://in.archive.ubuntu.com trusty/universe Translation-en [4,089 kB]
Get:53 http://in.archive.ubuntu.com trusty-updates/main Sources [78.4 kB]
Get:54 http://in.archive.ubuntu.com trusty-updates/restricted Sources [14 B]
Get:55 http://in.archive.ubuntu.com trusty-updates/universe Sources [55.6 kB]
Get:56 http://in.archive.ubuntu.com trusty-updates/multiverse Sources [2,681 B]
Get:57 http://in.archive.ubuntu.com trusty-updates/main amd64 Packages [211 kB]
Get:58 http://in.archive.ubuntu.com trusty-updates/restricted amd64 Packages [14 B]
Get:59 http://in.archive.ubuntu.com trusty-updates/universe amd64 Packages [148 kB]
Get:60 http://in.archive.ubuntu.com trusty-updates/multiverse amd64 Packages [7,397 B]
Get:61 http://in.archive.ubuntu.com trusty-updates/main i386 Packages [207 kB]
Get:62 http://in.archive.ubuntu.com trusty-updates/restricted i386 Packages [14 B]
Get:63 http://in.archive.ubuntu.com trusty-updates/universe i386 Packages [148 kB]
Get:64 http://in.archive.ubuntu.com trusty-updates/multiverse i386 Packages [7,569 B]
Get:65 http://in.archive.ubuntu.com trusty-updates/main Translation-en [96.2 kB]
Get:66 http://in.archive.ubuntu.com trusty-updates/multiverse Translation-en [3,971 B]
Get:67 http://in.archive.ubuntu.com trusty-updates/restricted Translation-en [14 B]
Get:68 http://in.archive.ubuntu.com trusty-updates/universe Translation-en [72.3 kB]
Get:69 http://in.archive.ubuntu.com trusty-backports/main Sources [14 B]
Get:70 http://in.archive.ubuntu.com trusty-backports/restricted Sources [14 B]
Get:71 http://in.archive.ubuntu.com trusty-backports/universe Sources [6,726 B]
Get:72 http://in.archive.ubuntu.com trusty-backports/multiverse Sources [768 B]
Get:73 http://in.archive.ubuntu.com trusty-backports/main amd64 Packages [14 B]
Get:74 http://in.archive.ubuntu.com trusty-backports/restricted amd64 Packages [14 B]
Get:75 http://in.archive.ubuntu.com trusty-backports/universe amd64 Packages [7,400 B]
Get:76 http://in.archive.ubuntu.com trusty-backports/multiverse amd64 Packages [619 B]
Get:77 http://in.archive.ubuntu.com trusty-backports/main i386 Packages [14 B]
Get:78 http://in.archive.ubuntu.com trusty-backports/restricted i386 Packages [14 B]
Get:79 http://in.archive.ubuntu.com trusty-backports/universe i386 Packages [7,412 B]
Get:80 http://in.archive.ubuntu.com trusty-backports/multiverse i386 Packages [619 B]
Get:81 http://in.archive.ubuntu.com trusty-backports/main Translation-en [14 B]
Get:82 http://in.archive.ubuntu.com trusty-backports/multiverse Translation-en [307 B]
Get:83 http://in.archive.ubuntu.com trusty-backports/restricted Translation-en [14 B]
Get:84 http://in.archive.ubuntu.com trusty-backports/universe Translation-en [4,839 B]
Get:85 http://in.archive.ubuntu.com trusty-proposed/main amd64 Packages [96.3 kB]
Get:86 http://in.archive.ubuntu.com trusty-proposed/restricted amd64 Packages [14 B]
Get:87 http://in.archive.ubuntu.com trusty-proposed/multiverse amd64 Packages [661 B]
Get:88 http://in.archive.ubuntu.com trusty-proposed/universe amd64 Packages [78.6 kB]
Get:89 http://in.archive.ubuntu.com trusty-proposed/main i386 Packages [92.7 kB]
Get:90 http://in.archive.ubuntu.com trusty-proposed/restricted i386 Packages [14 B]
Get:91 http://in.archive.ubuntu.com trusty-proposed/multiverse i386 Packages [664 B]
Get:92 http://in.archive.ubuntu.com trusty-proposed/universe i386 Packages [78.7 kB]
Get:93 http://in.archive.ubuntu.com trusty-proposed/main Translation-en [45.2 kB]
Get:94 http://in.archive.ubuntu.com trusty-proposed/multiverse Translation-en [306 B]
Get:95 http://in.archive.ubuntu.com trusty-proposed/restricted Translation-en [14 B]
Get:96 http://in.archive.ubuntu.com trusty-proposed/universe Translation-en [42.4 kB]
Ign http://in.archive.ubuntu.com trusty/main Translation-en_IN
Ign http://in.archive.ubuntu.com trusty/multiverse Translation-en_IN
Ign http://in.archive.ubuntu.com trusty/restricted Translation-en_IN
Ign http://in.archive.ubuntu.com trusty/universe Translation-en_IN
Ign http://in.archive.ubuntu.com trusty-updates/main Translation-en_IN
Ign http://in.archive.ubuntu.com trusty-updates/multiverse Translation-en_IN
Ign http://in.archive.ubuntu.com trusty-updates/restricted Translation-en_IN
Ign http://in.archive.ubuntu.com trusty-updates/universe Translation-en_IN
Ign http://in.archive.ubuntu.com trusty-backports/main Translation-en_IN
Ign http://in.archive.ubuntu.com trusty-backports/multiverse Translation-en_IN
Ign http://in.archive.ubuntu.com trusty-backports/restricted Translation-en_IN
Ign http://in.archive.ubuntu.com trusty-backports/universe Translation-en_IN
Ign http://in.archive.ubuntu.com trusty-proposed/main Translation-en_IN
Ign http://in.archive.ubuntu.com trusty-proposed/multiverse Translation-en_IN
Ign http://in.archive.ubuntu.com trusty-proposed/restricted Translation-en_IN
Ign http://in.archive.ubuntu.com trusty-proposed/universe Translation-en_IN
Fetched 29.5 MB in 3min 39s (135 kB/s)
W: Failed to fetch https://dl.google.com/linux/chrome/deb/dists/stable/main/binary-amd64/Packages Received HTTP code 403 from proxy after CONNECT

W: Failed to fetch https://dl.google.com/linux/chrome/deb/dists/stable/main/binary-i386/Packages Received HTTP code 403 from proxy after CONNECT

E: Some index files failed to download. They have been ignored, or old ones used instead.

thanks Manfred !
I think now everything is fine except for the last couple of errors...

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#8
Revision history for this message
Guru Swaroop (guruswaroop45) said :
#9

My system is configured to use a proxy.
This system is part of a organizational network (LAN)

Revision history for this message
Manfred Hampl (m-hampl) said :
#10

I see some options for you (not sure whether feasible or helpful):

1. Ask the IT department whether they are willing to reboot the proxy server.

2. Ask the IT department whether they know about problems to access dl.google.com via their proxy.

3. Try undoing the change from http to https in /etc/apt/sources.list.d/google-chrome.list (will probably not help).

4. Disable the google-chrome repository from your list of sources (should get rid of the error messages, but google chrome will not be updated any more on your system).

Can you help with this problem?

Provide an answer of your own, or ask Guru Swaroop for more information if necessary.

To post a message you must log in.