20.04.5 LTS autoinstall failing
Jerry Geis
jerry.geis at gmail.com
Fri Sep 23 18:27:45 UTC 2022
On Fri, Sep 23, 2022 at 8:19 AM Jerry Geis <jerry.geis at gmail.com> wrote:
> I am using 20.04.5 LTS and autoinstall....
>
> I have this in my autoinstall file for storage:
> # Storage section here for UEFI
> storage:
> version: 1
> layout:
> name: direct
>
> This the log:
Reading package lists...
Running command ['udevadm', 'settle'] with allowed return codes [0]
(capture=False)
TIMED subp(['udevadm', 'settle']): 0.024
Running command ['mount', '--make-private',
'/target/sys/firmware/efi/efivars'] with allowed return codes [0]
(capture=False)
Running command ['umount', '/target/sys/firmware/efi/efivars'] with allowed
return codes [0] (capture=False)
Running command ['mount', '--make-private', '/target/sys'] with allowed
return codes [0] (capture=False)
Running command ['umount', '/target/sys'] with allowed return codes [0]
(capture=False)
Running command ['mount', '--make-private', '/target/run'] with allowed
return codes [0] (capture=False)
Running command ['umount', '/target/run'] with allowed return codes [0]
(capture=False)
Running command ['mount', '--make-private', '/target/proc'] with allowed
return codes [0] (capture=False)
Running command ['umount', '/target/proc'] with allowed return codes [0]
(capture=False)
Running command ['mount', '--make-private', '/target/dev'] with allowed
return codes [0] (capture=False)
Running command ['umount', '/target/dev'] with allowed return codes [0]
(capture=False)
Running command ['mount', '--bind', '/dev', '/target/dev'] with allowed
return codes [0] (capture=False)
Running command ['mount', '--bind', '/proc', '/target/proc'] with allowed
return codes [0] (capture=False)
Running command ['mount', '--bind', '/run', '/target/run'] with allowed
return codes [0] (capture=False)
Running command ['mount', '--bind', '/sys', '/target/sys'] with allowed
return codes [0] (capture=False)
Running command ['mount', '--bind', '/sys/firmware/efi/efivars',
'/target/sys/firmware/efi/efivars'] with allowed return codes [0]
(capture=False)
Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/target',
'eatmydata', 'apt-get', '--quiet', '--assume-yes',
'--option=Dpkg::options::=--force-unsafe-io',
'--option=Dpkg::Options::=--force-confold', 'install', 'efibootmgr',
'grub-efi-amd64', 'grub-efi-amd64-signed', 'shim-signed'] with allowed
return codes [0] (capture=False)
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
grub-common grub-efi-amd64-bin grub2-common libfreetype6 mokutil os-prober
Suggested packages:
multiboot-doc grub-emu xorriso desktop-base
The following NEW packages will be installed:
efibootmgr grub-common grub-efi-amd64 grub-efi-amd64-bin
grub-efi-amd64-signed grub2-common libfreetype6 mokutil os-prober
shim-signed
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/4584 kB of archives.
After this operation, 32.7 MB of additional disk space will be used.
Get:1 file:/cdrom focal/main amd64 efibootmgr amd64 17-1 [28.1 kB]
Get:2 file:/cdrom focal/main amd64 libfreetype6 amd64 2.10.1-2ubuntu0.2
[341 kB]
Err:2 file:/cdrom focal/main amd64 libfreetype6 amd64 2.10.1-2ubuntu0.2
File not found -
/cdrom/pool/main/f/freetype/libfreetype6_2.10.1-2ubuntu0.2_amd64.deb (2: No
such file or directory)
Get:3 file:/cdrom focal/main amd64 grub-common amd64 2.04-1ubuntu26.15
[1875 kB]
Get:4 file:/cdrom focal/main amd64 grub-efi-amd64-bin amd64
2.04-1ubuntu44.2 [729 kB]
Get:5 file:/cdrom focal/main amd64 grub2-common amd64 2.04-1ubuntu26.15
[592 kB]
Get:6 file:/cdrom focal/main amd64 grub-efi-amd64 amd64 2.04-1ubuntu44.2
[46.9 kB]
Get:7 file:/cdrom focal/main amd64 grub-efi-amd64-signed amd64
1.167.2+2.04-1ubuntu44.2 [482 kB]
Get:8 file:/cdrom focal/main amd64 mokutil amd64 0.3.0+1538710437.fb6250f-1
[22.6 kB]
Get:9 file:/cdrom focal/main amd64 os-prober amd64 1.74ubuntu2 [20.1 kB]
Get:10 file:/cdrom focal/main amd64 shim-signed amd64 1.40.7+15.4-0ubuntu9
[448 kB]
E: Failed to fetch
file:/cdrom/pool/main/f/freetype/libfreetype6_2.10.1-2ubuntu0.2_amd64.deb
File not found -
/cdrom/pool/main/f/freetype/libfreetype6_2.10.1-2ubuntu0.2_amd64.deb (2: No
such file or directory)
E: Unable to fetch some archives, maybe run apt-get update or try with
--fix-missing?
Running command ['udevadm', 'settle'] with allowed return codes [0]
(capture=False)
TIMED subp(['udevadm', 'settle']): 0.009
Running command ['mount', '--make-private',
'/target/sys/firmware/efi/efivars'] with allowed return codes [0]
(capture=False)
Running command ['umount', '/target/sys/firmware/efi/efivars'] with allowed
return codes [0] (capture=False)
Running command ['mount', '--make-private', '/target/sys'] with allowed
return codes [0] (capture=False)
Running command ['umount', '/target/sys'] with allowed return codes [0]
(capture=False)
Running command ['mount', '--make-private', '/target/run'] with allowed
return codes [0] (capture=False)
Running command ['umount', '/target/run'] with allowed return codes [0]
(capture=False)
Running command ['mount', '--make-private', '/target/proc'] with allowed
return codes [0] (capture=False)
Running command ['umount', '/target/proc'] with allowed return codes [0]
(capture=False)
Running command ['mount', '--make-private', '/target/dev'] with allowed
return codes [0] (capture=False)
Running command ['umount', '/target/dev'] with allowed return codes [0]
(capture=False)
finish: cmd-install/stage-curthooks/builtin/cmd-curthooks: FAIL: Installing
packages on target system: ['efibootmgr', 'grub-efi-amd64',
'grub-efi-amd64-signed', 'shim-signed']
finish:
cmd-install/stage-curthooks/builtin/cmd-curthooks/installing-missing-packages:
FAIL: installing missing packages
finish: cmd-install/stage-curthooks/builtin/cmd-curthooks: FAIL: curtin
command curthooks
Traceback (most recent call last):
File
"/snap/subiquity/3698/lib/python3.8/site-packages/curtin/commands/main.py",
line 202, in main
ret = args.func(args)
File
"/snap/subiquity/3698/lib/python3.8/site-packages/curtin/commands/curthooks.py",
line 1886, in curthooks
builtin_curthooks(cfg, target, state)
File
"/snap/subiquity/3698/lib/python3.8/site-packages/curtin/commands/curthooks.py",
line 1707, in builtin_curthooks
install_missing_packages(cfg, target, osfamily=osfamily)
File
"/snap/subiquity/3698/lib/python3.8/site-packages/curtin/commands/curthooks.py",
line 1318, in install_missing_packages
distro.install_packages(to_add, target=target, osfamily=osfamily)
File "/snap/subiquity/3698/lib/python3.8/site-packages/curtin/distro.py",
line 423, in install_packages
return install_cmd('install', args=pkglist, opts=opts, target=target,
File "/snap/subiquity/3698/lib/python3.8/site-packages/curtin/distro.py",
line 303, in run_apt_command
cmd_rv = inchroot.subp(cmd, env=env)
File "/snap/subiquity/3698/lib/python3.8/site-packages/curtin/util.py",
line 780, in subp
return subp(*args, **kwargs)
File "/snap/subiquity/3698/lib/python3.8/site-packages/curtin/util.py",
line 275, in subp
return _subp(*args, **kwargs)
File "/snap/subiquity/3698/lib/python3.8/site-packages/curtin/util.py",
line 139, in _subp
raise ProcessExecutionError(stdout=out, stderr=err,
curtin.util.ProcessExecutionError: Unexpected error while running command.
Command: ['unshare', '--fork', '--pid', '--', 'chroot', '/target',
'eatmydata', 'apt-get', '--quiet', '--assume-yes',
'--option=Dpkg::options::=--force-unsafe-io',
'--option=Dpkg::Options::=--force-confold', 'install', 'efibootmgr',
'grub-efi-amd64', 'grub-efi-amd64-signed', 'shim-signed']
Exit code: 100
Reason: -
Stdout: ''
Stderr: ''
Unexpected error while running command.
Command: ['unshare', '--fork', '--pid', '--', 'chroot', '/target',
'eatmydata', 'apt-get', '--quiet', '--assume-yes',
'--option=Dpkg::options::=--force-unsafe-io',
'--option=Dpkg::Options::=--force-confold', 'install', 'efibootmgr',
'grub-efi-amd64', 'grub-efi-amd64-signed', 'shim-signed']
Exit code: 100
Reason: -
Stdout: ''
Stderr: ''
curtin: Installation failed with exception: Unexpected error while running
command.
Command: ['curtin', 'curthooks']
Exit code: 3
Reason: -
Stdout: start: cmd-install/stage-curthooks/builtin/cmd-curthooks: curtin
command curthooks
Running curtin builtin curthooks
Configuring target system for distro: ubuntu osfamily: debian
start:
cmd-install/stage-curthooks/builtin/cmd-curthooks/writing-apt-config:
configuring apt configuring apt
Transferred {'subiquity': ''} into new format:
{'debconf_selections': {'subiquity': ''}}
curthooks handling apt to target /target with config
{'debconf_selections': {'subiquity': ''}}
Running command ['unshare', '--help'] with allowed return codes [0]
(capture=True)
Running command ['unshare', '--fork', '--pid', '--', 'chroot',
'/target', 'lsb_release', '--all'] with allowed return codes [0]
(capture=True)
Running command ['unshare', '--fork', '--pid', '--', 'chroot',
'/target', 'dpkg', '--print-architecture'] with allowed return codes [0]
(capture=True)
got primary mirror: None
got security mirror: None
Apt Mirror info: {'PRIMARY': 'http://archive.ubuntu.com/ubuntu/',
'SECURITY': 'http://security.ubuntu.com/ubuntu/', 'MIRROR': '
http://archive.ubuntu.com/ubuntu/'}
Applying debconf selections
Running command ['unshare', '--fork', '--pid', '--', 'chroot',
'/target', 'debconf-set-selections'] with allowed return codes [0]
(capture=True)
Running command ['unshare', '--fork', '--pid', '--', 'chroot',
'/target', 'dpkg-query', '--list'] with allowed return codes [0]
(capture=True)
Running command ['mount', '--bind', '/dev', '/target/dev'] with
allowed return codes [0] (capture=False)
Running command ['mount', '--bind', '/proc', '/target/proc'] with
allowed return codes [0] (capture=False)
Running command ['mount', '--bind', '/run', '/target/run'] with
allowed return codes [0] (capture=False)
Running command ['mount', '--bind', '/sys', '/target/sys'] with
allowed return codes [0] (capture=False)
Running command ['mount', '--bind', '/sys/firmware/efi/efivars',
'/target/sys/firmware/efi/efivars'] with allowed return codes [0]
(capture=False)
Diverting original update-initramfs in target.
Running command ['unshare', '--fork', '--pid', '--', 'chroot',
'/target', 'dpkg-divert', '--add', '--rename', '--divert',
'/usr/sbin/update-initramfs.curtin-disabled', '/usr/sbin/update-initramfs']
with allowed return codes [0] (capture=False)
Adding 'local diversion of /usr/sbin/update-initramfs to
/usr/sbin/update-initramfs.curtin-disabled'
Running command ['udevadm', 'settle'] with allowed return codes [0]
(capture=False)
TIMED subp(['udevadm', 'settle']): 0.023
Running command ['mount', '--make-private',
'/target/sys/firmware/efi/efivars'] with allowed return codes [0]
(capture=False)
Running command ['umount', '/target/sys/firmware/efi/efivars'] with
allowed return codes [0] (capture=False)
Running command ['mount', '--make-private', '/target/sys'] with
allowed return codes [0] (capture=False)
Running command ['umount', '/target/sys'] with allowed return codes
[0] (capture=False)
Running command ['mount', '--make-private', '/target/run'] with
allowed return codes [0] (capture=False)
Running command ['umount', '/target/run'] with allowed return codes
[0] (capture=False)
Running command ['mount', '--make-private', '/target/proc'] with
allowed return codes [0] (capture=False)
Running command ['umount', '/target/proc'] with allowed return
codes [0] (capture=False)
Running command ['mount', '--make-private', '/target/dev'] with
allowed return codes [0] (capture=False)
Running command ['umount', '/target/dev'] with allowed return codes
[0] (capture=False)
finish:
cmd-install/stage-curthooks/builtin/cmd-curthooks/writing-apt-config:
SUCCESS: configuring apt configuring apt
Running command ['unshare', '--fork', '--pid', '--', 'chroot',
'/target', 'lsb_release', '--all'] with allowed return codes [0]
(capture=True)
start:
cmd-install/stage-curthooks/builtin/cmd-curthooks/installing-missing-packages:
installing missing packages
Running command ['unshare', '--fork', '--pid', '--', 'chroot',
'/target', 'dpkg-query', '--list'] with allowed return codes [0]
(capture=True)
Curtin config dependencies requires additional packages:
['e2fsprogs']
Running command ['dpkg', '--print-architecture'] with allowed
return codes [0] (capture=True)
Running command ['apt-cache', 'pkgnames'] with allowed return codes
[0] (capture=True)
Running command ['apt-cache', 'pkgnames'] with allowed return codes
[0] (capture=True)
What is happening ?
Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20220923/169e5f24/attachment.html>
More information about the ubuntu-users
mailing list