Error message

Forums: 

OS: Linux Mint 19.1

What happened here:
Error message:


Error in execution of
Traceback (most recent call last):
File "/usr/share/bleachbit/bleachbit/Worker.py", line 83, in execute
for ret in cmd.execute(self.really_delete):
File "/usr/share/bleachbit/bleachbit/Command.py", line 138, in execute
func_ret = self.func()
File "/usr/share/bleachbit/bleachbit/Unix.py", line 618, in apt_autoclean
raise RuntimeError("Error calling '%s':\n%s" % (' '.join(e.cmd), e.output))
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 in execution of
Traceback (most recent call last):
File "/usr/share/bleachbit/bleachbit/Worker.py", line 83, in execute
for ret in cmd.execute(self.really_delete):
File "/usr/share/bleachbit/bleachbit/Command.py", line 138, in execute
func_ret = self.func()
File "/usr/share/bleachbit/bleachbit/Unix.py", line 610, in apt_autoremove
raise RuntimeError("Error calling '%s':\n%s" % (' '.join(e.cmd), e.output))
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 in execution of
Traceback (most recent call last):
File "/usr/share/bleachbit/bleachbit/Worker.py", line 83, in execute
for ret in cmd.execute(self.really_delete):
File "/usr/share/bleachbit/bleachbit/Command.py", line 138, in execute
func_ret = self.func()
File "/usr/share/bleachbit/bleachbit/Unix.py", line 628, in apt_clean
(' '.join(e.cmd), e.output))
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: List directory /var/lib/apt/lists/partial is missing. - Acquire (13: Permission denied)

BleachBit version: 
2.0-2
Your operating system: 
Linux Mint 19.1

Noticed in another post to run a command:

nomko@MSI-GE70-2PE:~$ sudo stat /root/.cache/doc
[sudo] wachtwoord voor nomko:
stat: kan status van '/root/.cache/doc' niet opvragen: Bestand of map bestaat niet

It is in Dutch but is says it cannot request the status of /root/.cache/doc because file or folder does not exist.

When using BleachBit to clean APT, make sure you are running with root permissions. Typically there is a separate launcher icon, or you can use the sudo command. Let me know how it goes

---
Andrew, lead developer