free disk space check could actually carry out suggested ways to clear space

Bug #291342 reported by Olly Betts on 2008-10-31
46
This bug affects 3 people
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Wishlist
Unassigned

Bug Description

Binary package hint: update-manager

Starting the upgrade from hardy to intrepid I get an error dialog:

    Not enough free disk space

    The upgrade aborts now. The upgrade needs a total of 1260M free space on disk '/'. Please free at least an additional 308M of disk space on '/'. Empty your Deleted Items folder and remove temporary packages of former installations using 'sudo apt-get clean'.

    [ Close ]

So I have to close the dialog, go to the Deleted Items folder and empty it, and then open a terminal and run "sudo apt-get clean". Then restart update-manager and restart the upgrade.

That's rather clunky - it would be more helpful if the dialog allowed me to directly perform these suggested ways to free up enough space, for example, something like:

    Not enough free disk space

    The upgrade needs a total of 1260M free space on disk '/'. Please free at least an additional 308M of disk space on '/'.

    You can free up some space in the following ways - check the boxes next to those you wish to do and click OK:

    [ ] Empty your Deleted Items folder.

    [ ] Remove temporary packages of former installations using 'sudo apt-get clean'.

    [OK] [ Close ]

If it's easy to do, the space each action would save could be given too.

Changed in update-manager:
importance: Undecided → Wishlist
status: New → Confirmed
Michael Vogt (mvo) wrote :

Thanks, that is indeed clinky. I milestone it for the next release.

Changed in update-manager:
milestone: none → ubuntu-9.04-beta
Martin Pitt (pitti) on 2009-03-06
Changed in update-manager:
assignee: nobody → mvo
Michael Vogt (mvo) on 2009-03-19
Changed in update-manager (Ubuntu):
milestone: ubuntu-9.04-beta → later
Artur Rona (ari-tczew) wrote :

ERROR:root:Not enough free space: ['/']
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/UpdateManager/UpdateManager.py", line 574, in on_button_install_clicked
    self.error(err_sum, err_long % (e.size_total,
AttributeError: 'NotEnoughFreeSpaceError' object has no attribute 'size_total'

Olly Betts (ojwb) wrote :

That really has no connection with this ticket. Please don't hijack a bug report with unrelated issues - open a new ticket instead.

Tobias C. Rittweiler (tcr) wrote :

I just experienced the same problem.

Personally, I don't need the upgrader to perform file-deleting operations for me,
all I want it to have a RETRY button that checks the condition again that leaded
to that error -- and if the condition is not true anymore (because I deleted stuff),
it should just go on with the upgrade.

Michael Vogt (mvo) on 2011-04-01
Changed in update-manager (Ubuntu):
assignee: Michael Vogt (mvo) → nobody
Robert Roth (evfool) wrote :

About adding a retry button to the free space check there is another bug reported, bug #154236, so this bug is only about adding some options to free up some disk space.
---
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad

Jarno Suni (jarnos) wrote :

update-manager may display a different kind of error when going to install (kernel) updates i.e. new kernel(s): https://i.stack.imgur.com/DppOi.png
The actions suggested by the dialog (i.e. emptying trash and running 'sudo apt-get clean' do not help, if /boot is in a separate partition. 'sudo apt autoremove --purge' would be an option in 16.04 and later.

Related: Bug #1460396

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers