apt-get works on a database of available packages.
sudo apt-get update
returns:
Hit:1 http://je.archive.ubuntu.com/ubuntu jammy InRelease Get:2 http://je.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB] Get:3 http://je.archive.ubuntu.com/ubuntu jammy-backports InRelease [108 kB] Get:4 http://je.archive.ubuntu.com/ubuntu jammy-updates/main amd64 DEP-11 Metadata [99.9 kB] Get:5 http://je.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 DEP-11 Metadata [274 kB] Get:6 http://je.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 DEP-11 Metadata [940 B] Get:7 http://je.archive.ubuntu.com/ubuntu jammy-backports/main amd64 DEP-11 Metadata [8,000 B] Get:8 http://je.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 DEP-11 Metadata [16.8 kB] Get:9 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB] Hit:10 https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu jammy InRelease Get:11 http://security.ubuntu.com/ubuntu jammy-security/main amd64 DEP-11 Metadata [41.5 kB] Get:12 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 DEP-11 Metadata [21.9 kB] Hit:13 https://repo.radeon.com/amdgpu/5.4.6/ubuntu jammy InRelease Hit:14 https://repo.radeon.com/rocm/apt/5.4.6 jammy InRelease Fetched 800 kB in 11s (75.7 kB/s) Reading package lists... Done
NOTE: Three types of lines are shown: Hit, Get, and Ign.