letp.over-blog.com/
21 Février 2021
This article will describe installing deb packages which are in DVD. This will help to recovery when the network packages are removed by mistake.
Download Ubuntu desktop, Ubuntu Server, Ubuntu for Raspberry Pi and IoT devices, Ubuntu Core and all the Ubuntu flavours. Ubuntu is an open-source software platform that runs everywhere from the PC to the server and the cloud.
$ sudo apt install -y apt-rdepends $ mkdir deb $ cd deb $./download-deb-package.sh ubuntu-desktop $ cd. 3.2 Create GPG key When creating GPG key, the following message will be. Download Ubuntu desktop, Ubuntu Server, Ubuntu for Raspberry Pi and IoT devices, Ubuntu Core and all the Ubuntu flavours. Ubuntu is an open-source software platform that runs everywhere from the PC to the server and the cloud.
Mount cdrom to /media/cdrom.
Add cdrom to repository list with apt-cdrom.
The apt-cdrom changes /etc/apt/sources.list. For removing cdrom from repository list, remove 'deb cdrom:' statement in /etc/apt/sources.list.

ubuntu-16.04-desktop-amd64.iso has only 24 packages. ubuntu-16.04-desktop-amd64.iso is LiveDVD. For installing, copy root filesystem of LiveDVD to storage and install 24 packages to storage.
ubuntu-16.04-server-amd64.iso has 1244 packages. But it has no desktop environment packages.
This article will create DVD which has desktop environment packages. And this will add DVD to repository list.
Download deb packages of ubuntu-desktop and dependencies with this script.
When creating GPG key, the following message will be output and console will be hung.
For avoid this hung, update /dev/urandom with rng-tools.
Create gpg config file.
Create GPG key with gpg batch mode, and import GPG key.
Install reprepro which creates repository with apt.
Get subkey value for GPG key of repository.
Create iso directory and store reprepro config file to there.
Create repository with reprepro.

Copy GPG public key to iso directory.
Create iso image with genisoimage. Please burn iso image to DVD media.
Insert DVD media and mount cdrom to /media/cdrom.
Add GPG key with apt-key.
Add cdrom to repository list with apt-cdrom. 2019 home and student. Because the database has no entry of this DVD, input repository name 'Ubuntu 16.04 repo'.
Now you can install deb packages from DVD.
