bleachbit fails to launch as root in Ubuntu 21.04

Bug #1933289 reported by Demon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bleachbit (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

In ubuntu 21.04 (hirsute), bleachbit fails to launch as root (sudo or pkexec). However, as normal user it launches.

version: bleachbit/hirsute,now 3.9.0-1 all [installed]

The output in terminal when running as root is:

Traceback (most recent call last):
  File "/usr/bin/bleachbit", line 43, in <module>
    import bleachbit.GUI
  File "/usr/share/bleachbit/bleachbit/GUI.py", line 26, in <module>
    from bleachbit import Cleaner, FileUtilities
  File "/usr/share/bleachbit/bleachbit/Cleaner.py", line 32, in <module>
    from bleachbit.Options import options
  File "/usr/share/bleachbit/bleachbit/Options.py", line 382, in <module>
    set_root_log_level()
  File "/usr/share/bleachbit/bleachbit/Log.py", line 84, in set_root_log_level
    is_debug = options.get('debug')
  File "/usr/share/bleachbit/bleachbit/Options.py", line 160, in get
    return self.config.getboolean(section, option)
  File "/usr/lib/python3.9/configparser.py", line 828, in getboolean
    return self._get_conv(section, option, self._convert_to_boolean,
  File "/usr/lib/python3.9/configparser.py", line 808, in _get_conv
    return self._get(section, conv, option, raw=raw, vars=vars,
  File "/usr/lib/python3.9/configparser.py", line 803, in _get
    return conv(self.get(section, option, **kwargs))
  File "/usr/lib/python3.9/configparser.py", line 1163, in _convert_to_boolean
    raise ValueError('Not a boolean: %s' % value)
ValueError: Not a boolean: ['False']

Revision history for this message
Demon (demonrx) wrote :
Revision history for this message
Demon (demonrx) wrote :
summary: - bleachbit fails to launch as root
+ bleachbit fails to launch as root in Ubuntu 21.04
Revision history for this message
Andrew Ziem (ahziem1) wrote :

First, please update to a new version. The latest release is version 4.3.0 beta, which will soon be 4.4.0 stable with little change. There's also 4.2.0 stable that is much newer than version 3.9.

Ubuntu has a "no rolling release policy," so its repositories will not keep BleachBit updated. You can find newer versions here

https://www.bleachbit.org/download
https://www.bleachbit.org/news/bleachbit-430-beta

If you experience this problem in a new version, then please review the comments in this discussion of the same problem https://github.com/bleachbit/bleachbit/issues/562 .

If you can add more information about this problem happening with a new version of BleachBit, please report it here https://github.com/bleachbit/bleachbit/issues/new/choose

Revision history for this message
Demon (demonrx) wrote :

Installing this version into Ubuntu 21.04 (Hirsute) is working:

bleachbit_4.2.0-0_all_ubuntu2004.deb

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package bleachbit - 4.4.2-1

---------------
bleachbit (4.4.2-1) unstable; urgency=medium

  * Team upload

  [ Fabio Fantoni ]
  * New upstream release (Closes: #958344, #970229, #974530, #994094)
    (LP: #1957053, #1875809, #1933289)
  * Bump debhelper-compat to 13
  * d/control: add missed dependency gir1.2-notify-0.7
  * update d/copyright
  * d/control: specify that rules don't require root

  [ Jeremy Bicha ]
  * debian/control: Depend on pkexec

 -- Fabio Fantoni <email address hidden> Thu, 17 Mar 2022 08:55:46 -0400

Changed in bleachbit (Ubuntu):
status: New → Fix Released
Revision history for this message
Demon (demonrx) wrote :

I've since upgraded to Ubuntu 21.10 (Impish). And no issues with bleachbit.

Thank you

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.