Using Apt-Pinning on Debian

I have returned to debian-squeeze. The reason that prompted me to return to the stable branch of Debian, (since I've always used Testing) has been the incorrect display of the typography using a kernel higher than version 2.6.32-5-686.

The main problem with taking this step is that I lose many packages that are in the repositories of Debian Testing and that debian-stable does not have. Example of them are LibreOffice 3.4.3 y Turpial.

Luckily, in Debian there is an option to Apt called Apt Pinning and you will wonder, what is that for? Well, without going into the technical grindstone, with Apt Pinning I can use debian-squeeze and at the same time, packages of debian wheezy. Cool right?

How do I do it?

After install debian-squeeze and configure it, update it and so on, the first thing I do is add the repositories of Testing, so the file /etc/apt/sources.list looks like this:

# Repositorios Stable
deb http://ftp.debian.org/debian squeeze main contrib non-free
# Repositorios Testing
deb http://ftp.debian.org/debian wheezy main contrib non-free

Later I create the file / Etc / apt / preferences and I put this inside:

Package: *
Pin: release n=stable
Pin-Priority: 900

Package: *
Pin: release n=testing
Pin-Priority: 800

Now I open a terminal update the repositories.

$ sudo apt-get update

Now when I want to install Turpial for example I have two ways to do it in terminal:

$ sudo apt-get install turpial/testing
$ sudo apt-get -t testing install turpial

Y APT it is responsible for choosing only the necessary dependencies of one repository and the other. If you want more information about this, you can visit this link.


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Eduardo said

    mmm very interesting 🙂
    I use Debian Squeeze on my home PC and this data is very useful for me. Let's try it 🙂
    THANK YOU for the contributions you make to your blog.

    PD = I can't enter the link you put at the end of the post, the one that points to the esdebian forum.

    1.    elav <° Linux said

      Are you connecting from Cuba? Because if so, then I will tell you that we are locked on esDebian.

      1.    Eduardo said

        I am Argentine 🙂 It seems that the esdebian server was not online at the time of your post, so I could not enter it there.
        In their flower they clarify:
        http://www.esdebian.org/foro/47527/esdebian-sitios-hermanos-estuvieron-caidos

        1.    KZKG ^ Gaara said

          Thanks for the information, we (elav and I) cannot access esDebian simply because we live in Cuba, so for us it is always offline or closed haha.
          Anyway thanks really, and by the way: «Welcome to our humble site» 🙂

          Greetings friend.

      2.    msx said

        I just read this: "we are locked on esDebian."

        How outrageous, why is that happening?

        1.    KZKG ^ Gaara said

          It happens because many idiots from our country (Cuba) entered esDebian and wrote any amount of stupid things, so ... the administrators of esDebian opted for the simplest "solution" for them, but more screwed up for us ... they blocked all access from Cuban IPs ¬_¬

          1.    Lex.RC1 said

            This is something that personally outrages me, with what right do they exclude?

            When I registered in esdebian I had to wait 5 days to post and when I go to post they ask me for 5 points… I didn't like it and I asked (kindly) the administrator to ask me on two occasions, I received silly answers and the third time I sent it to the m…. I'm still registered: /

            You should consider giving the forum a boost and creating a fair option. I think that with the journey and the followers that you have it would not be difficult.

            1.    KZKG ^ Gaara said

              With the right that they are the administrators ... no way, it is past water, now we have to fuck ourselves and nothing more. In fact the last times I have entered it has been with IPs from other countries.

              About giving the forum a boost yep you're right, we just haven't thought about how to do it yet 🙂


          2.    Lex.RC1 said

            In a couple of ideas, the first thing would be to give it more promotion and by logic you can get two essential presence on the main page and change the comments to a post in the forum ... It would also help a better indexing of the comments by type and gender that be on par with the forum.

            1.    elav <° Linux said

              We are working on that… Anyway, if someone can pull a cord to help us with the task, so much the better. What we need is how to get information from the FluxBB RSS feed and print it on a website using PHP.


            2.    KZKG ^ Gaara said

              Changing the comments to the forum, it would have to be automatically and completely transparent to the reader, and we have not found how to do this 🙁


  2.   Edward2 said

    It seems that http://www.esdebian.org is down now, by the way there are some hdp some if not the vast majority in that forum. When I used debian, I went through the forum to see what was new and they always responded to the noobs to the kicks. Jo I prefer to avoid answering them than to give an answer that does not help them and that pissed me off and it was not with me.

    1.    KZKG ^ Gaara said

      I include myself. I once asked a not-so-noob question, and they told me that I was a fool, just because I had to compile a soft (I don't remember which one, I think it was Squid) with specific parameters… come on don't screw me! If it were some nonsense, I accept them, make your offensive criticisms, but do not take it against everyone either.

      If we add to that that for a time IPs from Cuba (where elav and I live) were denied entry to the site, they have earned my rejection ¬_¬

      A lot of valuable information, yes, but bad communication and I deal a lot of the time.

      1.    Courage said

        There are people for everything in the forums, I have seen people speak badly of that forum and other people say the opposite. I don't know him, but I do know forums where if you're not "pro" they won't even answer you, such as Foro MTB.

        And the Arch forum? It doesn't seem like bad people but… What would happen if I went in there?

        That's why I crush people by mail, there we have Malcer with the whole inbox full of emails from me, or Jabba, some of them send one punctually to elav and another to KZKG ^ Gaara (I mean the serious ones, not those of soccer).

        It's better for everyone right?

        HAHAHAHAHAHAHAHAHAHA

        1.    José Miguel said

          With regard to forums as in life itself, there are "people" who need to feel that they are someone and for that they need to be more than others.

          They enjoy the comparison of possibly their only aptitude, and they enjoy pounding or rubbing shoulders with their peers because it is their way of being someone.

          They don't give more, let's not ask the elm for pears.

  3.   Eduardo said

    It is true what you say. I never dared to ask anything for fear of an untimely answer. They seem to forget that if it is a universal operating system they should be open even to newbies jojojojojojo
    But it must be admitted that in the wiki and in the esdebian forum you find the answers to everything that you may need.

    1.    Edward2 said

      hahahaha what things, well if when you do not get a grotesque answer it helps, although in archwiki and its forum it is for me the same or better, to those who are noobs asking obvious things, they put the direct link to the wiki or they give an answer kindly and they ask you to search the wiki or in the forum, well, rather than order, they suggest it for future problems / queries / doubts.

  4.   oleksis said

    This post is very useful, but if we need to install applications like those mentioned. I'll get addicted to <° LINUX if they continue to post on GNU / Linux Debian.

    Regards!

    1.    KZKG ^ Gaara said

      Addict? … That's the idea LOL !!!
      If you are a Debian fan, I recommend that you look for our Debian label, you could also check the LMDE articles (Linux Mint Debian Edition), which in the end is still Debian 😉

      Nothing that a pleasure to know that our content you like, really ... it is very comforting 🙂
      If you have any doubt or question, idea, complaint or suggestion, let us know, okay, here we are all like friends and we help each other ^ _ ^

      regards

      1.    Courage said

        Addict? … That's the idea LOL !!!

        We'll see if I get very addicted ... Addictions are bad haha ​​and if I'm doing badly because of them I blame you hahaha

      2.    oleksis said

        Thank you! I have already looked for the tags, but I would like to focus on GNU / Linux Debian, preferably Lenny or Squeeze

        Congratulations on the blog! they continue like this ...

    2.    elav <° Linux said

      Believe me we will have more of this, I always used Debian, I use Debian and from what I see, I will keep using Debian :)

  5.   Courage said

    It has been the incorrect display of the font using a kernel higher than version 2.6.32-5-686.

    I don't know that font but ... is it really that bad?

    1.    elav <° Linux said

      When I refer to typography, I am referring to the misnamed Text Font. And yes, believe me it's so bad, in the previous blog I talked a little about that topic and left some images of how the typography was displayed. It is almost impossible to read sometimes.

      1.    Courage said

        Leave me the link, I am already curious

        When I refer to typography, I am referring to the misnamed Text Font

        I am not a "retard"

  6.   jhals said

    : ~ # apt-get install turpial / testing
    Reading package list ... Done
    Creating dependency tree
    Reading the status information ... Done
    Selected version "1.5.0-1" (Debian: testing [all]) for "turpial"
    Do not can instal some pack. This may mean that
    you asked for an impossible situation or, if you are using the distribution
    unstable, that some necessary packages have not been created or have
    been moved out of Incoming.
    The following information can help resolve the situation:

    The following packages have unmet dependencies:
    turpial: Depends: python-gtk2 (> = 2.12.0) but it won't install
    Depends: python-notify (> = 0.1.1) but it won't install
    Depends: python-gst0.10 but it won't install
    Depends: python-webkit (> = 1.1.2) but it won't install
    Depends: python-gtkspell but it won't install
    E: Broken packages

    In the same way, if a safe-upgrade is done with aptitude or the apt-get upgrade… warn to download more than 500mb, I mean to update the distro… could you please explain something more about apt-pinning, and about that problem of broken packages What do I have? Thank you very much in advance

    1.    elav <° Linux said

      Show me your / etc / apt / preferences file and /etc/apt/sources.list because it works for me without problems. Now, I clarify, this apt-pinning is not a panacea, simply an alternative that may or may not cause problems.

  7.   Serge Alonso said

    Thanks, it worked perfect on Wheezy towards Jessie, and allowed me to patch with the latest test openssh in stable.