apt works on a database of available packages.
sudo apt update
returns:
[sudo] password for peter: 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 Packages [721 kB] Get:5 http://je.archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages [430 kB] Get:6 http://je.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [927 kB] Get:7 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB] Hit:8 https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu jammy InRelease Hit:9 https://repo.radeon.com/amdgpu/5.4.6/ubuntu jammy InRelease Hit:10 https://repo.radeon.com/rocm/apt/5.4.6 jammy InRelease Fetched 2,415 kB in 11s (228 kB/s) Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date.
NOTE: Three types of lines are shown: Hit, Get, and Ign.