Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?) #135797

Closed
acidprime opened this issue Oct 25, 2021 · 2 comments

Comments

@acidprime
Copy link

acidprime commented Oct 25, 2021

Unable to install vscode in Ubuntu 18.04 , trying locally in vagrant and on a remote GCP node. Same error which makes me think something is wrong with the remote repo configuration. Two different internet connections and DNS servers in other words.

Notice: /Stage[main]/Apt::Update/Exec[apt_update]/returns: E: Failed to fetch https://packages.microsoft.com/repos/vscode/dists/stable/InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)

apt source

deb https://packages.microsoft.com/repos/vscode stable main

Ubuntu 18.04

This has worked hundreds of times in the last 6 months and just started failing today.

apt-get update
Hit:1 https://apt.releases.hashicorp.com bionic InRelease
Hit:2 https://download.docker.com/linux/ubuntu bionic InRelease                                                                            
Hit:3 http://apt.puppetlabs.com bionic InRelease                                                                                           
Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]                                                                
Get:5 https://packages.microsoft.com/repos/vscode stable InRelease [3,434 B]                                                 
Err:5 https://packages.microsoft.com/repos/vscode stable InRelease                                         
  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Hit:6 http://ppa.launchpad.net/ansible/ansible/ubuntu bionic InRelease                                                                     
Hit:7 http://ppa.launchpad.net/zanchey/asciinema/ubuntu bionic InRelease                                                                   
Hit:8 http://us-east4-a.gce.clouds.archive.ubuntu.com/ubuntu bionic InRelease                               
Get:9 http://us-east4-a.gce.clouds.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]       
Get:10 http://us-east4-a.gce.clouds.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]

I'm using key BC528686B50D79E339D3721CEB3E94ADBE1229CF which seems to the correct one as of today

wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --show-keys
pub   rsa2048 2015-10-28 [SC]
      BC528686B50D79E339D3721CEB3E94ADBE1229CF
uid                      Microsoft (Release signing) <gpgsecurity@microsoft.com>

Managing this puppet as so

  apt::source { 'vscode':
    comment  => 'This is the official VSCode repository',
    location => 'https://packages.microsoft.com/repos/vscode',
    release  => 'stable',
    repos    => 'main',
    key      => {
        'id'     => 'BC528686B50D79E339D3721CEB3E94ADBE1229CF',
        'server' => 'keyserver.ubuntu.com',
    },
    include  => {
      'deb' => true,
    },
  }

Found similiar issue , so this has happened in the past I believe

https://stackoverflow.com/questions/69375192/i-have-encounter-an-error-clearsigned-file-isnt-valid-got-nosplit-does-the

@cbeeler
Copy link

cbeeler commented Oct 25, 2021

I'm having the same issue, Ubuntu 20.04:

$ sudo apt update
...
E: Failed to fetch https://packages.microsoft.com/repos/vscode/dists/stable/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: The repository 'https://packages.microsoft.com/repos/vscode stable InRelease' is no longer signed.

@cbeeler
Copy link

cbeeler commented Oct 25, 2021

This is probably a duplicate of: #135766

@github-actions github-actions bot locked and limited conversation to collaborators Dec 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants