Bleachbit: BleachBit time calculation is terrible and apps never says it ended its job even if it did.

Created on 22 Nov 2019  路  5Comments  路  Source: bleachbit/bleachbit

This is the screenshot of BleachBit (without root).
Screenshot from 2019-11-22 16-22-52

This is the screenshot of BleachBit (with root).
Screenshot from 2019-11-22 16-22-17

BleachBit tries to delete its own files every time which creates an error message as you can see in the screenshot. Since Bleachbit is running app, and running app can't delete its own file and create a loop of attempts that ever ends. So, basically, the user needs to exit the program thinking it has done its works. Because BleachBit is never going to declare it has done its job.

Distro: Ubuntu 19.10

Most helpful comment

The UnboundLocalError was fixed in BleachBit 3.0, available as a .deb from bleachbit.org. Ubuntu does not update BleachBit in its repositories, so the version in the repositories is often old.

This doesn't directly address the time calculation, but there were many changes, so please try again with the newer version.

If you still have the problem, please run BleachBit in a terminal like this bleachbit --debug --clean system.free_disk_space. Then please paste the terminal output here. There might be some useful information. (BleachBit version 2.2 that you have doesn't have the --debug option.)

All 5 comments

Are you running BleachBit version 2.2? Is it from the Ubuntu repository?

Are you running BleachBit version 2.2? Is it from the Ubuntu repository?

pranav@Exam:~$ apt search bleachbit
Sorting... Done
Full Text Search... Done
bleachbit/eoan,eoan,now 2.2-3 all [installed]
  delete unnecessary files from the system

The UnboundLocalError was fixed in BleachBit 3.0, available as a .deb from bleachbit.org. Ubuntu does not update BleachBit in its repositories, so the version in the repositories is often old.

This doesn't directly address the time calculation, but there were many changes, so please try again with the newer version.

If you still have the problem, please run BleachBit in a terminal like this bleachbit --debug --clean system.free_disk_space. Then please paste the terminal output here. There might be some useful information. (BleachBit version 2.2 that you have doesn't have the --debug option.)

@az0
Is it Ubuntu's responsibility to update what goes into APT repository? I don't think so. Because I installed BleachBit using APT command: sudo apt install bleachbit

Anyway, the new version, tried what u said:

pranav@Exam:~$ bleachbit --debug --clean system.free_disk_space
clean_operation('system'), options = '[]'
Wiping free disk space erases remnants of files that were deleted without shredding. It does not free up space.
Wiping path: /home/pranav/.cache
Creating new, temporary file for wiping free space.
^Z
[1]+  Stopped                 bleachbit --debug --clean system.free_disk_space

After waiting like 3 hours, I couldn't help it, and had to force stop it. That's disappointing. Hope it fixes in future updates.

@PranavBhattarai, APT use the sources lists defined to look for available packages and new versions of progs.
If you haven't changed the sources, Ubuntu sources are used.
Using Ubuntu sources are important to update and keep your Ubuntu secure!
But you can add more sources to the list to can choose from more packages and have newer versions (e.g. backports to older distry versions but you already run latest).
Unfortunately there is no list that include latest BB! So you have to download and install latest manual!
Would like to see that @az0 creates a sources list (automatically) from CI... so people that are involved in development (e.g. SQC) can easily always update to latest build for testing...
https://tecadmin.net/add-apt-repository-ubuntu/
https://help.ubuntu.com/community/UbuntuBackports
Btw.: You can choose source lists from distry alternatives ("based on" distries), too! So you can e.g. extend your Ubuntu packages list with progs listed in the lists of Mint! (E.g. "create" an install of Mint based on the faster updated sources of Ubuntu...) But the original distry sources should always (if possible) be preferred! (Sort order of sources list...)

Btw.: I have this wish for an up-to-date (CI Builds) source list since a long time, too! Unfortunately I never wrote with @az0 about it and no one else seemed to create a wish issue for it! :-/ So I changed this now and created (finally) a wish issue here: https://github.com/bleachbit/wishlist/issues/72

@az0, to the time calculation part of this issue:
I guess the "error 1" I get with my newest BB CleanerML file for Telegram Desktop, is a "time calculation issue", too!
https://github.com/az0/cleanerml/pull/270
And thought we discussed "time capture" too, but it seems to was "free space capture" https://github.com/bleachbit/wishlist/issues/21 but a "Can't calculate ellipses time, because Cleaner triggers external program!" would be in this context nice, too, and at least after trigger external app there should be some improvements to "used time", but we maybe can discuss this for implementation (show time without trigger of external app, because maybe there comes a CMD Prompt up, user must interact and if he don't do it immediately, BB includes wait time in report, or calculate/measure time without wait for exit of external app and show something like "Native BleachBit cleaning time was: 1 min. 35 sec." to avoid this "wait for user interaction" prob in BB report of cleaning)...

Was this page helpful?
0 / 5 - 0 ratings