Score:0

Operating system maintenance and bug fixes

fk flag

I have installed Ubuntu 22.04 LTS on my PC for a few days. Since I have the main purpose for which I did it is both for university and personal reasons (I want to learn as much as possible about Linux in general) I will go often and willingly to install packages/repositories/applications etc... and this can lead to some instability/incompatibility or worse, a system crash... To avoid having to format the hard disk from scratch again and reinstall Ubuntu, is there a way to check that the system doesn't get corrupted? I already use time-shift but I would also like to use some tools that help me maintain the integrity of the OS, like SFC /SCANNOW which is used on windows and other terminal commands. Thank you all!

Score:0
ca flag

A short answer to this:

  1. Do not install by other means than apt
    (different tools: dpkg, aptitude, synaptic - also uses the same .deb files).
    OR possibly snap (a big disklike from me).
    These are almost(?) always, easy and clean to remove:
    sudo apt purge package-name or sudo snap remove package-name.
  2. default settings at least up to Ubuntu 20.04 may allow e.g. /boot to fill up completely,
    look for installed kernel items, as shown by dpkg --list | grep -E ^ii.*kernel -
    do sudo apt purge package-name on those you will not ever use.
  3. do sudo apt update && sudo apt upgrade periodically, unless you have enabled automatic updates.

And one more thing: Avoid "updating" Python, it will bring havoc to your Ubuntu - unless it is provided via an update, or you know exactly how to avoid havoc: generally; "expert" knowledge required.

Score:0
cn flag

Do your experimenting in a virtual machine, so their inevitable meltdowns don't affect your Host OS.

Several VM applications are in the Ubuntu repositories. Try any of them.

Score:0
sa flag

There is no general way to check that Ubuntu doesn't get corrupted because there are too many possible ways to corrupt it. The real problem is how to prevent Ubuntu from getting corrupted in the first place by engaging in proper package management practices. Ubuntu has two reliable sources of software installed by default, apt and snap. All the other software sources including PPAs, downloading software from the internet, and compiling software from source code are less reliable and sources of potential package management errors.

Other methods of preventing package management errors include running Python applications inside a virtual Python environment, running untrusted software inside an Ubuntu guest OS in a virtual machine, and using the --simulate option of apt to simulate the installation or removal of a package without actually installing or removing it. A detailed explanation of the --simulate option of apt in action is given in this answer.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.