ua refresh "Unexpected error(s) occurred"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-advantage-tools (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned | ||
Hirsute |
Fix Released
|
Undecided
|
Unassigned | ||
Impish |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
If /snap/bin is not present in the PATH, UA will fail when trying to run it.
This is fixed by specifying the full path (/snap/
[Test Case]
To reproduce the bug, run `sudo env PATH="/usr/bin" ua refresh` on an attached bionic machine.
Then, install the 27.5 version from the staging PPA (https:/
Repeating the same command as above runs without an error.
There is a test script attached to this bug, as well as execution output, to show the above solution works.
[Regression Potential]
It could only cause problems if canonical-livepatch is in a different place than /snap/bin, and it should not happen in any installation.
[Original Description]
root@somehost:~# ua refresh
Unexpected error(s) occurred.
For more details, see the log: /var/log/
To file a bug run: ubuntu-bug ubuntu-
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: ubuntu-
ProcVersionSign
Uname: Linux 4.15.0-143-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.9-0ubuntu7.27
Architecture: amd64
Date: Tue Nov 23 12:56:54 2021
InstallationDate: Installed on 2015-08-06 (2300 days ago)
InstallationMedia: Ubuntu-Server 14.04.2 LTS "Trusty Tahr" - Release amd64 (20150218.1)
ProcEnviron:
LANGUAGE=en_GB:en
TERM=screen
PATH=(custom, no user)
LANG=en_GB.UTF-8
SHELL=/bin/bash
SourcePackage: ubuntu-
UpgradeStatus: Upgraded to bionic on 2020-06-17 (524 days ago)
description: | updated |
tags: |
added: verification-done verification-done-bionic verification-done-focal verification-done-hirsute verification-done-impish verification-done-xenial removed: verification-needed verification-needed-bionic verification-needed-focal verification-needed-hirsute verification-needed-impish verification-needed-xenial |
Hi Albourne, can please run:
ua collect-logs
And append the result here so we can better investigate this issue