Results 1 to 2 of 2

Thread: Update Manager Wants To Update Held Back Locally Built Package

  1. #1
    Join Date
    Nov 2011
    Beans
    1,564
    Distro
    Ubuntu 14.10 Utopic Unicorn

    Update Manager Wants To Update Held Back Locally Built Package

    Update Manager wants to update a locally built version of a package in the Ubuntu repositories. I built the package locally to add features I need. I suppressed updates via "echo 'MyPackage hold' | sudo dpkg --set-selections"

    As expected, a "sudo apt-get update && sudo apt-get upgrade" shows the package is held back.

    Update Manager, however, constantly indicates an update is available, and that the repository version of my package is the one needing updating.

    Can I convince Software Update to stop being annoying and just pretend this package does not exist?

  2. #2
    Join Date
    May 2010
    Location
    Tewkesbury uk
    Beans
    7,916
    Distro
    Ubuntu Development Release

    Re: Update Manager Wants To Update Held Back Locally Built Package

    Hi

    Try using apt-mark

    Code:
    sudo apt-mark hold <package-name>
    Maybe update manager ignores dpkg. I don't know as i don't use it.

    EDIT:

    Then again i've just read this from the man page.
    hold
    hold is used to mark a package as held back, which will prevent the package from being automatically installed,
    upgraded or removed. The command is only a wrapper around dpkg --set-selections and the state is therefore maintained
    by dpkg(1) and not affected by the --file option.
    So ignore this advice.

    Have you tried to see whether it actually gets updated if you hit yes, as you can always put it back ?

    Kind regards
    Last edited by matt_symes; February 26th, 2013 at 08:20 PM.
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

Tags for this Thread

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
  •