Results 1 to 5 of 5

Thread: Is there a list of commands to repair broken system components?

  1. #1
    Join Date
    Jan 2008
    Location
    Davison, Michigan, U.S.A.
    Beans
    1,097

    Is there a list of commands to repair broken system components?

    For instance, when my desktop is not operating properly I can open terminal and run "sudo apt-get install ubuntu-desktop". The reinstalls the desktop. Now what is my file browser is dysfunctional, or is "copy and paste" is not working, etc, etc.
    Is there a list of commands to repair all the various functions that can break, so I do not need to reinstall the whole system if something is not working properly.

  2. #2
    Join Date
    Aug 2011
    Location
    51.8° N 5.8° E
    Beans
    5,773
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Is there a list of commands to repair broken system components?

    No.

    sudo apt-get install ubuntu-desktop doesn't reinstall your desktop. It makes sure that the ubuntu-desktop package is installed. If it is (even if broken), it does nothing more. Else it will install ubuntu-desktop and all its dependencies (if missing). When your desktop is broken, it's because one of the dependencies of ubuntu-desktop is missing (installing ubuntu-desktop may fix it), broken (a reinstall of that package may fix it) or because there's something wrong with the configuration of the user (a new user will fix it). There are occasionally cases where something can be fixed by restarting some component.

    When something is broken, you have to find out why, then fix it. A dumb one-fix-for-all command would be very useful, but if it magically existed, the devs would put it in a shell script and run it automatically every day so that every problem is fixed automatically in a day and there would be no need for the Ubuntu forums.

  3. #3
    Join Date
    Jan 2008
    Location
    Davison, Michigan, U.S.A.
    Beans
    1,097

    Re: Is there a list of commands to repair broken system components?

    Well then, should my question be...How do you tell which dependencies are broken/missing when you have a malfunction?

  4. #4
    Join Date
    Feb 2010
    Location
    Obscurial Springs
    Beans
    14,601
    Distro
    Ubuntu Budgie Development Release

    Re: Is there a list of commands to repair broken system components?

    If there are problems with the package system you will see them in the the output of the following.
    Code:
    sudo apt update
    There may also suggestions to fix broken packages in the output.
    “Start where you are. Use what you have. Do what you can".

    Ubuntu Documentation Search: Popular Pages
    Ubuntu: Security Basics
    Ubuntu: Flavors

  5. #5
    Join Date
    Aug 2011
    Location
    51.8° N 5.8° E
    Beans
    5,773
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Is there a list of commands to repair broken system components?

    It requires the kind of detective work you get good at if you hang around enough at these forums. One trick: if you know a filename that's involved, dpkg can tell you the package name:
    Code:
    dpkg --search filename

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •