Announcement

Collapse
No announcement yet.

how to add exception to dist-upgrade (Solved)

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

    how to add exception to dist-upgrade (Solved)

    i have wicd installed.
    the latest version wicd 1.7 has issues connecting to wifi. but wicd 1.6 works very well with wifi.

    my fav way of upgrading is:
    Code:
    sudo apt-get update && sudo apt-get dist-upgrade
    but whenever i do that now.. this command tries to upgrade wicd.

    is there any way to stay on same older version of wicd and still use the command "dist-upgrade"
    asus A52N
    Dual boot: Kubuntu 11.10 64bit, Ubuntu 11.10 64bit
    AMD Athlon II 64 X2 | 4 GB DDR3 RAM | ATI Radeon HD 4200
    windoze free since 2009 12 16 (Vijay din= Victory day)

    #2
    Re: how to add exception to dist-upgrade

    > FAQ: Package Managers
    > Pinning version (How to keep specific versions of packages installed)
    Before you edit, BACKUP !

    Why there are dead links ?
    1. Thread: Please explain how to access old kubuntu forum posts
    2. Thread: Lost Information

    Comment


      #3
      Re: how to add exception to dist-upgrade

      awesome..
      @Rog131: thanks a lot..

      here is the example posted by rog which helped me..


      3.10 How to keep specific versions of packages installed (complex)
      http://www.debian.org/doc/manuals/ap....en.html#s-pin

      Note
      Not so complex.

      Example.
      I'm using dolphin 0.82 and i don't want to upgrade to the 0.92.

      Now:
      Code:
       sudo apt-get -s upgrade
      -s, --simulate, --just-print, --dry-run, --recon, --no-act
      No action; perform a simulation of events that would occur but do
      not actually change the system.
      =>
      There are three upgradeable packages:
      amarok amarok-xine dolphin
      Inst amarok-xine [2:1.4.7-0ubuntu3] (2:1.4.8-0ubuntu1~gutsy1 Ubuntu:7.10/gutsy-backports) []
      Inst amarok [2:1.4.7-0ubuntu3] (2:1.4.8-0ubuntu1~gutsy1 Ubuntu:7.10/gutsy-backports)
      Inst dolphin [0.8.2-1] (0.9.2-0ubuntu2 Ubuntu:7.10/gutsy)
      Conf amarok (2:1.4.8-0ubuntu1~gutsy1 Ubuntu:7.10/gutsy-backports)
      Conf amarok-xine (2:1.4.8-0ubuntu1~gutsy1 Ubuntu:7.10/gutsy-backports)
      Conf dolphin (0.9.2-0ubuntu2 Ubuntu:7.10/gutsy)
      But if i:
      Alt + F2 : kdesudo kate /etc/apt/preferences
      and put there:
      Package: dolphin
      Pin: version 0.8.2*
      Pin-Priority: 1001
      After this
      Code:
      sudo apt-get update
      and
      Code:
      sudo apt-get -s upgrade
      There are two upgradeable packages:
      amarok amarok-xine
      Inst amarok-xine [2:1.4.7-0ubuntu3] (2:1.4.8-0ubuntu1~gutsy1 Ubuntu:7.10/gutsy-backports) []
      Inst amarok [2:1.4.7-0ubuntu3] (2:1.4.8-0ubuntu1~gutsy1 Ubuntu:7.10/gutsy-backports)
      Conf amarok (2:1.4.8-0ubuntu1~gutsy1 Ubuntu:7.10/gutsy-backports)
      Conf amarok-xine (2:1.4.8-0ubuntu1~gutsy1 Ubuntu:7.10/gutsy-backports)
      asus A52N
      Dual boot: Kubuntu 11.10 64bit, Ubuntu 11.10 64bit
      AMD Athlon II 64 X2 | 4 GB DDR3 RAM | ATI Radeon HD 4200
      windoze free since 2009 12 16 (Vijay din= Victory day)

      Comment


        #4
        Re: how to add exception to dist-upgrade (Solved)

        It's much easier with Synaptic here
        Simply select the package for which you don't want to have the version changed from the list in Synaptic, then select "Package > Lock version" from the menu, and it won't be updated anymore.

        If you don't have Synaptic, install it with:
        sudo apt-get install synaptic
        Shinda Sekai Sensen<br /><br />Kubuntu Maverick RC x64 w/ Kde 4.5.2 (main)<br />Kubuntu 10.04 x64 w/ Kde 4.5.1 to be wiped, no point in keeping it any longer

        Comment


          #5
          Re: how to add exception to dist-upgrade (Solved)

          More links:

          > Apt-Pinning for Beginners
          > PinningHowto


          Apt-Pinning vs Synaptic Lock
          (synaptic for Debian 0.63.1)

          1)
          Code:
          sudo apt-get -s dist-upgrade
          The following packages will be upgraded:
          gnupg-agent update-manager-core update-manager-kde
          Locking with the Synaptic.
          [img width=400 height=100]http://img237.imageshack.us/img237/2939/locka.png[/img]

          Updating the package database.
          Code:
          sudo apt-get update
          Testing the upgrade:
          Code:
          sudo apt-get -s dist-upgrade
          The following packages will be upgraded:
          gnupg-agent update-manager-core update-manager-kde
          Synaptic locks are only used with the Synaptic.


          2)

          Writing a pin file:
          Code:
          kdesudo kate /etc/apt/preferences
          Package: gnupg-agent
          Pin: version 2.0.14-1ubuntu1
          Pin-Priority: 1001
          Updating the package database.
          Code:
          sudo apt-get update
          Testing with the apt-get:
          Code:
          sudo apt-get -s dist-upgrade
          The following packages will be upgraded:
          update-manager-core update-manager-kde
          2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
          With the Synaptic, there are two upgradeable packages - the gnupg-agent is pinned.
          [img width=400 height=105]http://img823.imageshack.us/img823/5076/synaptic.png[/img]

          Same thing with the Muon...
          [img width=400 height=98]http://img84.imageshack.us/img84/1138/muon.png[/img]
          Before you edit, BACKUP !

          Why there are dead links ?
          1. Thread: Please explain how to access old kubuntu forum posts
          2. Thread: Lost Information

          Comment

          Working...
          X