[Bug 1965805] Re: Ubiquity failure - Error while installing packages Ubuntu Jammy

James Henstridge 1965805 at bugs.launchpad.net
Thu Mar 24 02:38:19 UTC 2022


I tried to do a clean install in a VM with the current daily install
media and managed to reproduce the problem.

The Firefox preinst script was stuck in its loop calling "snap info
firefox", so I opened a shell with "sudo chroot /proc/$pid/root" and ran
the same command. That led to a panic that I've attached below.

The panic occurs when it is trying to get the caller's home directory,
picking the sudo user in preference:

https://github.com/snapcore/snapd/blob/6541efe9d6daad221447a2220c6de544b1741f46/client/login.go#L97-L100

The called function checks the SUDO_USER environment variable:

https://github.com/snapcore/snapd/blob/6541efe9d6daad221447a2220c6de544b1741f46/osutil/user.go#L309-L347

The /proc/$pid/environ file shows that the preinst script is being run
with SUDO_USER=ubuntu, which is essentially the same environment I
happened to create with "sudo chroot". The user lookup fails because
there is no user by that name in the file system being set up for the
install.

** Attachment added: "Output of "snap info firefox""
   https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1965805/+attachment/5572359/+files/snap.log

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

Title:
  Ubiquity failure - Error while installing packages Ubuntu Jammy

Status in ubiquity package in Ubuntu:
  Confirmed
Status in ubiquity source package in Jammy:
  Confirmed

Bug description:
  Testing Ubuntu Jammy daily ISO 21.03.2022
  The test was run on 2 seperate machines see: http://iso.qa.ubuntu.com/qatracker/milestones/429/builds/245913/testcases/1300/results/
  1. Lenovo V14 II - barebone
  2. InWin BL641 i5-10400 - run in VirtualBox VM
  When the installation terminates the following message appears (see also attached screenshot)
  "Error while installing packages: "
  Then follows large text and refers to broken "firefox-locale-en" package
  When the system reboots no boot media is found on the install machine.

  ProblemType: Bug
  DistroRelease: Ubuntu 22.04
  Package: ubiquity 22.04.7
  ProcVersionSignature: Ubuntu 5.15.0-23.23-generic 5.15.27
  Uname: Linux 5.15.0-23-generic x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
  ApportVersion: 2.20.11-0ubuntu79
  Architecture: amd64
  CasperMD5CheckResult: pass
  CasperVersion: 1.467
  CurrentDesktop: ubuntu:GNOME
  Date: Mon Mar 21 17:44:01 2022
  InstallCmdLine: BOOT_IMAGE=/casper/vmlinuz file=/cdrom/preseed/ubuntu.seed maybe-ubiquity quiet splash ---
  LiveMediaBuild: Ubuntu 22.04 LTS "Jammy Jellyfish" - Alpha amd64 (20220321)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: ubiquity
  UpgradeStatus: No upgrade log present (probably fresh install)

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




More information about the foundations-bugs mailing list