APT Failed Run: 404 Not Found Error

Abstract: Fix APT 404 Not Found errors by correcting misspelled repository components like multiplex to multiverse in sources.list.

Created: 2026-09-24 by

Resolving an APT 404 Not Found error on Ubuntu requires verifying your repository URLs in the /etc/apt/sources.list file or files within /etc/apt/sources.list.d/. This error typically occurs when a package component is misspelled, such as using "multiplex" instead of "multiverse," or when a third-party repository has changed its URL structure. Correcting these syntax errors and running sudo apt update restores access to the required package indexes.

Understanding the 404 Error in APT

When you run sudo apt install or sudo apt update, the Advanced Package Tool (APT) contacts remote servers defined in your configuration files to download package metadata. If a server returns a HTTP 404 status code, it means the specific resource requested does not exist at the provided location. In the context of Ubuntu, this is almost always a configuration issue rather than a network connectivity problem. The most common cause is a typo in the distribution codename or the component name within the source list entries. For example, if you accidentally type multiplex instead of multiverse, APT will request a directory that the Ubuntu archive servers do not host. Since the server cannot find the path /dists/jammy/multiplex/main/binary-amd64/Packages, it returns a 404. Recognizing that this is a local configuration error allows you to fix it without needing to reinstall the operating system or contact server administrators.

Common Causes for Repository Failures

Several specific scenarios trigger this error during package management operations:
  • Misspelled Components: Typing invalid component names like multiplex, contribs (instead of contrib), or incorrect suite names.
  • Deprecated Repositories: Using sources from older Ubuntu versions (e.g., Xenial, Bionic) on a newer release where those archives have been moved to old-releases.ubuntu.com.
  • Third-Party PPAs: Personal Package Archives (PPAs) may become inactive, change their architecture support, or alter their URL structure after maintainer updates.
  • Network Proxies: Corporate firewalls sometimes block specific ports or rewrite URLs, leading to misinterpreted responses.

Step-by-Step Troubleshooting Guide

To resolve the issue, you must identify which line in your configuration is causing the failure and correct it. Follow these steps carefully to restore your package manager functionality.

1. Identify the Failing Source

First, run the update command with verbose output to see exactly which URL is failing. Open your terminal and execute:
sudo apt-get update
Look for lines starting with Err or W that contain "404 Not Found". The output will show the full URL being accessed. For instance:
Err:1 http://archive.ubuntu.com/ubuntu jammy/multiplex InRelease
  404  Not Found [IP: 91.189.91.39 80]
In this example, the component multiplex is clearly invalid. Note the exact URL and component name highlighted in red by your terminal.

2. Edit the Sources List

The main configuration file is located at /etc/apt/sources.list. However, many modern Ubuntu installations use additional files in /etc/apt/sources.list.d/. You should check both locations. Open the main file using a text editor with sudo privileges:
sudo nano /etc/apt/sources.list
Search for the line containing the failed URL. If you see multiplex, change it to multiverse. The standard format for Ubuntu repositories is:
deb http://archive.ubuntu.com/ubuntu    
Ensure that distribution matches your current release codename (e.g., jammy for 22.04, noble for 24.04). Ensure components are valid: main, restricted, universe, and multiverse. If the error originates from a PPA or third-party source, check the files in /etc/apt/sources.list.d/:
ls /etc/apt/sources.list.d/
Open any relevant .list files and verify their URLs. If a PPA is no longer maintained, consider removing the file entirely.

3. Fix Deprecated Repositories

If you are trying to install packages from an older Ubuntu version, the standard archive servers may no longer host them. Ubuntu moves old releases to old-releases.ubuntu.com. If your sources list points to archive.ubuntu.com for an EOL release, you will get 404 errors. Update the hostname in your sources list from archive.ubuntu.com to old-releases.ubuntu.com for any deprecated distributions. Save the file and exit the editor.

4. Clean and Update

After making changes, clear the local cache to ensure APT fetches fresh data:
sudo apt clean
Then, attempt to update again:
sudo apt update
If the configuration is correct, the output should show Hit or Get statuses for all repositories without any Err lines. You can now proceed with installing your PHP packages or other software.

Preventing Future Errors

To avoid recurrence, always verify the compatibility of third-party repositories before adding them. Use official PPAs from trusted developers and check their documentation for the latest Ubuntu version support. When manually editing sources.list, copy existing valid lines as templates rather than typing URLs from memory. This reduces the risk of typos like multiplex versus multiverse. Additionally, keep your system updated regularly so that package managers remain synchronized with current repository structures. If you are experiencing issues with PHP execution after fixing the repository errors, refer to our guide on PHP File Execution Not Working on Freshly Installed Ubuntu Unity (23.10) to ensure your web server configuration aligns with the installed packages.

Frequently Asked Questions

Why does apt update fail with 404 even though my internet works?

Your internet connection is likely functional because you can browse websites normally. The 404 error is specific to the APT tool requesting a non-existent file path on the Ubuntu servers. It indicates a mismatch between the URL configured in your system and the actual location of the package index files.

How do I find out which Ubuntu release codename I am running?

You can determine your current release codename by running the command lsb_release -cs in the terminal. This will output strings like jammy, focal, or noble. Use this output to ensure your sources.list entries match your active system version.

What should I do if a PPA gives me a 404 error?

If a Personal Package Archive returns a 404, it is likely discontinued or has changed its hosting provider. Remove the associated file from /etc/apt/sources.list.d/ using sudo rm /etc/apt/sources.list.d/.list. Then run sudo apt update to clear the error. Look for alternative PPAs or official Ubuntu repositories for similar functionality.

Can I fix the 404 error by changing my DNS settings?

Changing DNS settings rarely fixes a 404 error unless your current DNS is hijacking requests or blocking specific domains. A 404 is a response from the web server itself, meaning the server received the request but could not find the resource. Focus on correcting the URL syntax in your APT configuration first before troubleshooting network layers.

Is it safe to delete the sources.list file?

It is not recommended to delete /etc/apt/sources.list entirely as it contains essential default repositories. Instead, comment out problematic lines by adding a # at the beginning. If the file is corrupted, you can regenerate it by running sudo add-apt-repository universe and other standard commands to rebuild the default configuration safely.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More