Failed to fetch http://security.ubuntu.com

Updated 2026-10-02: added the security.ubuntu.com step and the deb822 file that 24.04 and later use.

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/quantal-security/main/binary-amd64/Packages 404 Not Found [IP: 91.189.91.14 80]

This is happening because you’re on an unsupported/old version of Ubuntu.

One way to fix it:

  1. nano /etc/apt/sources.list (/etc/apt/sources.list.d/ubuntu.sources on 24.04 and later)
  2. Change all entries referring to http://archive.ubuntu.com/ubuntu to http://old-releases.ubuntu.com/ubuntu
  3. Change all entries referring to http://security.ubuntu.com/ubuntu to http://old-releases.ubuntu.com/ubuntu