[Bug 1965110] Re: /snap/subiquity/x1/usr/bin/os-prober: 4: .: cannot open /usr/share/os-prober/common.sh: No such file

Heinrich Schuchardt 1965110 at bugs.launchpad.net
Wed Mar 16 11:56:00 UTC 2022


This file exists:

/snap/subiquity/x1/usr/share/os-prober/common.sh

These variables are exported (amongst others):

PATH="/snap/subiquity/x1/bin:/snap/subiquity/x1/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
PYTHON="/snap/subiquity/x1/usr/bin/python3.8"
PYTHONPATH="/snap/subiquity/x1/lib/python3.8/site-packages"
SNAP="/snap/subiquity/x1"
SNAP_ARCH="riscv64"

We have
x1/meta/snap.yaml:9:      OS_PROBER_SHARE: $SNAP/usr/share

But still this does not work as expected:

/snap/subiquity/x1/usr/bin/os-prober:4
. ${OS_PROBER_SHARE:-/usr/share}/os-prober/common.sh

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

Title:
  /snap/subiquity/x1/usr/bin/os-prober: 4: .: cannot open /usr/share/os-
  prober/common.sh: No such file

Status in subiquity package in Ubuntu:
  New

Bug description:
  Trying to install on riscv64 with https://github.com/canonical/subiquity/commit/f9ce537053d90eb6f1dc0a9d082ca0bc102edbfc
  I see the following error in the logs:

  /snap/subiquity/x1/usr/bin/os-prober: 4: .: cannot open /usr/share/os-prober/common.sh: No such file
  Traceback (most recent call last):
    File "/snap/subiquity/x1/lib/python3.8/site-packages/probert/os.py", line 65, in _run_os_prober
      result = subprocess.run(cmd, stdout=subprocess.PIPE,
    File "/snap/subiquity/x1/usr/lib/python3.8/subprocess.py", line 516, in run 
      raise CalledProcessError(retcode, process.args,
  subprocess.CalledProcessError: Command '['os-prober']' returned non-zero exit status 2.

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




More information about the foundations-bugs mailing list