BleachBit issues

Forums: 

I run Linux Mint cinnamon, and when i use the Bleach-bit I do not need to sign in, it shows maybe 200 things on the screen before i press clean, and as it cleans, some lines are red, what is that and why is that happening?

BleachBit version: 
4.6.0
Your operating system: 
Linux Mint 22.3 Cinnamon

Would you copy a few of the red lines that concern you and paste them here? That would help me understand your issue better.

(I don't need all the lines---just a sample is fine. If you prefer, you can mask your username or any other personal information.)

---
Andrew, lead developer

Palladini's picture

I will do that, but we are stepping out today, so it might tonight or tomorrow

I have been using BleacBit for years

Palladini's picture

Error: apt.autoclean: Function: apt-get autoclean
Traceback (most recent call last):
File "/usr/share/bleachbit/bleachbit/Unix.py", line 631, in apt_autoclean
return run_cleaner_cmd('apt-get', ['autoclean'], r'^Del .*\[([\d.]+[a-zA-Z]{2})}]', ['^E: '])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/bleachbit/bleachbit/Unix.py", line 591, in run_cleaner_cmd
output = subprocess.check_output([cmd] + args, stderr=subprocess.STDOUT,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/subprocess.py", line 466, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['apt-get', 'autoclean']' returned non-zero exit status 100.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/share/bleachbit/bleachbit/Worker.py", line 87, in execute
for ret in cmd.execute(self.really_delete):
File "/usr/share/bleachbit/bleachbit/Command.py", line 146, in execute
func_ret = self.func()
^^^^^^^^^^^
File "/usr/share/bleachbit/bleachbit/Unix.py", line 633, in apt_autoclean
raise RuntimeError("Error calling '%s':\n%s" %
RuntimeError: Error calling 'apt-get autoclean':
E: Could not open lock file /var/cache/apt/archives/lock - open (13: Permission denied)
E: Unable to lock the download directory

Error: apt.autoremove: Function: apt-get autoremove
Traceback (most recent call last):
File "/usr/share/bleachbit/bleachbit/Unix.py", line 622, in apt_autoremove
return run_cleaner_cmd('apt-get', args, freed_space_regex, ['^E: '])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/bleachbit/bleachbit/Unix.py", line 591, in run_cleaner_cmd
output = subprocess.check_output([cmd] + args, stderr=subprocess.STDOUT,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/subprocess.py", line 466, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['apt-get', '--yes', 'autoremove']' returned non-zero exit status 100.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/share/bleachbit/bleachbit/Worker.py", line 87, in execute
for ret in cmd.execute(self.really_delete):
File "/usr/share/bleachbit/bleachbit/Command.py", line 146, in execute
func_ret = self.func()
^^^^^^^^^^^
File "/usr/share/bleachbit/bleachbit/Unix.py", line 624, in apt_autoremove
raise RuntimeError("Error calling '%s':\n%s" %
RuntimeError: Error calling 'apt-get --yes autoremove':
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?

Error: apt.clean: Function: apt-get clean
Traceback (most recent call last):
File "/usr/share/bleachbit/bleachbit/Unix.py", line 641, in apt_clean
run_cleaner_cmd('apt-get', ['clean'], '^unused regex$', ['^E: '])
File "/usr/share/bleachbit/bleachbit/Unix.py", line 591, in run_cleaner_cmd
output = subprocess.check_output([cmd] + args, stderr=subprocess.STDOUT,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/subprocess.py", line 466, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['apt-get', 'clean']' returned non-zero exit status 100.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/share/bleachbit/bleachbit/Worker.py", line 87, in execute
for ret in cmd.execute(self.really_delete):
File "/usr/share/bleachbit/bleachbit/Command.py", line 146, in execute
func_ret = self.func()
^^^^^^^^^^^
File "/usr/share/bleachbit/bleachbit/Unix.py", line 643, in apt_clean
raise RuntimeError("Error calling '%s':\n%s" %
RuntimeError: Error calling 'apt-get clean':
E: Could not open lock file /var/cache/apt/archives/lock - open (13: Permission denied)
E: Unable to lock directory /var/cache/apt/archives/
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)

[Errno 13] Permission denied: '/var/lib/apt/lists/auxfiles': Command to delete /var/lib/apt/lists/auxfiles
[Errno 13] Permission denied: '/var/lib/apt/lists/partial': Command to delete /var/lib/apt/lists/partial
[Errno 13] Permission denied: '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble-backports_universe_i18n_Translation-en': Command to delete /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble-backports_universe_i18n_Translation-en
[Errno 13] Permission denied: '/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_noble-security_universe_dep11_Components-amd64.yml.gz': Command to delete /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_noble-security_universe_dep11_Components-amd64.yml.gz
[Errno 13] Permission denied: '/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_noble-security_universe_binary-amd64_Packages': Command to delete /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_noble-security_universe_binary-amd64_Packages
[Errno 13] Permission denied: '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble-backports_restricted_dep11_Components-amd64.yml.gz': Command to delete /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble-backports_restricted_dep11_Components-amd64.yml.gz
[Errno 13] Permission denied: '/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_noble-security_universe_i18n_Translation-en': Command to delete /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_noble-security_universe_i18n_Translation-en
[Errno 13] Permission denied: '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble-backports_main_dep11_Components-amd64.yml.gz': Command to delete /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble-backports_main_dep11_Components-amd64.yml.gz
[Errno 13] Permission denied: '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble-backports_universe_binary-amd64_Packages': Command to delete /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble-backports_universe_binary-amd64_Packages
[Errno 13] Permission denied: '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble-updates_universe_binary-i386_Packages': Command to delete /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble-updates_universe_binary-i386_Packages
[Errno 13] Permission denied: '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble-updates_multiverse_i18n_Translation-en': Command to delete /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble-updates_multiverse_i18n_Translation-en
[Errno 13] Permission denied: '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble-updates_multiverse_cnf_Commands-amd64': Command to delete /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble-updates_multiverse_cnf_Commands-amd64
[Errno 13] Permission denied: '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble-backports_universe_dep11_Components-amd64.yml.gz': Command to delete /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble-backports_universe_dep11_Components-amd64.yml.gz
[Errno 13] Permission denied: '/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_noble-security_restricted_binary-i386_Packages': Command to delete /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_noble-security_restricted_binary-i386_Packages
[Errno 13] Permission denied: '/var/lib/apt/lists/packages.linuxmint.com_dists_zena_Release.gpg': Command to delete /var/lib/apt/lists/packages.linuxmint.com_dists_zena_Release.gpg
[Errno 13] Permission denied: '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble_universe_cnf_Commands-amd64': Command to delete /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble_universe_cnf_Commands-amd64
[Errno 13] Permission denied: '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble-updates_restricted_binary-i386_Packages': Command to delete /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble-updates_restricted_binary-i386_Packages
[Errno 13] Permission denied: '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble-backports_universe_cnf_Commands-amd64': Command to delete /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble-backports_universe_cnf_Commands-amd64
[Errno 13] Permission denied: '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble-updates_universe_cnf_Commands-amd64': Command to delete /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble-updates_universe_cnf_Commands-amd64
[Errno 13] Permission denied: '/var/lib/apt/lists/packages.linuxmint.com_dists_zena_main_binary-amd64_Packages': Command to delete /var/lib/apt/lists/packages.linuxmint.com_dists_zena_main_binary-amd64_Packages
[Errno 13] Permission denied: '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble_restricted_binary-amd64_Packages': Command to delete /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble_restricted_binary-amd64_Packages
[Errno 13] Permission denied: '/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_noble-security_multiverse_binary-i386_Packages': Command to delete /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_noble-security_multiverse_binary-i386_Packages
[Errno 13] Permission denied: '/var/lib/apt/lists/packages.linuxmint.com_dists_zena_upstream_binary-i386_Packages': Command to delete /var/lib/apt/lists/packages.linuxmint.com_dists_zena_upstream_binary-i386_Packages
[Errno 13] Permission denied: '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble-updates_universe_binary-amd64_Packages': Command to delete /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble-updates_universe_binary-amd64_Packages
[Errno 13] Permission denied: '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble-backports_multiverse_cnf_Commands-amd64': Command to delete /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble-backports_multiverse_cnf_Commands-amd64
[Errno 13] Permission denied: '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble_main_cnf_Commands-amd64': Command to delete /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble_main_cnf_Commands-amd64
[Errno 13] Permission denied: '/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_noble-security_multiverse_i18n_Translation-en': Command to delete /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_noble-security_multiverse_i18n_Translation-en
[Errno 13] Permission denied: '/var/lib/apt/lists/packages.linuxmint.com_dists_zena_Release': Command to delete /var/lib/apt/lists/packages.linuxmint.com_dists_zena_Release
[Errno 13] Permission denied: '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble_main_binary-amd64_Packages': Command to delete /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble_main_binary-amd64_Packages
[Errno 13] Permission denied: '/var/lib/apt/lists/packages.linuxmint.com_dists_zena_import_binary-i386_Packages': Command to delete /var/lib/apt/lists/packages.linuxmint.com_dists_zena_import_binary-i386_Packages
[Errno 13] Permission denied: '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble_restricted_i18n_Translation-en': Command to delete /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble_restricted_i18n_Translation-en
[Errno 13] Permission denied: '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble-updates_restricted_i18n_Translation-en': Command to delete /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble-updates_restricted_i18n_Translation-en
[Errno 13] Permission denied: '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble_multiverse_cnf_Commands-amd64': Command to delete /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble_multiverse_cnf_Commands-amd64

I have been using BleacBit for years

OK, that is helpful. There are permission denied errors related to cleaning the general system (not specific to your user profile).

  1. Open BleachBit
  2. Click the hamburger (application) menu
  3. Click System Information
  4. Look for lines that look like this.

Does it look like this?

os.getenv(LOGNAME) = palladini
os.getenv(USER) = palladini
os.getenv(SUDO_UID) = None

Or does it look more like this?

os.getenv(LOGNAME) = root
os.getenv(USER) = root
os.getenv(SUDO_UID) = 1000

---
Andrew, lead developer