I was just curious if this is just me or what but it's extremely annoying. I have installed Apache2 and PHP on my Linux Mint 14.1 Cinnamon machine fine, but when I use apt-get install mysql-server (as super user), this happens.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libdbd-mysql-perl libmysqlclient18 mysql-client-5.5 mysql-client-core-5.5
  mysql-common mysql-server-5.5 mysql-server-core-5.5
Suggested packages:
  tinyca mailx
The following NEW packages will be installed:
  libdbd-mysql-perl libmysqlclient18 mysql-client-5.5 mysql-client-core-5.5
  mysql-common mysql-server mysql-server-5.5 mysql-server-core-5.5
0 upgraded, 8 newly installed, 0 to remove and 123 not upgraded.
Need to get 25.5 MB/25.6 MB of archives.
After this operation, 89.8 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Err http://archive.ubuntu.com/ubuntu/ quantal-updates/main mysql-common all 5.5.28-0ubuntu0.12.10.1
  404  Not Found [IP: 91.189.92.202 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/main mysql-common all 5.5.28-0ubuntu0.12.10.1
  404  Not Found [IP: 91.189.92.200 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/main libmysqlclient18 i386 5.5.28-0ubuntu0.12.10.1
  404  Not Found [IP: 91.189.92.200 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/main mysql-client-core-5.5 i386 5.5.28-0ubuntu0.12.10.1
  404  Not Found [IP: 91.189.92.200 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/main mysql-client-5.5 i386 5.5.28-0ubuntu0.12.10.1
  404  Not Found [IP: 91.189.92.200 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/main mysql-server-core-5.5 i386 5.5.28-0ubuntu0.12.10.1
  404  Not Found [IP: 91.189.92.200 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/main mysql-server-5.5 i386 5.5.28-0ubuntu0.12.10.1
  404  Not Found [IP: 91.189.92.200 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/main mysql-server all 5.5.28-0ubuntu0.12.10.1
  404  Not Found [IP: 91.189.92.200 80]
Failed to fetch   404  Not Found [IP: 91.189.92.200 80]
Failed to fetch   404  Not Found [IP: 91.189.92.200 80]
Failed to fetch   404  Not Found [IP: 91.189.92.200 80]
Failed to fetch   404  Not Found [IP: 91.189.92.200 80]
Failed to fetch   404  Not Found [IP: 91.189.92.200 80]
Failed to fetch   404  Not Found [IP: 91.189.92.200 80]
Failed to fetch   404  Not Found [IP: 91.189.92.200 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

It's quite annoying, is there a different source I could get it from somehow? Is it just me or is everyone experiencing this issue?

Dani AI

Generated

The 404s in ’s apt output mean the package files referenced by the local package index weren’t found on the remote host. As observed, the repository URLs actually returned 404s when opened, which narrows the cause to (a) stale local package lists, (b) a temporary mirror outage or sync problem, or (c) the release’s packages having been moved because the distribution release is no longer served from the normal mirrors. ’s suggestion that it can be transient is correct; mirror syncs and CDN issues do happen.

Quick triage (non-exhaustive):

  • Confirm the release codename to know which archive is required:

    lsb_release -sc
  • Show the active APT source lines (non-commented) to see which hosts and release names are in use:

    grep -h '^[^#]' /etc/apt/sources.list /etc/apt/sources.list.d/* || true
  • Test basic reachability of the mirror hosts (replace <mirror-host> with the hostname found above):

    ping -c 3 <mirror-host>

Common fixes and cautions:

  • If local package indexes are stale or partial, refreshing the package index usually resolves 404s from changed package names or moved files; if the problem persists after refreshing, the cause is likely on the server/mirror side or with the listed release name.

  • If the release is end-of-life (packages moved off the main mirrors), the usual options are to point APT at the archived/old-releases server or upgrade the OS to a supported release. Before editing sources, make a backup:

    sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
    # then edit /etc/apt/sources.list and replace current mirror hostnames with the archived-host

Alternatives: fetch the required .deb files from the distribution’s packages site (as suggested), use a maintained drop-in like MariaDB, or add the vendor’s official repository. For long-term safety and receiving security fixes, upgrading to a supported Ubuntu release is the recommended solution.

Recommended Answers

All 5 Replies

I think it is just you and probably temporary. That IP resolves correctly to canonical (the company producing ubuntu).

It's been doing it to me since last night, I can't install MySQL really annoying me.

Can that host trace to any of the canonical? You might have a bad gateway on this server. YOu read the package info from cache but can't hit the repos when you really want to install.

If you click on the links you will get error 404, I've seen this error when trying to download from a local mirror but in your case the fetch is done from the main server... so try to download directly from the repositories:

http://packages.ubuntu.com/quantal/mysql-server-5.5
http://packages.ubuntu.com/quantal/mysql-client-5.5

...and so on for the other dependencies. By the way, have you tried to run apt-get update ?

Ok thanks guys that helps.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.