Public bug reported:

Attempting to run the live session without connecting to any network and
doing an offline installation crashed curtin when attempted to install
GRUB and related packages. An online installation succeeded. The
relevant extract from curtin logs:

```
Running command ['unshare', '--fork', '--pid', '--mount-proc=/target/proc', 
'--', 'chroot', '/target', 'apt-get', '--quiet', '--assume-yes', 
'--option=Dpkg::options::=--force-unsafe-io', 
'--option=Dpkg::Options::=--force-confold', 'install', '--download-only', 
'efibootmgr', 'grub-efi-amd64', 'grub-efi-amd64-signed', 'shim-signed'] with 
allowed return codes [0] (capture=False)
        Lendo listas de pacotes...
        Construindo árvore de dependências...
        Lendo informação de estado...
        O pacote grub-efi-amd64 não está disponível, mas é referenciado por 
outro pacote.
        Isto pode significar que o pacote está faltando, ficou obsoleto ou
        está disponível somente a partir de outra fonte
        No entanto, os pacotes a seguir o substituem:
          grub-pc
        
        O pacote grub-efi-amd64-signed não está disponível, mas é referenciado 
por outro pacote.
        Isto pode significar que o pacote está faltando, ficou obsoleto ou
        está disponível somente a partir de outra fonte
        
        E: Não é possível encontrar o pacote efibootmgr
        E: O pacote 'grub-efi-amd64' não tem candidato para instalação
        E: O pacote 'grub-efi-amd64-signed' não tem candidato para instalação
        Running command ['udevadm', 'settle'] with allowed return codes [0] 
(capture=False)
        TIMED subp(['udevadm', 'settle']): 0.004
        Running command ['mount', '--make-private', '/target/usr/bin/ischroot'] 
with allowed return codes [0] (capture=False)
        Running command ['umount', '/target/usr/bin/ischroot'] with allowed 
return codes [0] (capture=False)
        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/ubuntu-desktop-bootstrap/689/lib/python3.12/site-packages/curtin/commands/main.py",
 line 202, in main
            ret = args.func(args)
                  ^^^^^^^^^^^^^^^
          File 
"/snap/ubuntu-desktop-bootstrap/689/lib/python3.12/site-packages/curtin/commands/curthooks.py",
 line 2253, in curthooks
            builtin_curthooks(cfg, target, state)
          File 
"/snap/ubuntu-desktop-bootstrap/689/lib/python3.12/site-packages/curtin/commands/curthooks.py",
 line 2100, in builtin_curthooks
            install_missing_packages(cfg, target, osfamily=osfamily)
          File 
"/snap/ubuntu-desktop-bootstrap/689/lib/python3.12/site-packages/curtin/commands/curthooks.py",
 line 1517, in install_missing_packages
            distro.install_packages(to_add, target=target, osfamily=osfamily)
          File 
"/snap/ubuntu-desktop-bootstrap/689/lib/python3.12/site-packages/curtin/distro.py",
 line 472, in install_packages
            return install_cmd('install', args=pkglist, opts=opts, 
target=target,
                   
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File 
"/snap/ubuntu-desktop-bootstrap/689/lib/python3.12/site-packages/curtin/distro.py",
 line 254, in run_apt_command
            cmd_rv = apt_install(mode, args, opts=opts, env=env, target=target,
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File 
"/snap/ubuntu-desktop-bootstrap/689/lib/python3.12/site-packages/curtin/distro.py",
 line 302, in apt_install
            cmd_rv = inchroot.subp(cmd + dl_opts + packages, env=env,
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File 
"/snap/ubuntu-desktop-bootstrap/689/lib/python3.12/site-packages/curtin/util.py",
 line 853, in subp
            return subp(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
          File 
"/snap/ubuntu-desktop-bootstrap/689/lib/python3.12/site-packages/curtin/util.py",
 line 333, in subp
            return _subp(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^^
          File 
"/snap/ubuntu-desktop-bootstrap/689/lib/python3.12/site-packages/curtin/util.py",
 line 177, in _subp
            raise ProcessExecutionError(stdout=out, stderr=err,
        curtin.util.ProcessExecutionError: Unexpected error while running 
command.
        Command: ['unshare', '--fork', '--pid', '--mount-proc=/target/proc', 
'--', 'chroot', '/target', 'apt-get', '--quiet', '--assume-yes', 
'--option=Dpkg::options::=--force-unsafe-io', 
'--option=Dpkg::Options::=--force-confold', 'install', '--download-only', 
'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', '--mount-proc=/target/proc', 
'--', 'chroot', '/target', 'apt-get', '--quiet', '--assume-yes', 
'--option=Dpkg::options::=--force-unsafe-io', 
'--option=Dpkg::Options::=--force-confold', 'install', '--download-only', 
'efibootmgr', 'grub-efi-amd64', 'grub-efi-amd64-signed', 'shim-signed']
        Exit code: 100
        Reason: -
        Stdout: ''
        Stderr: ''
        
Stderr: ''
```

** Affects: grub2 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2169183

Title:
  Stonking Beta ISO installer crash during offline install

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/2169183/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to