You mentioned a release (24.04) but didn’t give product details (ie. Server, Desktop etc)
If a desktop system, opening Software Sources and simply selecting the Ubuntu Software tab should let you see the various components; ie. main, universe, restricted, etc. I always check that first. However if you click the Updates tab you’ll have various options there which can be enabled or disabled by click. On my system I have security updates, recommended updates, and even unsupported updates all enabled… You’ll likely find you have only the Security updates having a tick there; thus click to enable what you want.
If you’re using a Server system (you did mention VM command line so it maybe you’re using a Server install), I’ll provide my own file as an example… I’d actually vim /etc/apt/sources.list.d/ubuntu.sources but use whatever text editor you have installed (vi maybe isn’t the easiest for younger users)
# Automatically generated by Calamares on 2025-06-04.
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of Lubuntu.
## Ubuntu distribution repository
##
## The following settings can be adjusted to configure which packages to use from Ubuntu.
## Mirror your choices (except for URIs and Suites) in the security section below to
## ensure timely security updates.
##
## Types: Append deb-src to enable the fetching of source package.
## URIs: A URL to the repository (you may add multiple URLs)
## Suites: The following additional suites can be configured
## <name>-updates - Major bug fix updates produced after the final release of the
## distribution.
## <name>-backports - software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
## Components: Aside from main, the following components can be added to the list
## restricted - Software that may not be under a free license, or protected by patents.
## universe - Community maintained packages.
## Software from this repository is only maintained and supported by Canonical
## for machines with Ubuntu Pro subscriptions. Without Ubuntu Pro, the Ubuntu
## community provides best-effort security maintenance.
## multiverse - Community maintained of restricted. Software from this repository is
## ENTIRELY UNSUPPORTED by the Ubuntu team, and may not be under a free
## licence. Please satisfy yourself as to your rights to use the software.
## Also, please note that software in multiverse WILL NOT receive any
## review or updates from the Ubuntu security team.
##
## See the sources.list(5) manual page for further settings.
Types: deb deb-src
URIs: http://archive.ubuntu.com/ubuntu
Suites: questing questing-updates questing-backports
Components: main universe restricted multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
## Ubuntu security updates. Aside from URIs and Suites,
## this should mirror your choices in the previous section.
Types: deb deb-src
URIs: http://security.ubuntu.com/ubuntu/
Suites: questing-security
Components: main universe restricted multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
Please NOTE I’ve provided my file ONLY AS EXAMPLE, as I’m using questing or 25.10, but I’m hoping you can use it to help you see what you need to change…
Key is the UPDATES bit of the file
Types: deb deb-src
URIs: http://archive.ubuntu.com/ubuntu
Suites: questing questing-updates questing-backports
Components: main universe restricted multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
Do you have noble-updates listed on yours?? Whilst you may NOT want backports and most probably also not deb-src too, and other stuff I have (my box isn’t a server!) but I’ve used my current desktop file here as example only.
Add whatever your system needs; be it a home machine, enterprise/production server etc… ie. adjust yours to get what you need only.