Results 1 to 7 of 7

Thread: I blocked an application from updating and it updated

  1. #1
    Join Date
    Dec 2010
    Beans
    114

    I blocked an application from updating and it updated

    First it was Synergy. I went to synaptic package manager an pick it. Then clicked package and lock version. But it updated and now because they are not the same they will not connect and it like I just installed it and have to set it up at every restart. Only have one mouse and keyboard make it even worse having to unplug them a few time to get it working.

    How do I lock it from ever updating. I thought I did it. It is red on the synaptic package manager so what did I do wrong?

    I have to keep them at 6.1 because my 2ed computer is not showing the 8.1 version and everything I've tried to update it fails. So I lock them both to 6.1 and now that has failed.
    and with this popup always showing up about a dozen time at once on 8.1 you can't get to the main setting till about 20 to 50 times clicking very fast.

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

    Re: I blocked an application from updating and it updated

    Instead of using Synaptic, try running this command in Terminal -
    Code:
    sudo apt-mark hold <package_name>
    replacing <package_name> with the actual name of the package you want to hold back.

    Refer to man apt-mark for more info
    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
    Dec 2010
    Beans
    114

    Re: I blocked an application from updating and it updated

    I want to make sure i get this right on the package "the cardboard looking box" it has this name.
    synergy_1.6.2-0ubuntu2_amd64.deb

    but in the synaptic it has the name 1.6.2-Oubunt

    and the file just reads synergy
    what one is the <name> I need?

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

    Re: I blocked an application from updating and it updated

    Probably "synergy"

    * To confirm, you could try running this -
    Code:
    dpkg-query -W | grep -i synergy
    it will show package name followed by version of all installed packages where name contains "synergy"
    Last edited by halogen2; January 21st, 2019 at 01:04 AM.
    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
    Dec 2010
    Beans
    114

    Re: I blocked an application from updating and it updated

    sudo apt-mark hold synergy 1.6.2-0ubuntu2
    synergy set on hold.
    E: Unable to locate package 1.6.2-0ubuntu2
    E: Couldn't find any package by glob '1.6.2-0ubuntu2'
    E: Couldn't find any package by regex '1.6.2-0ubuntu2'

    ok so does this look like it worked? one line reads "synergy on hold" but the next one reads unable to find. Augh!

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

    Re: I blocked an application from updating and it updated

    Looks like it worked. You can confirm by checking the output of this command -
    Code:
    apt-mark showhold
    The errors are because you also pasted the package version in the command, but it only takes package names, so it treated that as the name of a second package you wanted to set on hold.
    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..."

  7. #7
    Join Date
    Dec 2010
    Beans
    114

    Re: I blocked an application from updating and it updated

    Great it worked. Thank you!

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
  •