Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save avinash-mishra/a4e8225213c85c158689b6729972be4c to your computer and use it in GitHub Desktop.
Save avinash-mishra/a4e8225213c85c158689b6729972be4c to your computer and use it in GitHub Desktop.
Problem:
$ sudo apt-get update
..........
..........
Err:13 http://extras.ubuntu.com/ubuntu xenial/main Sources
404 Not Found [IP: 91.189.92.152 80]
Ign:17 http://extras.ubuntu.com/ubuntu xenial/main amd64 Packages
Ign:20 http://extras.ubuntu.com/ubuntu xenial/main i386 Packages
Ign:22 http://extras.ubuntu.com/ubuntu xenial/main all Packages
Ign:23 http://extras.ubuntu.com/ubuntu xenial/main Translation-en_US
Ign:24 http://extras.ubuntu.com/ubuntu xenial/main Translation-en
Ign:25 http://extras.ubuntu.com/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:26 http://extras.ubuntu.com/ubuntu xenial/main DEP-11 64x64 Icons
Fetched 204 kB in 12s (16.5 kB/s)
Reading package lists... Done
W: The repository 'http://extras.ubuntu.com/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/xenial/main/source/Sources 404 Not Found [IP: 91.189.92.152 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
Solutions
1) Comment line inside /etc/apt/sources.list where http://extras.ubuntu.com/ubuntu
These packages are not actual ubuntu source so we can comment it out.
2) replace
deb http://extras.ubuntu.com/ubuntu xenial main
deb-src http://extras.ubuntu.com/ubuntu xenial main
With
deb http://extras.ubuntu.com/ubuntu trusty main
deb-src http://extras.ubuntu.com/ubuntu trusty main
Since xenial package does not exist check here: http://extras.ubuntu.com/ubuntu/dists/
http://extras.ubuntu.com/ubuntu/dists/xenial/main/source/Sources
@werewolf1011
Copy link

werewolf1011 commented Jan 7, 2023

E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi'
E: Sub-process returned an error code
how can i fix it ??
Screenshot_2023-01-07_04_06_38

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