Делаю по инструкции Чем сейчас можно сделать свою сборку убунты? (комментарий) от ValdikSS
mount -o loop ubuntu-22.04-desktop-amd64.iso mnt/
rsync --exclude=/casper/filesystem.squashfs -a mnt/ extract-cd
unsquashfs mnt/casper/filesystem.squashfs
systemd-nspawn -D squashfs-root
получаю
root@squashfs-root:~# apt install leafpad
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package leafpad
root@squashfs-root:~# mv /etc/resolv.conf /etc/resolv.conf.bak
root@squashfs-root:~# nano /etc/resolv.conf
root@squashfs-root:~#
root@squashfs-root:~# cat /etc/resolv.conf
nameserver 8.8.8.8
root@squashfs-root:~# apt install leafpad
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package leafpad
root@squashfs-root:~# apt update
Get:1 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:3 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [223 kB]
Get:4 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]
Get:5 http://archive.ubuntu.com/ubuntu jammy/main amd64 DEP-11 Metadata [423 kB]
Get:6 http://security.ubuntu.com/ubuntu jammy-security/main Translation-en [54.3 kB]
Get:7 http://security.ubuntu.com/ubuntu jammy-security/main amd64 DEP-11 Metadata [11.4 kB]
Get:8 http://security.ubuntu.com/ubuntu jammy-security/main DEP-11 48x48 Icons [5952 B]
Get:9 http://security.ubuntu.com/ubuntu jammy-security/main DEP-11 64x64 Icons [8219 B]
Get:10 http://security.ubuntu.com/ubuntu jammy-security/main DEP-11 64x64@2 Icons [29 B]
Get:11 http://security.ubuntu.com/ubuntu jammy-security/main amd64 c-n-f Metadata [3564 B]
Get:12 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [200 kB]
Get:13 http://security.ubuntu.com/ubuntu jammy-security/restricted Translation-en [30.0 kB]
Get:14 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [375 kB]
Get:15 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 c-n-f Metadata [512 B]
Get:16 http://archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [93.9 kB]
Get:17 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 DEP-11 Metadata [90.7 kB]
Get:18 http://archive.ubuntu.com/ubuntu jammy-updates/main DEP-11 48x48 Icons [26.2 kB]
Get:19 http://archive.ubuntu.com/ubuntu jammy-updates/main DEP-11 64x64 Icons [38.2 kB]
Get:20 http://archive.ubuntu.com/ubuntu jammy-updates/main DEP-11 64x64@2 Icons [29 B]
Get:21 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [6688 B]
Get:22 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [235 kB]
Get:23 http://archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [35.9 kB]
Get:24 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 c-n-f Metadata [536 B]
Fetched 2356 kB in 5s (464 kB/s)
Reading package lists... Done
E: Problem executing scripts APT::Update::Post-Invoke-Success 'touch /var/lib/apt/periodic/update-success-stamp 2>/dev/null || true'
E: Sub-process returned an error code