Home > Back-end >  I have encounter an error "Clearsigned file isn't valid, got 'NOSPLIT' (does the
I have encounter an error "Clearsigned file isn't valid, got 'NOSPLIT' (does the

Time:09-30

enter image description here

when i run sudo apt update

It shows :- E: Failed to fetch http://packages.microsoft.com/repos/code/dists/stable/InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?) E: The repository 'http://packages.microsoft.com/repos/code stable InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.

CodePudding user response:

A workaround, use vim/nano to edit the source.list file.

sudo vim /etc/apt/sources.list.d/vscode.list

Comment the line with #

# deb [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code stable main

save it :wq and re-run the update.

This solution is discussed in reddit

⚠️ By running the chattr i cmd found in Reddit you will restrict the future edit for the file, use chattr -i to make it editable.

CodePudding user response:

I ran into this issue too today. After reading a bunch of other threads on it. It is in most cases have to do with network connectivity and in my case an issue on Microsoft's end. After half an hour or so it resolved by itself.

  • Related