Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omego/fdc780c486c137514685be38a74afe1e to your computer and use it in GitHub Desktop.
Save omego/fdc780c486c137514685be38a74afe1e to your computer and use it in GitHub Desktop.

The error that this solution fix:

Get:4 http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease             
Err:4 http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease
  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)

Go the to the source list folder:

cd /etc/apt/sources.list.d

Edit the file:

nano ondrej-ubuntu-php-focal.list

The file content should look like this:

deb http://ppa.launchpadcontent.net/ondrej/php/ubuntu focal main
# deb http://ppa.launchpad.net/ondrej/php/ubuntu focal main
# deb-src http://ppa.launchpad.net/ondrej/php/ubuntu focal main

Now you should be able to update as usual:

sudo apt update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment