Ubuntu 22.04.5 LTS Source Code and other updates

Hey Folks,

I am on Ubuntu 22.04.5 LTS and wanted to access the source-code via Software & Updates which I have checked as you can see from the screenshot below. I tried changing the mirror from “Main Server” to my country, but that doesn’t help either.

Here is my /etc/apt/sources.list

# deb cdrom:[Ubuntu 22.04.1 LTS _Jammy Jellyfish_ - Release amd64 (20220809.1)]/ jammy main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu jammy main restricted
deb-src http://archive.ubuntu.com/ubuntu jammy restricted main universe multiverse #Added by software-properties
# deb-src http://in.archive.ubuntu.com/ubuntu/ jammy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu jammy-updates restricted main
deb-src http://archive.ubuntu.com/ubuntu jammy-updates restricted main universe multiverse #Added by software-properties
# deb-src http://in.archive.ubuntu.com/ubuntu/ jammy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WtheILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu jammy universe
# deb-src http://in.archive.ubuntu.com/ubuntu/ jammy universe
deb http://archive.ubuntu.com/ubuntu jammy-updates universe
# deb-src http://in.archive.ubuntu.com/ubuntu/ jammy-updates universe

## N.B. 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.
deb http://archive.ubuntu.com/ubuntu jammy multiverse
# deb-src http://in.archive.ubuntu.com/ubuntu/ jammy multiverse
deb http://archive.ubuntu.com/ubuntu jammy-updates multiverse
# deb-src http://in.archive.ubuntu.com/ubuntu/ jammy-updates multiverse

## N.B. 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.
deb http://archive.ubuntu.com/ubuntu jammy-backports multiverse main restricted universe
deb-src http://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse #Added by software-properties
# deb-src http://in.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu jammy-security main restricted
deb-src http://archive.ubuntu.com/ubuntu jammy-security restricted main universe multiverse #Added by software-properties
# deb-src http://security.ubuntu.com/ubuntu jammy-security main restricted
deb http://archive.ubuntu.com/ubuntu jammy-security universe
# deb-src http://security.ubuntu.com/ubuntu jammy-security universe
deb http://archive.ubuntu.com/ubuntu jammy-security multiverse
# deb-src http://security.ubuntu.com/ubuntu jammy-security multiverse

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
deb http://security.ubuntu.com/ubuntu/ jammy-security multiverse main restricted universe

Despite doing apt-get update, and using the Software Updater, I cannot download the source code which you can reference from the screenshot below
image

I maybe wrong, but I suspect there might be some issue with the keys from which Ubuntu is trying to download the updates. Should I try a new keyserver instead like this -

gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 871920D1991BC93C
gpg --export 871920D1991BC93C | sudo tee /etc/apt/trusted.gpg.d/jammy.ubuntu.gpg

Some help will be appreciated!

Why would the tool that does binary updates have to do anything with the source code ?

What exactly is the command you use to try to obtain the source and what was the exact error you got when running said command ?

What exactly makes you think this, was there an error message that told you the keys are wrong ?

1 Like

The updater only updates installed packages. You don’t have any source packages installed yet, so why would it update any sources ? By setting the check mark in front of sources, you only set an additional part of the repositories active, you don’t automatically set it to download any source code. I honestly don’t know whether there’s an option in any of the graphical package installers to download source, but there is a separate sub-command ‘source’ to apt-get on the command line. So try ‘apt-get source’ with a package name, e.g. ‘apt-get source tar’. This would download the source for the given package and unpack it into a subdirectory of the current working directory named for the package.

2 Likes

I was wondering whether I could get the complete source ISO images of Ubuntu 22.04.5 LTS as in the link’s webpage listed below. If you go to the source folder you will find the iso there
https://cdimage.ubuntu.com/releases/22.04.5/release/

I used to download whole ISOs of the source code from the graphical installers before Ubuntu 22.04.x LTS going back to Ubuntu 16.04.x LTS to make changes, build, and deploy those changes locally.

Here’s the list of Ubuntu 22.04 LTS source images from above

  1. ubuntu-22.04-src-1.iso
  2. ubuntu-22.04-src-2.iso
  3. ubuntu-22.04-src-3.iso
  4. ubuntu-22.04-src-4.iso
  5. ubuntu-22.04-src-5.iso

But, I think the process of generating a source ISO with every new release has vanished and has maybe morphed into downloading sources of every version of Ubuntu source packages on Launchpad

  • https://launchpad.net/ubuntu/+source/SOURCE-PACKAGE-NAME/+publishinghistory (index)
  • https://launchpad.net/ubuntu/+source/SOURCE-PACKAGE-NAME/VERSION (specific version)

Any chances of downloading the whole source ISO images with Ubuntu 22.04.5 LTS or 24.04.1 LTS to build and experiment from scratch?

Since, I haven’t been keeping up with the recent times of build processes of recent Ubuntu versions, are there any coding guidelines that I need to be aware of or repositories I need to follow to dive into the development of Ubuntu?

Yup, they are gone, you would need to mirror the archive:
https://lists.ubuntu.com/archives/ubuntu-release/2024-January/005863.html

1 Like