Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
$ sudo apt-get update
Err:13 xenial/main Sources
404 Not Found [IP: 80]
Ign:17 xenial/main amd64 Packages
Ign:20 xenial/main i386 Packages
Ign:22 xenial/main all Packages
Ign:23 xenial/main Translation-en_US
Ign:24 xenial/main Translation-en
Ign:25 xenial/main amd64 DEP-11 Metadata
Ign:26 xenial/main DEP-11 64x64 Icons
Fetched 204 kB in 12s (16.5 kB/s)
Reading package lists... Done
W: The repository ' 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 404 Not Found [IP: 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
1) Comment line inside /etc/apt/sources.list where
These packages are not actual ubuntu source so we can comment it out.
2) replace
deb xenial main
deb-src xenial main
deb trusty main
deb-src trusty main
Since xenial package does not exist check here:
Copy link

zaz19 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 ??

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