Results 1 to 10 of 10

Thread: I've managed to lock up the terminal

  1. #1
    Join Date
    May 2007
    Location
    Santa Fe, New Mexico
    Beans
    44
    Distro
    Ubuntu 20.04 Focal Fossa

    I've managed to lock up the terminal

    My terminal is being held by an apt-get command and is doing nothing. All I was doing was installing the restricted extras on my new system. I'm using 20.04.3. How do I kill the process? BTW I am just getting back into Ubuntu after years and years. Consider me a newbie again.
    Attached Images Attached Images

  2. #2
    Join Date
    Jun 2016
    Beans
    2,831
    Distro
    Xubuntu

    Re: I've managed to lock up the terminal

    Probably not a good idea to kill it.

    If you have gnome-system-monitor installed you should be able to use that to at least see the process: select "All Processes" (and check "Show Dependencies" so you can see what is running this apt-get).

    Do you have unattended-upgrades installed?
    Xubuntu 22.04, ArchLinux ♦ System76 hardware, virt-manager/KVM, VirtualBox
    When your questions are resolved to your satisfaction, please use Thread Tools > "Mark this thread as solved..."

  3. #3
    Join Date
    May 2007
    Location
    Santa Fe, New Mexico
    Beans
    44
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: I've managed to lock up the terminal

    unattended-upgrades is not installed.

  4. #4
    Join Date
    Jun 2016
    Beans
    2,831
    Distro
    Xubuntu

    Re: I've managed to lock up the terminal

    So what does System Monitor show as the parent process for this rogue apt-get ?

    Does the rogue apt-get have any child processes?
    Xubuntu 22.04, ArchLinux ♦ System76 hardware, virt-manager/KVM, VirtualBox
    When your questions are resolved to your satisfaction, please use Thread Tools > "Mark this thread as solved..."

  5. #5
    Join Date
    May 2007
    Location
    Santa Fe, New Mexico
    Beans
    44
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: I've managed to lock up the terminal

    I have no clue which of the hundred processes the system monitor is showing me is the culprit. I was downloading and installing the Ubuntu extras when the process was interrupted. Here is another screenshot showing the point of the apt-get lock. If I remeember correctly, these are the MS fonts. Sorry, think of me as a newbie.
    Attached Images Attached Images

  6. #6
    Join Date
    Aug 2011
    Location
    52.5° N 6.4° E
    Beans
    6,821
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: I've managed to lock up the terminal

    If apt-get is installing Microsoft fonts and appears to be doing nothing, it's probably displaying a license agreement and waiting for you to accept it. It's a classic text based menu. You can interact with it using the keyboard. Try the arrow keys or tab to select a button, hit enter to push it.

    If you already killed the apt-get process (by closing the terminal, or by rebooting), the lock may be dangling. In that case it should be safe to manually remove it. Then installation of the package must be completed with
    Code:
    sudo apt install -f

  7. #7
    Join Date
    May 2007
    Location
    Santa Fe, New Mexico
    Beans
    44
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: I've managed to lock up the terminal

    And to manually remove it?

  8. #8
    Join Date
    Oct 2005
    Location
    Lab, Slovakia
    Beans
    10,791

    Re: I've managed to lock up the terminal

    Open another terminal, find the name of the beast and hang it up:
    $ top
    # sudo kill -SIGHUP PID

    It doesn’t matter if you kill the ‘wrong’ thing. You can always reboot.

  9. #9
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: I've managed to lock up the terminal

    If the Microsoft font package is the one causing this problem you may find it easier to use synaptic package manager to install them as it does provide a GUI for agreeing to the license.

    A reboot before doing this should ensure that you can continue with this process if you can't continue with it straight away.

  10. #10
    Join Date
    May 2007
    Location
    Santa Fe, New Mexico
    Beans
    44
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: I've managed to lock up the terminal

    Thank you, everyone. I have the terminal back and synaptic made installing the MS fonts a breeze, so it looks as if I'm good to go. I appreciate all the help -- and trust me, I need all the help I can get here.

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
  •