How to find out what version of a package is in an apt repository?

pk flag

I'm running a GitHub Action that's not seeing the latest Google Chrome version (96) which was released 1,5 days ago, and instead claims that a version before (95) is the newest version available already.

My question here to you is: how can I check the apt repository (it seems to use it's using to see if the problem is there, to see what version of google-chrome-stable is listed there? That is, I suspect it's there, but don't know how to check. From there on out I should be able to troubleshoot my actual problem (that my end-to-end selenium tests are failing because of an outdated Chrome version).

Some more relevant details:

My most recently failed build shows this Ubuntu version for the action:

Operating System
Virtual Environment
  Environment: ubuntu-20.04
  Version: 20211108.1
  Included Software:
  Image Release:

I try to update Chrome in that container using:

sudo apt-get update
sudo apt-get --only-upgrade install google-chrome-stable
google-chrome --version

Which unfortunately responds with:

Hit:1 focal InRelease
Get:2 focal-updates InRelease [114 kB]
Get:3 focal-backports InRelease [101 kB]
Get:4 focal InRelease [10.5 kB]
Get:5 focal-security InRelease [114 kB]
Hit:6 focal InRelease
Get:7 focal-updates/main amd64 Packages [1344 kB]
Get:8 focal-updates/main Translation-en [276 kB]
Get:9 focal-updates/main amd64 c-n-f Metadata [14.5 kB]
Get:10 focal-updates/restricted amd64 Packages [569 kB]
Get:11 focal-updates/restricted Translation-en [81.6 kB]
Get:12 focal-updates/restricted amd64 c-n-f Metadata [528 B]
Get:13 focal-updates/universe amd64 Packages [876 kB]
Get:14 focal-updates/universe Translation-en [190 kB]
Get:15 focal-updates/universe amd64 c-n-f Metadata [19.5 kB]
Get:16 focal-updates/multiverse amd64 Packages [24.5 kB]
Get:17 focal-updates/multiverse amd64 c-n-f Metadata [616 B]
Get:18 focal-backports/universe amd64 Packages [6588 B]
Get:19 focal/main amd64 Packages [111 kB]
Get:20 focal-backports/universe amd64 c-n-f Metadata [580 B]
Get:21 focal-security/main amd64 Packages [987 kB]
Get:22 focal-security/main Translation-en [183 kB]
Get:23 focal-security/main amd64 c-n-f Metadata [8880 B]
Get:24 focal-security/restricted amd64 Packages [526 kB]
Get:25 focal-security/restricted Translation-en [75.4 kB]
Get:26 focal-security/restricted amd64 c-n-f Metadata [528 B]
Get:27 focal-security/universe amd64 Packages [653 kB]
Get:28 focal-security/universe Translation-en [107 kB]
Get:29 focal-security/universe amd64 c-n-f Metadata [12.9 kB]
Get:30 focal-security/multiverse amd64 Packages [21.9 kB]
Get:31 focal-security/multiverse amd64 c-n-f Metadata [540 B]
Fetched 6430 kB in 2s (2633 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
google-chrome-stable is already the newest version (95.0.4638.69-1).
0 upgraded, 0 newly installed, 0 to remove and 43 not upgraded.
Google Chrome 95.0.4638.69 

How can I find out what version of google-chrome-stable is listed in How do I navigate the structure of those web resources? The browser interface you get when you go there is... not intuitive.

Please "teach me how to fish": what's going on here? Where can I read up on the structure of the online resources that apt-get update uses? (I know there's another question on how to get Google Chrome updated and that should work for me too, but in this question I just want to learn about interpreting the sources.)

Pilot6 avatar
cn flag
You have removed the google repo. Install Chrome from a deb file, it will restore it.
N0rbert avatar
zw flag
In general for official packages and `apt-cache policy google-chrome-stable` for any package.
user535733 avatar
cn flag
Ubuntu does not have permission to distribute Google Chrome (Google's decision, not ours). It is therefore not in the Ubuntu repositories, which is why you are having trouble finding it there.
muru avatar
us flag
Just point a Ubuntu docker image or VM or something to your azure repos and use `apt-cache`. It'll do the parsing for you.

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.