Score:-2

How to Download entire Ubuntu Software Repository in to the cache for easy offline use when no internet connection

jp flag
abc

How to fill apt-cache of all programs.
Download the entire Ubuntu Software center into apt cache for offline use.

sudo apt-get install --download-only *
  • Deb files.
  • Size Don't Matter
  • Binary 64x deb package (amd64), of the programs for LTS release Jammy Jellyfish is enough

How to Download entire Ubuntu Software Repository of programs, in to apt cache, for easy offline use when no internet connection is available ?

cd /var/cache/apt/archives/
ls

this list the packages. I would like to fill this up with every program there is. The entire software archive.

I tried

sudo apt-get install --download-only *

That should of done it.

An example is osdisk.com. It had 10 DVDs with the program deb files on it that gets copied in to the cache from the DVDs, ready for possibly installing one day or not.

Download the entire Ubuntu Software center into apt cache for offline use

Keryx the accepted answer is not the answer am after. Nor is APToncd. How can I install software or packages without Internet (offline)? Keryx

Working, easy and explainable is also part of the answer, Entirely explainable by the answerer and the entire software achieve not a couple of selected programs.

Last time: This would be the function i require

sudo apt-get install --download-only *
guiverc avatar
cn flag
Are you sure you want it all, even for a single architecture & a single release you're looking at >450GB if you include source packages too.. more if you want multiple architectures, multiple releases etc... though less if you limit yourself to binary only. That's a rather large download! Are you sure you want it all
David avatar
cn flag
Also the info may be different tomorrow as updates occur all the time.
guiverc avatar
cn flag
That's >450GB for the whole archive with source *enabled*, my size did not include every package version but only the *latest* version of each package in the archive at a single *moment* in time... (*I did assume the four main repositories as found in https://help.ubuntu.com/community/Repositories/Ubuntu ie. main, universe, restricted, multiverse*) ...
guiverc avatar
cn flag
If NO source is included; you're looking at closer to 70GB (*which still isn't small! and sizes of course will vary on release, architecture etc*)
cn flag
apt-mirror is the tool to use. `sudo apt-get install --download-only *` does -not- download all debs. The `*` is not a wildcard. https://manpages.ubuntu.com/manpages/bionic/man1/apt-mirror.1.html https://computingforgeeks.com/creating-ubuntu-mirrors-using-apt-mirror/
abc avatar
jp flag
abc
Apt-get hash sum mis match https://askubuntu.com/questions/788173/apt-get-hash-sum-mismatch
abc avatar
jp flag
abc
Apt-mirror will not include Dep11 https://askubuntu.com/questions/1252828/apt-mirror-for-amd64-did-not-include-focal-main-dep11-and-focal-main-cnf-command
abc avatar
jp flag
abc
2016, apt-mirror does not reflect dep11/Components-* and dep11/icons-* https://bugs.launchpad.net/ubuntu/+source/apt-mirror/+bug/1550852
Score:4
jp flag
abc

Apt-mirror

sudo apt install apt-mirror

Create a Source list

sudo su

# Remove wrong ones from the configure file
sed -i '17,27d'  /etc/apt/mirror.list

# Insert correct ones
echo "
deb http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ jammy partner
" >> /etc/apt/mirror.list

Start Mirroring

apt-mirror

Apt-mirror has finished downloading the archive. What now! where from here to use for offline installation?

mangohost

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.