HOW-TO: Re-Download Ubuntu .deb package for software installed when the package file has been deleted already

I ended up in a situation where Google Earth updated, and the new version does not work. I wanted to revert back to the just prior version, and I discovered I had not made a copy of the prior version's package file. Browsing Google's APT server greeted me with many unhelpful 404 pages... browsing the APT server discouraged!

So there is a standard to how the repositories are laid out. Knowing certain things allows by substitution to correctly arrive at, in this case, other versions of packages that should be also on the APT server.

I began by examining the sources.list file for Google Earth, and comparing it to another repository I also have added. The one for Google Earth is as follows:

### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] http://dl.google.com/linux/earth/deb/ stable main

So from that, and comparing to another, I now know that I should be able to traverse:

to obtain the list of packages in the repository. File download instead of a 404 page. The /dists/ directory is injected statically to what is listed in the APT sources file, and then the APT compatible tools tack on a static /binary-amd64/Packages to obtain the list of packages on the APT server.

I will only paste in the one entry of interest to me in that file.

Package: google-earth-pro-stable
Version: 7.3.6.9264-r0
Architecture: amd64
Maintainer: Google Earth Team
Installed-Size: 250100
Pre-Depends: dpkg (>= 1.14.0)
Depends: libasound2, libc6, libcups2, libdbus-1-3, libfontconfig1, libfreetype6, libgcc1, libglib2.0-0, libglu1-mesa, libgstreamer1.0-0, libgstreamer-plugins-base1.0-0, libproxy1 | libproxy1v5, libsm6, libstdc++6, libx11-6, libx11-xcb1, libxcb1, libxext6, libxml2, libxrender1, libxtst6
Priority: optional
Section: net
Filename: pool/main/g/google-earth-pro-stable/google-earth-pro-stable_7.3.6.9264-r0_amd64.deb
Size: 57744380
SHA256: 430b67f671aecebe6b90cc60aa9063459709cb2650e40b164ba8796607c59f0b
SHA1: c48ae1a3ff0885b8fd329df4fcbf8661c4e73853
MD5sum: 763743dbb0e325eaa332b77fc3df8417
Description: Explore, search and discover the planet
Google Earth lets you fly anywhere to see satellite imagery, 3D buildings, 3D trees, terrain, Street View, planets and much more.

That "Filename:" keyword... that is the one! So also on APT repository servers is the pool directory where the packages are stored.

pool/main/g/google-earth-pro-stable/google-earth-pro-stable_7.3.6.9264-r0_amd64.deb

The pool directory location is also based on the entry in the APT sources file.

So combining details leanred from the APT sources file / the list of software currently listed as in the APT catalog / combined with the version of the sought after just prior version, I arrived at the following working URL:

Bingo!!! That downloads the sought after version of the package to successfully roll back my system.

Google already resolves the root issue

An update on this topic.... Google has already resolved the issue with the Google Earth package. It is safe to again apply the latest update.