[Bug 1785096] Re: dist-upgrader should clean up downloaded debs
Brian Murray
brian at ubuntu.com
Thu Aug 2 17:29:06 UTC 2018
ubuntu-release-upgrader (1:18.10.6) cosmic; urgency=medium
* DistUpgradeQuirks.py:
- make sure that snapd is installed before trying to use it.
(LP: #1783589)
- update the view with information regarding the progress of snaps being
installed. (LP: #1783593)
- when checking for connectivity to the snap store use C.UTF-8 for the
language so error message matching works. (LP: #1783738)
* DistUpgradeController.py:
- Remove debs from apt's "Dir::Cache::archives" folder after the upgrade
has completed successfully.
- Add a telemetry marker to report the time to process migration from deb
to snaps.
* DistUpgrade/DistUpgradeViewGtk3.py: call vte's terminal.feed_child() with
the correct parameters thereby fixing a crash. (LP: #1780501)
-- Brian Murray <brian at ubuntu.com> Wed, 01 Aug 2018 15:06:53 -0700
** Changed in: ubuntu-release-upgrader (Ubuntu)
Status: New => Fix Released
** Changed in: ubuntu-release-upgrader (Ubuntu Bionic)
Status: New => In Progress
** Changed in: ubuntu-release-upgrader (Ubuntu Bionic)
Importance: Undecided => Medium
** Changed in: ubuntu-release-upgrader (Ubuntu Bionic)
Assignee: (unassigned) => Brian Murray (brian-murray)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/1785096
Title:
dist-upgrader should clean up downloaded debs
Status in ubuntu-release-upgrader package in Ubuntu:
Fix Released
Status in ubuntu-release-upgrader source package in Bionic:
In Progress
Bug description:
During the release upgrade process packages for the new release are
downloaded to the apt configuration "Dir::Cache::archives" (usually
/var/cache/apt/archives/), but those are not removed from disk until
some time later. With the dist-upgrader growing support for
transitioning from debian packages to snaps for some software it's
possible that there may not be enough free space on disk (as the
upgrader doesn't currently calculate the space need which is bug
1783597) to support installing the snaps. Subsequently, it'd be good
to remove the debs from disk after the upgrade has completed since
they are likely on /var which is where the snaps will need space.
[Test Case]
1) Run 'du -sh /var/cache/apt/archives'
2) Upgrade from Ubuntu 16.04 to Ubuntu 18.04
3) Run 'du -sh /var/cache/apt/archives'
4) Observe that /var/cache/apt/archives is taking up more space than it id.
With the version of the dist-upgrader in -proposed
/var/cache/apt/archives should be nearly empty some debs may be left
because they are left over from regular updates in Ubuntu 16.04 and
were not part of the release upgrade process.
[Regression Potential]
It's possible that the debs are removed too early and if there were a failure to upgrade it'd be hard to recover from. One way to test this would be to use the apt-clone file from 1766890 which would create an upgrade failure.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1785096/+subscriptions
More information about the foundations-bugs
mailing list