E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

I am testing and working on our app that works nicely on CentOS server. But we need Debian and Ubuntu server test for app too as some customer want that. So I was asked to set up a new test server at Linode.com. It was done 46 days back but didn’t I never get much chance to test it, as other urgent matters comes first daily. Now I try set up required software library and apt-get command running in troubles for me. See what it said:

Err:73 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libx11-doc all 2:1.6.3-1ubuntu2.1
  404  Not Found [IP: 91.189.88.142 80]
Err:73 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libx11-doc all 2:1.6.3-1ubuntu2.1
  404  Not Found [IP: 91.189.88.142 80]
Fetched 12.9 MB in 4s (2682 kB/s)
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/libx/libx11/libx11-dev_1.6.3-1ubuntu2.1_amd64.deb  404  Not Found [IP: 91.189.88.142 80]

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/libx/libx11/libx11-doc_1.6.3-1ubuntu2.1_all.deb  404  Not Found [IP: 91.189.88.142 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Not found errors. Is it Linode problem or Debian problem? I am not sure.

No this is not cloud server or Debian problem. Look at the last line of your outputs. The apt-get/apt command given you the hint. It means your Debian or Ubuntu repository (repo) is out of sync. The sudo apt-get update is used to resynchronize (resnc) the package index files from their sources. The indexes of available packages are fetched from the location(s) specified in /etc/apt/sources.list. For example, when using a Debian archive, this command retrieves and scans the Packages.gz files, so that information about new and updated packages is available. An update should always be performed before an upgrade or dist-upgrade. In short, run:

sudo apt-get update
sudo apt-get upgrade

Now install your libs or pkgs:

sudo apt-get install foo

See


And

Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki