bogus network proxies might cause: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
On a hotel network I get:
sudo apt-get update
0% [Connecting to archive.ubuntu.com] [Connecting to ports.ubuntu.com] [Connecting to ppa.launchpad.net] [Connecting to archive.
0% [Connecting to archive.ubuntu.com] [Connecting to ports.ubuntu.com] [Connecting to ppa.launchpad.net] [Connecting to archive.
Get:1 http://
89% [1 InRelease gpgv 75 B] [Connecting to archive.ubuntu.com (91.189.91.14)] [Waiting for headers] [Waiting for headers]Splitting up /var/lib/
E: GPG error: http://
and after removing all /var/lib/apt/lists forcefully, I get this variant:
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Ign http://
Ign http://
Ign http://
Ign http://
Get:23 http://
66% [23 InRelease gpgv 75 B] [22 Sources 646 kB/1,004 kB 64%] [19 Packages 710 kB/1,215 kB 58%]Splitting up /var/lib/
E: GPG error: http://
Would be good to give better error messages that explain to folks that its likely that your network serves corrupted files (rather than ubuntu being broken). Might want to give folks hints that they could try to connect to a different wifi network etc.
Changed in apt (Ubuntu): | |
importance: | Undecided → Low |
This hotel network is particularly special; even after you authenticate to the web portal, it's blocking archive. canonical. com as "restricted" content. This contributes to the confusion, because most of the lists get downloaded without fine, then there's this cryptic message.
FWIW the actual contents of the partial InRelease file in this case are a one-line, malformed HTML file that does a meta refresh.