do-release-upgrade fails from 11.04 to 11.10 due to missing btrfs-tools package
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-manager (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Release upgrade doesn't check whether btrfs-tools package is installed before attempting to use the commands within the package.
I have an 11.04 installation (that was done with the installer, possibly one of the betas) that uses btrfs root, but doesn't have btrfs-tools installed. The attached trace is displayed, but doesn't really offer any useful help on what went wrong. The easiest way to fix this would be to check whether the btrfs-tools package is installed and install it if not, assuming that the user is using btrfs.
--------8<--------
Traceback (most recent call last):
File "/tmp/update-
sys.exit(main())
File "/tmp/update-
main
if app.run():
File "/tmp/update-
1670, in run
return self.fullUpgrade()
File "/tmp/update-
1639, in fullUpgrade
if not self.doDistUpgr
File "/tmp/update-
1033, in doDistUpgrade
self._maybe_
File "/tmp/update-
1017, in _maybe_
res = apt_btrfs.
File "/tmp/update-
create_
os.path.join(mp, self.SNAP_
File "/tmp/update-
btrfs_subvolume
source, dest])
File "/usr/lib/
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/
errread, errwrite)
File "/usr/lib/
raise child_exception
OSError: [Errno 2] No such file or directory
Changed in update-manager (Ubuntu): | |
status: | Incomplete → Fix Released |
Thanks for your bugreport.
Could you please check with: manager- VGGglZ/ DistUpgradeVers ion.py
$ sudo cat /tmp/update-
what version you are using?
This should be fixed in version 0.152.25.1 that got uploaded a couple of hours ago. If you have this
version and its still crashing the fix is incomplete :/