Announcement

Collapse
No announcement yet.

How do I cancel an update / upgrade in CLI?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How do I cancel an update / upgrade in CLI?

    I know that in Adept or Synaptic there's some Cancel button that may allow you to cancel a download / installation / update, but how can I do the same thing while using apt-get on Konsole?
    Multibooting: Kubuntu Noble 24.04
    Before: Jammy 22.04, Focal 20.04, Precise 12.04 Xenial 16.04 and Bionic 18.04
    Win XP, 7 & 10 sadly
    Using Linux since June, 2008

    #2
    Re: How do I cancel an update / upgrade in CLI?

    Ctl-c

    Comment


      #3
      Re: How do I cancel an update / upgrade in CLI?

      Originally posted by mando_hacker
      Ctl-c
      On the download phase that would stop the update/upgrade. But, once the packages are being installed interrupting the process could leave your distro/desktop in a mixed, unstable state.
      "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
      – John F. Kennedy, February 26, 1962.

      Comment


        #4
        Re: How do I cancel an update / upgrade in CLI?

        You are right about that. It is better to think before you start. It is almost certainly true, though, that dpkg --configure -a will straighten out most of those problems and aptitude install will fix any leftovers.

        Comment


          #5
          Re: How do I cancel an update / upgrade in CLI?

          Originally posted by mando_hacker
          You are right about that. It is better to think before you start. It is almost certainly true, though, that dpkg --configure -a will straighten out most of those problems and aptitude install will fix any leftovers.
          Really? "--configure -a" will work only on unpacked but unconfigured packages.
          --configure package...|-a|--pending
          Reconfigure an unpacked package. If -a or --pending is given instead of package, all unpacked but
          unconfigured packages are configured.

          Configuring consists of the following steps:

          1. Unpack the configuration files, and at the same time back up the old configuration files, so that
          they can be restored if something goes wrong.

          2. Run postinst script, if provided by the package.
          That would usually be only one or a few packages. In an update like some of the recent ones, where 65 or 95 packages are being updated at once, using Ctl-C inn the middle of that would be a total mess. About the only way to clear it would be to "untask" the current desktop, task a prior version, and then retask the current one. Reinstalling would be an option IF the release was recent and 800MB of updated didn't have to be installed.
          "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
          – John F. Kennedy, February 26, 1962.

          Comment


            #6
            Re: How do I cancel an update / upgrade in CLI?

            What do you mean "untask the current desktop".

            The packages do install a few at a time. If you stop it while it is installing something (admittedly taking a chance) a package or two will be left in a partial state and dpkg --configure -a will take care of those. Others will not be installed but dpkg will know what is and what is not installed. You will still be able to run a full-upgrade at any time and pick up where you left off. It is true that you might find yourself with a package that is installed and something it depends on is not installed but "aptitude install" should fix that even without an upgrade. It will certainly not be necessary to uninstall and reinstall your whole system. If a package did require reinstalling you could so it simply with "aptitude reinstall package".

            Comment


              #7
              Re: How do I cancel an update / upgrade in CLI?

              Some repositories contains "task-xxx", a link which contains all the necessary sublinks to fully add or remove a package OR a desktop. Unfortunately, JJ's repository doesn't have those.

              "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
              – John F. Kennedy, February 26, 1962.

              Comment


                #8
                Re: How do I cancel an update / upgrade in CLI?

                If you are talking about tasksel it is in Jaunty.

                Comment


                  #9
                  Re: How do I cancel an update / upgrade in CLI?

                  Originally posted by mando_hacker
                  If you are talking about tasksel it is in Jaunty.
                  That's the puppy!

                  In Mandriva they have "task-kde3" and "task-kde4" for switching between those two desktops. Apparently, "tasksel" does the same thing. That's nice to know.
                  "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                  – John F. Kennedy, February 26, 1962.

                  Comment

                  Working...
                  X