Resetter
Clean Slate
If you have totally messed up your Debian, Ubuntu, Linux Mint, elementary OS, or Linux Deepin, you can simply reset with Resetter.
In case of a broken system, beginners tend to grab a DVD or a USB stick and reinstall the system. This is fast, they think – and the thinking here is not wrong. But you do not have to resort to this anymore, thanks to Resetter [1]. Under the hood, Resetter is a Python script that supports resetting to the default installation for some distributions, much like the procedure for smartphones.
Resetter's way of working is quite simple: Using the appropriate manifest list, the tool determines which packages were originally installed (and in which versions) when the operating system was installed. Resetter will remove anything that does not match and reinstall the default packages according to the manifest. Besides two reset modes, the software offers another possibility to search Personal Package Archives (PPAs) directly in Launchpad and install them without any further manual work (via the Easy Install button).
Resetter reads the flags in Ubuntu, Linux Mint, and some other distributions to return to the state immediately after installation. The list of officially supported distributions includes the 64-bit versions of Debian 9.2 in the standard output with Gnome, Ubuntu from 14.04, Linux Mint from 17.3, elementary OS from 0.4, and Linux Deepin from 15.4.
I thoroughly tested Resetter under Linux Mint 18.3 and the current Debian "Stretch." Under Ubuntu 17.10, I could not persuade the application to cooperate; under Ubuntu MATE 17.10, even the program terminated – with bad consequences.
Easy Installation
Resetter can be set up in a flash, especially for distributions where the gdebi package is available. gdebi installs DEB packages and their dependencies downloaded from the Internet. Debian itself uses the dpkg -i <Package>
command. However, since the command does not resolve any dependencies, you need to type apt -f install
here to complete the installation.
In practice, you would usually download the two add-apt-key and resetter Debian packages directly from GitHub [2]. If necessary, set up gdebi via the package manager, and then finally use it to install the two DEBs (Listing 1). Resetter is then ready for initial use.
Listing 1
Installing the DEB Packages
$ sudo apt install gdebi $ sudo gdebi add-apt-key_1.0-0.5_all.deb $ sudo gdebi resetter_2.1.0-stable_all.deb
Before using the tool, make sure you back up, in case something goes wrong. Additionally, depending on the operating mode, Resetter may remove all user accounts and the corresponding home directories without being asked. Of course, these usually contain data that are still needed, such as browser profiles, manually customized package configurations, and the like.
Automatic or Controlled?
After starting Resetter, you will see a window with three buttons: Easy Install, Automatic Reset, and Custom Reset (Figure 1). I briefly described the function of the first button at the beginning; here, I am only interested in the main function of the program: resetting an installation. Resetter gives you the choice between an automatic and a user-controlled mode.
![](/var/linux_magazin/storage/images/issues/2018/211/resetter/figure-1/726602-1-eng-US/Figure-1_large.png)
Automatic Reset mercilessly removes all user accounts and their home directories. If you select this, a warning prompt appears, reminding you of what you are doing (Figure 2). If you approve, Resetter first shows a window with all packages to be removed. Here you can exclude packages (Figure 3). If you do not do so, the tool removes all applications installed by the users, including packages in Snap format. Then, it creates a default account and adds any packages removed from the default installation again.
Custom Reset gives you more control over the cleanup: You decide which user accounts, packages, and dependencies (Figure 4) Resetter should keep. If you want to keep user accounts and their home directories, use this mode. You can enter a username and password for the automatically created standard user. You can also instruct the tool to remove old kernels.
![](/var/linux_magazin/storage/images/issues/2018/211/resetter/figure-4/726611-1-eng-US/Figure-4_large.png)
Slightly Inconsistent
A system in our lab with the current Debian "Stretch," with both Gnome and the KDE Plasma desktop installed, had initial start-up problems. At program launch time, Resetter output two warnings that neither a manifest nor a user list could be found; I was told that I would have to select them; otherwise, the tool would not work. After clicking on OK, the normal start window appeared.
If you see one or both of these warnings, you will find a remedy in the File menu at the top of the application. Clicking on File reveals two menu items that refer to the error messages. Select the appropriate entry for your distribution from the two options, then click on one of the two reset variants, and the program starts. In a window, Resetter informs you where it is in the reset process and the overall progress (Figure 5). On Debian 9, it took less than five minutes to reset.
![](/var/linux_magazin/storage/images/issues/2018/211/resetter/figure-5/726614-1-eng-US/Figure-5_large.png)
At the end, another window appears telling you that Resetter has created a new user with the name default and reveals the corresponding password. The default username and password are always the same, no matter what distribution you use. You will want to create a new username with your own password immediately after a restart.
After a reboot, my Debian test system presented itself again with the standard Gnome desktop. Resetter also worked with Linux Mint 18.3 and initially with Ubuntu MATE 17.10. However, under Ubuntu MATE, the program came to a standstill at 99 percent, which led to a system that was no longer bootable to a graphical interface. Under Ubuntu 17.10, Resetter didn't even start – I only saw a blank window.
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
![Learn More](https://www.linux-magazine.com/var/linux_magazin/storage/images/media/linux-magazine-eng-us/images/misc/learn-more/834592-1-eng-US/Learn-More_medium.png)
News
-
NVIDIA Released Driver for Upcoming NVIDIA 560 GPU for Linux
Not only has NVIDIA released the driver for its upcoming CPU series, it's the first release that defaults to using open-source GPU kernel modules.
-
OpenMandriva Lx 24.07 Released
If you’re into rolling release Linux distributions, OpenMandriva ROME has a new snapshot with a new kernel.
-
Kernel 6.10 Available for General Usage
Linus Torvalds has released the 6.10 kernel and it includes significant performance increases for Intel Core hybrid systems and more.
-
TUXEDO Computers Releases InfinityBook Pro 14 Gen9 Laptop
Sporting either AMD or Intel CPUs, the TUXEDO InfinityBook Pro 14 is an extremely compact, lightweight, sturdy powerhouse.
-
Google Extends Support for Linux Kernels Used for Android
Because the LTS Linux kernel releases are so important to Android, Google has decided to extend the support period beyond that offered by the kernel development team.
-
Linux Mint 22 Stable Delayed
If you're anxious about getting your hands on the stable release of Linux Mint 22, it looks as if you're going to have to wait a bit longer.
-
Nitrux 3.5.1 Available for Install
The latest version of the immutable, systemd-free distribution includes an updated kernel and NVIDIA driver.
-
Debian 12.6 Released with Plenty of Bug Fixes and Updates
The sixth update to Debian "Bookworm" is all about security mitigations and making adjustments for some "serious problems."
-
Canonical Offers 12-Year LTS for Open Source Docker Images
Canonical is expanding its LTS offering to reach beyond the DEB packages with a new distro-less Docker image.
-
Plasma Desktop 6.1 Released with Several Enhancements
If you're a fan of Plasma Desktop, you should be excited about this new point release.