Ubuntu Cleaner is a tool that makes it easy to clean your ubuntu system.

Related tags

ubuntu-cleaner
Overview

Ubuntu Cleaner

license Build Status Coverage Status

screenshot

Introduction

Ubuntu Cleaner is a tool that makes it easy to clean your Ubuntu system. Ubuntu Cleaner can free up disk space and remove private information from your computer.

  • Clear browser cache
  • Clear APT cache
  • Clear thumbnail cache
  • Remove unneeded packages
  • Remove old kernels
  • Remove old installers

Installation

Installation via PPA:

$ sudo apt install software-properties-common
$ sudo add-apt-repository ppa:gerardpuig/ppa
$ sudo apt update
$ sudo apt install ubuntu-cleaner

Installation via .DEB (for unsupported Ubuntu versions only):

$ wget https://launchpad.net/~gerardpuig/+archive/ubuntu/ppa/+files/ubuntu-cleaner_1.0.4-1_all.deb
$ sudo apt install ./ubuntu-cleaner_1.0.4-1_all.deb
$ rm ubuntu-cleaner_1.0.4-1_all.deb

Development

$ git clone https://github.com/gerardpuig/ubuntu-cleaner.git

To run the program from source:

$ ./ubuntu-cleaner

To run the unit tests:

$ make test

To create a .deb package:

$ make deb
$ make clean

Related websites

Issues
  • Unmet dependency issue while installing on ubuntu 19.10

    Unmet dependency issue while installing on ubuntu 19.10

    I was installing ubuntu-cleaner using following command

    1. sudo apt install software-properties-common
    2. sudo add-apt-repository ppa:gerardpuig/ppa
    3. sudo apt update
    4. sudo apt install ubuntu-cleaner But in 4th command i got an error ERROR: Reading package lists... Done Building dependency tree
      Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

    The following packages have unmet dependencies: ubuntu-cleaner : Depends: python-aptdaemon but it is not installable Depends: python-aptdaemon.gtk3widgets but it is not installable E: Unable to correct problems, you have held broken packages.

    opened by ratinggorilla 12
  • Cleaning cruft for

    Cleaning cruft for "Package Configs" gets stuck

    Hi @gerardpuig,

    I have installed Ubuntu Cleaner 1.1.2 on Ubuntu 20.04. This application gets stuck on Cleaning cruft for "Package Configs" every time there is something to clean in this section.

    image

    This issue doesn't exist in Ubuntu Cleaner 1.0.4 installed on Ubuntu 18.04.

    opened by jqadev 10
  • Package Configs cleaning issue

    Package Configs cleaning issue

    Hi,

    When cleaning "Package Configs", the app hangs forever and only delete one by one, you have to close and open the application for each package.

    Ubuntu 20.04 LTS 64bit

    Thanks!

    ubuntu-cleaner-bug

    opened by MrAnon-dev 5
  • Build fails?

    Build fails?

    When I try running sudo python setup.py install in my Ubuntu 17.10 computer, it complains that it "cannot find the dependencies in the PyPi repository." However, I have installed all of the exact dependencies through apt.

    setup.py needs to be tweaked to discover local packages, as the packages are GNU+Linux/Gtk+ specific and will never be available on PyPi.

    opened by jwinnie 4
  • Fails to launch

    Fails to launch

    I am on lubuntu 18.04.4 and its fully up to date but ubuntu cleaner fails to launch when I try to launch it from term there is a error

      from gi.repository import GObject, Gdk, Gtk, Gio
    /usr/bin/ubuntu-cleaner:11: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
      from gi.repository import GObject, Gdk, Gtk, Gio
    Traceback (most recent call last):
      File "/usr/bin/ubuntu-cleaner", line 15, in <module>
        from ubuntucleaner.settings.debug import enable_debugging
      File "/usr/lib/python2.7/dist-packages/ubuntucleaner/settings/debug.py", line 6, in <module>
        from gi.repository import Gtk, Gdk, Notify
    ImportError: cannot import name Notify
    

    yes I tried sudo -H pip install notify and it still not fix the issue

    opened by RaspberryKitty1 3
  • Erro with python dependencies

    Erro with python dependencies

    Hi.

    When I try execute this command. I get the error. Can you help-me?

    sudo apt-get update && sudo apt-get install ubuntu-cleaner
    

    Error:

    Atingido:1 https://download.docker.com/linux/ubuntu xenial InRelease
    Atingido:2 https://repo.skype.com/deb stable InRelease                         
    Ign:3 http://dl.google.com/linux/chrome/deb stable InRelease                   
    Atingido:4 http://dl.google.com/linux/chrome/deb stable Release                
    Atingido:6 http://ppa.launchpad.net/gerardpuig/ppa/ubuntu xenial InRelease     
    Atingido:7 http://archive.ubuntu.com/ubuntu xenial InRelease                   
    Atingido:8 http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu xenial InRelease
    Atingido:9 https://releases.wikimedia.org/debian jessie-mediawiki InRelease    
    Atingido:10 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial InRelease    
    Atingido:11 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease        
    Atingido:12 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease  
    Atingido:13 http://repository.spotify.com stable InRelease  
    Atingido:14 https://packages.microsoft.com/ubuntu/16.04/prod xenial InRelease
    Atingido:15 https://packages.microsoft.com/ubuntu/16.04/mssql-server xenial InRelease
    Lendo listas de pacotes... Pronto
    Lendo listas de pacotes... Pronto
    Construindo árvore de dependências       
    Lendo informação de estado... Pronto
    Alguns pacotes não puderam ser instalados. Isto pode significar que
    você solicitou uma situação impossível ou, se você está usando a
    distribuição instável, que alguns pacotes requeridos não foram
    criados ainda ou foram retirados da "Incoming".
    A informação a seguir pode ajudar a resolver a situação:
    
    Os pacotes a seguir têm dependências desencontradas:
     ubuntu-cleaner : Depende: python-lxml mas não é instalável
                      Depende: python-dbus mas não é instalável
                      Depende: python-aptdaemon mas não será instalado
                      Depende: python-aptdaemon.gtk3widgets mas não será instalado
    E: Impossível corrigir problemas, você manteve (hold) pacotes quebrados.
    
    sudo apt-get install python
    
    Lendo listas de pacotes... Pronto
    Construindo árvore de dependências       
    Lendo informação de estado... Pronto
    python is already the newest version (2.7.11-1).
    0 pacotes atualizados, 0 pacotes novos instalados, 0 a serem removidos e 1 não atualizados.
    
    opened by emalherbi 3
  • elementaryOS AppCenter

    elementaryOS AppCenter

    It would be great if this app were uploaded to the elementaryOS AppCenter.

    Steps:

    • Add necessary metadata
    • Test support for elementaryOS
    opened by jwinnie 3
  • Translations

    Translations

    Hello, will translation support be supported through pot files?

    opened by el-dias 2
  • Recommendation:  AppImage

    Recommendation: AppImage

    Commendable effort to make life easier for the non-commandline folks.

    Do yourself a favor and create an AppImage of your software. No more hassle with dependencies and no installation issues (one file you run from wherever you want) etc etc.

    Good luck and keep up the good work!

    opened by JaxxArmstrong 2
  • no support for Ubuntu vivid?

    no support for Ubuntu vivid?

    Hello,

    added your repo to my sources.list, but no possibility to install ubuntu-cleaner on Ubuntu 15.04. Will it be supported/ maintained for 15.04 aswell or can you explain what files I need to build & test it?

    Best,

    Bogotrax

    Edit: found the.deb file under http://ubuntu-cleaner.blogspot.de/; Thanks for providing that program!

    opened by Bogotrax 2
  • Cleaner cannot sustain to clean more than 1200 apt

    Cleaner cannot sustain to clean more than 1200 apt

    Hello

    Appreicate your work in bringing up the tool The cleaner closes down once it reaches the apt cache for more than 1200 plus apt packages.

    Can you please increase the buffer so that a max of say 5000 packages can be cleaned?

    Thanks Sanjay Mahajan

    CIAO

    opened by sanjaygeeky 0
  • Not recognized mozilla firefox cache

    Not recognized mozilla firefox cache

    Hello, ubuntu-cleaner do not clean mozilla firefox cache! Version of cleaner is latest, ubuntu is 20.10, firefox 83.

    opened by ilianiron 2
  • Does it remove unwanted localisation files?

    Does it remove unwanted localisation files?

    In Bleachbit, I can select the languages I need, it will delete the rest. For example: after a clean install of Ubuntu 20.04, it removed lots of languages that I had never selected/used but came installed with applications or the OS itself. It saved hundreds of MBs.

    opened by zilexa 1
  • Runs with

    Runs with "Error" ????

    Ubunbtu 20.04 Remix Depin 64bit

    @Desktop:~$ ubuntu-cleaner /usr/lib/python3/dist-packages/ubuntucleaner/settings/debug.py:7: PyGIWarning: Notify was imported without specifying a version first. Use gi.require_version('Notify', '0.7') before import to ensure that the right version gets loaded. from gi.repository import Gdk, Gtk, Notify /usr/bin/ubuntu-cleaner:70: DeprecationWarning: Gdk.threads_init is deprecated Gdk.threads_init() /usr/bin/ubuntu-cleaner:71: PyGIDeprecationWarning: Since version 3.11, calling threads_init is no longer needed. See: https://wiki.gnome.org/PyGObject/Threading GObject.threads_init() [utils.icon][ERROR] guess_from_path failed: 'utf-8' codec can't decode byte 0xfd in position 132: invalid start byte (icon.py:108) [utils.icon][ERROR] guess_from_path failed: 'utf-8' codec can't decode byte 0xfd in position 132: invalid start byte (icon.py:108)

    Did it work? It said "I was cool" but errors??? Also does not show-up in my software list ... run from terminal only?

    opened by mr466 1
  • Kernels not being removed

    Kernels not being removed

    I started to notice a little while ago that old kernels are not being cleaned. I just upgraded the kernel, rebooted and ran Ubuntu Cleaner to flush stuff out and leave me with the one kernel that I am running. It goes through the motions of removing packages and the like, but the kernel files are still there.

    config-4.15.0-109-generic      memtest86+.elf
    config-4.15.0-111-generic      memtest86+_multiboot.bin
    grub                           System.map-4.15.0-109-generic
    initrd.img-4.15.0-109-generic  System.map-4.15.0-111-generic
    initrd.img-4.15.0-111-generic  vmlinuz-4.15.0-109-generic
    memtest86+.bin                 vmlinuz-4.15.0-111-generic
    

    It's been like this for a while. I have to go into Synaptic and remove them manually.

    I'm running this on Linux Mint 19.3 (the Ubuntu-based variant) so there may be some incompatibility of course.

    Any ideas?

    opened by skelband 1
  • Python traceback on CLI execution

    Python traceback on CLI execution

    FWIW, I'm using Kubuntu 20.04 LTS

    ~/tmp$ sudo ubuntu-cleaner /usr/lib/python3/dist-packages/ubuntucleaner/settings/debug.py:7: PyGIWarning: Notify was imported without specifying a version first. Use gi.require_version('Notify', '0.7') before import to ensure that the right version gets loaded. from gi.repository import Gdk, Gtk, Notify /usr/bin/ubuntu-cleaner:70: DeprecationWarning: Gdk.threads_init is deprecated Gdk.threads_init() /usr/bin/ubuntu-cleaner:71: PyGIDeprecationWarning: Since version 3.11, calling threads_init is no longer needed. See: https://wiki.gnome.org/PyGObject/Threading GObject.threads_init() [utils.icon][WARNING] gtk-icon-theme-error-quark: Icon 'computerjanitor' not present in theme Yaru (0) (icon.py:33) [utils.icon][WARNING] gtk-icon-theme-error-quark: Icon 'gnome-app-install' not present in theme Yaru (0) (icon.py:33) Traceback (most recent call last): File "/usr/lib/python3/dist-packages/ubuntucleaner/janitor/init.py", line 447, in on_janitor_check_button_toggled self._auto_scan_cruft(iter, checked) File "/usr/lib/python3/dist-packages/ubuntucleaner/janitor/init.py", line 538, in _auto_scan_cruft self.do_scan_task() File "/usr/lib/python3/dist-packages/ubuntucleaner/janitor/init.py", line 544, in do_scan_task plugin.set_property('scan_finished', False) AttributeError: 'NoneType' object has no attribute 'set_property'

    $ sudo apt install software-properties-common $ sudo add-apt-repository ppa:gerardpuig/ppa $ sudo apt update #Note: This is redundant from 18.04 update. Adding a repository does it >automatically now $ sudo apt install ubuntu-cleaner

    (cruft removed) Selecting previously unselected package gir1.2-vte-2.91:amd64. (Reading database ... 389408 files and directories currently installed.) Preparing to unpack .../0-gir1.2-vte-2.91_0.60.1-1ubuntu1_amd64.deb ... Unpacking gir1.2-vte-2.91:amd64 (0.60.1-1ubuntu1) ... Selecting previously unselected package aptdaemon. Preparing to unpack .../1-aptdaemon_1.1.1+bzr982-0ubuntu32.1_all.deb ... Unpacking aptdaemon (1.1.1+bzr982-0ubuntu32.1) ... Selecting previously unselected package python3-defer. Preparing to unpack .../2-python3-defer_1.0.6-2.1_all.deb ... Unpacking python3-defer (1.0.6-2.1) ... Selecting previously unselected package python3-aptdaemon. Preparing to unpack .../3-python3-aptdaemon_1.1.1+bzr982-0ubuntu32.1_all.deb ... Unpacking python3-aptdaemon (1.1.1+bzr982-0ubuntu32.1) ... Selecting previously unselected package aptdaemon-data. Preparing to unpack .../4-aptdaemon-data_1.1.1+bzr982-0ubuntu32.1_all.deb ... Unpacking aptdaemon-data (1.1.1+bzr982-0ubuntu32.1) ... Selecting previously unselected package python3-aptdaemon.gtk3widgets. Preparing to unpack .../5-python3-aptdaemon.gtk3widgets_1.1.1+bzr982-0ubuntu32.1_all.deb ... Unpacking python3-aptdaemon.gtk3widgets (1.1.1+bzr982-0ubuntu32.1) ... Selecting previously unselected package ubuntu-cleaner. Preparing to unpack .../6-ubuntu-cleaner_1.1.3-1_all.deb ... Unpacking ubuntu-cleaner (1.1.3-1) ... Setting up python3-defer (1.0.6-2.1) ... Setting up aptdaemon-data (1.1.1+bzr982-0ubuntu32.1) ... Setting up gir1.2-vte-2.91:amd64 (0.60.1-1ubuntu1) ... Setting up aptdaemon (1.1.1+bzr982-0ubuntu32.1) ... Setting up python3-aptdaemon (1.1.1+bzr982-0ubuntu32.1) ... Setting up python3-aptdaemon.gtk3widgets (1.1.1+bzr982-0ubuntu32.1) ... Setting up ubuntu-cleaner (1.1.3-1) ... Processing triggers for man-db (2.9.1-1) ... Processing triggers for dbus (1.12.16-2ubuntu2) ... Processing triggers for desktop-file-utils (0.24-1ubuntu3) ... Processing triggers for mime-support (3.64ubuntu1) ... Processing triggers for hicolor-icon-theme (0.17-2) ...

    opened by dougglenn 0
  • Apt Cache very slow

    Apt Cache very slow

    If there are hundreds of files in the Apt Cache, then the clean up of files are extremely slow. My suspicion is that the problem is related to the application list management itself rather the process of deleting the files.

    The process speeds up as the list size is decreased until it is very rapid when there are only a few files remaining.

    In my case, I have just done a system upgrade and there are more then 2000 files. The deletion starts of at a rate of 1 file per more than 2 seconds.

    opened by skelband 1
  • Run via sh

    Run via sh

    Is it possible to run this application using terminal? I need something like this to do periodic maintenance to my server.

    opened by dantebarba 1
  • Add option to cleanup Downloads folder in home directory

    Add option to cleanup Downloads folder in home directory

    Will be good to add option for cleanup Downloads folder in home directory, remove files older than xx days (30 by default).

    opened by MurzNN 0
  • Chrome Cache - More complete clean with multiple profiles

    Chrome Cache - More complete clean with multiple profiles

    In Linux, when Chrome has multiple profiles, inside /home/(user)/.cache/google-chrome/ there are multiple folders that need to be deleted as well, with names Profile 1, Profile 2, Profile 3 and so on.

    opened by paulocoghi 0
Owner
Gerard Puig
Gerard Puig
BleachBit system cleaner for Windows and Linux

BleachBit BleachBit cleans files to free disk space and to maintain privacy. Running from source To run BleachBit without installation, unpack the tar

null 1.2k Jun 5, 2021
Personal CRM. Remember everything about your friends, family and business relationships.

Personal Relationship Manager Monica is a great open source personal relationship management system. Introduction Purpose Features Who is it for? What

Monica 12.9k Jun 6, 2021
Easy to use and Free Multimedia Converter for Linux.

Curlew Multimedia Converter: ---------------------------- Description: ------------ Easy to use, Free and Open-Source Multimedia converter for Linux

Faissal Chamekh 64 Dec 7, 2020
Graphical program used to map keyboard buttons and mouse controls to a gamepad. Useful for playing games with no gamepad support

antimicro ?? Important update ?? This repo is currently unmaintained. The code hasn't been updated for a while. But not all is lost, antimicro has a f

null 1.4k Jun 5, 2021
Read-only mirror of https://gitlab.gnome.org/GNOME/gparted

GPARTED ======= Gparted is the GNOME Partition Editor for creating, reorganizing, and deleting disk partitions. A hard disk is usually subdivided int

GNOME Github Mirror 169 Jun 6, 2021
AlertHub is a simple tool written with NodeJS to get alerted from new GitHub and GitLab repository events.

AlertHub _ _ _ _ /_\ | | ___ _ __| |_ /\ /\_ _| |__ //_\\| |/ _ \ '__| __|/ /_/ / | | | '_ \ / _ \ | __/ | |

Arda Kılıçdağı 96 Jun 3, 2021
Open source back-end server for web, mobile and IoT. The backend for busy developers. (self-hosted or hosted)

A scalable, multitenant backend for the cloud. Para is a scalable, multitenant backend server/framework for object persistence and retrieval. It helps

Erudika 395 May 26, 2021
🔥 Open source static (serverless) status page. Uses hyperfast Go & Hugo, minimal HTML/CSS/JS, customizable, outstanding browser support (IE8+), preloaded CMS, read-only API, badges & more.

Über fast, backwards compatible (IE8+), tiny, and simple status page built with Hugo. Completely free with Netlify. Comes with Netlify CMS, read-only

cState 1.3k Jun 5, 2021
Research the web for relevant sources, save them to CrushPaper and then combine them with your own insights into an article.

What is CrushPaper? CrushPaper is for students, writers and anyone who writes papers, essays or articles and quotes their sources. Easily research the

Zap Blasterson 60 Jan 19, 2021
The Linux PowerTOP tool -- please post patches to the mailing list instead of using github pull requests

PowerTOP PowerTOP is a Linux* tool used to diagnose issues with power consumption and power management. In addition to being a diagnostic tool, PowerT

Arjan van de Ven 499 May 31, 2021
Open source API management platform

About Fusio is an open source API management platform which helps to build and manage REST APIs. Fusio provides all tools to quickly build an API from

Apioo 970 Jun 5, 2021
Linux System Optimizer and Monitoring - https://oguzhaninan.github.io/Stacer-Web

Linux System Optimizer and Monitoring Sponsors Reviews Required Packages curl, systemd PPA Repository (for ubuntu) sudo add-apt-repository ppa:oguzhan

Oguzhan Inan 7k Jun 6, 2021
TMSU lets you tags your files and then access them through a nifty virtual filesystem from any other application.

Overview TMSU is a tool for tagging your files. It provides a simple command-line utility for applying tags and a virtual filesystem to give you a tag

Paul Ruane 1.5k Jun 1, 2021