WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Can't sudo bleachbit  (Read 2559 times)

Offline lumosy

  • Newbie
  • *
  • Posts: 12
Can't sudo bleachbit
« on: November 22, 2011, 06:28:16 PM »
BleachBit installs and runs great as non-root, but in order to clean system files as well, it says it needs to run as root.

I have no problem running BleachBit as root under other Linux distros, but in TCL 4.1 I get:

Code: [Select]
tc@box:~$ sudo su
root@box:~# bleachbit
info: starting BleachBit version 0.8.7
warning: cannot find GPLv3 license text file
warning: No default locale found.  Assuming 'C'
debug: makedirs(/root/.config/bleachbit)
debug: makedirs(/root/.config)
debug: chown(/root/.config, uid=1001)
Traceback (most recent call last):
  File "/usr/local/bin/bleachbit", line 42, in <module>
    import bleachbit.GUI
  File "/usr/local/share/bleachbit/GUI.py", line 40, in <module>
    from Cleaner import backends
  File "/usr/local/share/bleachbit/Cleaner.py", line 44, in <module>
    import Special
  File "/usr/local/share/bleachbit/Special.py", line 27, in <module>
    from Options import options
  File "/usr/local/share/bleachbit/Options.py", line 246, in <module>
    options = Options()
  File "/usr/local/share/bleachbit/Options.py", line 44, in __init__
    self.restore()
  File "/usr/local/share/bleachbit/Options.py", line 149, in restore
    self.set_list('shred_drives', Unix.guess_overwrite_paths())
  File "/usr/local/share/bleachbit/Options.py", line 195, in set_list
    self.__flush()
  File "/usr/local/share/bleachbit/Options.py", line 50, in __flush
    General.makedirs(Common.options_dir)
  File "/usr/local/share/bleachbit/General.py", line 117, in makedirs
    makedirs(parentdir)
  File "/usr/local/share/bleachbit/General.py", line 120, in makedirs
    chownself(path)
  File "/usr/local/share/bleachbit/General.py", line 76, in chownself
    assert(path.find('/root') != 0)
AssertionError

Any idea how to fix this?

(again, it runs perfectly under a non-root account)