0

Apt-mirror has finished downloading the archive.

Where do I go from here for an offline installation?

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
Nmath
  • 12,664
abc
  • 116

1 Answers1

-1

Location of packages:

/var/spool/apt-mirror/mirror/archive.ubuntu.com/ubuntu

Add to apt sources list:

sudo su
echo "deb file:/var/spool/apt-mirror/mirror/archive.ubuntu.com/ubuntu jammy main restricted universe multiverse" >> /etc/apt/sources.list

sudo apt-get update

abc
  • 116