Wednesday, 31 October 2012

Installing Debian unstable safely with APT pinning

Using Aptitude to easily list and install backported or unstable packages

Early into my linux Debian web server administration, out of necessity and after a lot of trail and error and reading I worked out the right preferences that keeps my systems very stable and yet with the ability to install the occasional backported or unstable package. My package management utility of choice is `aptitude` but these settings will also effectively work for `apt-get` and before I begin do +1 this if you find it useful.

The above shows the available version of Django with their respective APT pinning numbers: 990 being the stable version and selected by default when installing, 400 being the backported version, 300 being an unstable version, and 100 pinning for our already installed version.

During normal installation the stable default is always selected, however now I also have an option to easily see other available versions by viewing the package details. Based on the displayed pinning I can tell any backported versions and the unstable version available and review the potential conflicts it could create in a straight forward way.

Setting it all Up

There are four things that need to be edited, the default pinning release needs to be set, the sources need backports and unstable added, lowering the pinning priority of backports/unstable packages, and the aptitude display settings needs to be modified to display pinning.


Create a ' /etc/apt/apt.conf.d/10defaultrelease' and make it's contents as follows:
Apt::default-Release "stable";

Update package `sources.list`

Edit your /etc/apt/sources.list to add unstable and backports sources so it looks something like this:

# deb cdrom:[Debian GNU/Linux 6.0.0 _Squeeze_ - Official Multi-architecture amd64/i386 NETINST #1 20110205-14:45]/ squeeze main

deb squeeze main
deb-src squeeze main

deb squeeze/updates main
deb-src squeeze/updates main

# squeeze-update, previously know as 'volatile'
deb squeeze-updates main
deb-src squeeze-updates main

# squeeze backports
deb squeeze-backports main

# unstable
deb unstable main
deb-src unstable main

# non free ex. sun java
#deb squeeze non-free
#deb-src squeeze non-free

Edit `etc/apt/preferences` pinning file

If the file doesn't exist do create it, if it does modify it to add lower pinning the default 500 for unstable and backports packages as follow:

# Package pinning priorities
# See and
# In nut shell highest PIN gets installed
# Pining default are as follow which are in addition to our settings:
#   990 - for version that are not installed but DO belong to our `APT::Default-Relase "stable"` setting.
#   500 - for versions that are not installed and do not belong to the target release
#   100 - for packages that already installed, this also means other versions of same package
#     1 - for experimental packages; packages with "NotAutomatic: yes"

Package: *
Pin: release n=squeeze-backports
Pin-Priority: 400

Package: *
Pin: release a=unstable
Pin-Priority: 300

Add pinning information to Aptitude

By default Aptitude does not display any pinning information however this can be changed and once done a pinning number will be displayed when one view the package details, add the following file `/etc/apt/apt.conf.d/`:

Aptitude::UI::Package-Display-Format "%c%a%M %p %Z %v %V %i";

That's it. It is worth pointing that this setup has worked for me over the past 3.5 have years without any issues

It is even able to handle a scenario where a previously installed unstable is upgraded to a stable backported higher version correctly as can be seen with the above example of the Django package.


  1. Our website assure a top grade essay writing services for non-collegiates all over the world. Our adepts have gained a vast competence in selling of numerous educational writing aid.

  2. The leading assignment help UK firm offers state of the art services to its clients with a promise of delivering all the required work well within the deadline.
    Economics Assignment Help

  3. Well thanks for posting such an outstanding idea. I like this blog & I like the topic and thinking of making it right.
    Medical Assignment Help

  4. Science Channel’s are giving a complete knowledge to its viewers about every thing students write done dissertation on this subjects and show its importance.
    Matlab Homework Help

  5. This a good way to appreciate the teacher as they put their efforts to train students. UK dissertation Writers appreciates the teachers.
    Operations Management Assignment

  6. I am very in to the subject of your blog. Today I have noticed your blog and now I am very happy because here are not lots of professional blog like yours around on the web.

    Watch Risen full movie | Watch Race movie online


  7. Do your friends make fun of you for staying at home on weekends? Assignments make a lot of people work like this. Get them done from
    Assignment Help

  8. I appreciate your efforts in preparing this post. I really like your blog articles.
    Homework Help

  9. There were a few enlightening things in your web journal. A debt of gratitude is in order for upgrading that.
    Case Study Solution

  10. All the best blogs that is very useful for keeping me share the ideas
    of the future as well this is really what I was looking for, and I am
    very happy to come here. Thank you very much
    earn to die
    earn to die 2
    earn to die 3
    Hi! I’ve been reading your blog for a while now and finally got the
    earn to die 4
    courage to go ahead and give youu a shout out from
    earn to die 6
    Austin Texas! Just wanted to tell
    earn to die 5
    Hi! I’ve been reading your blog for a while now and finally got the
    happy wheels
    strike force heroes
    you keep up the fantastic work!my weblog
    age of war
    good game empire

  11. Goodness! It's wonderful to be sure! I am certain we can utilize numerous thoughts from this post for our assistance with exposition composing!
    Niagara Health System: An Innovative Communications Strategy (A) Case Solution

  12. Awesome enlightening site. I'm truly awed subsequent to perusing this blog entry. I truly welcome the time and exertion you go through to impart this to us!
    ASP Project Help

  13. His subject is good, long while I find this topic and I think it is here, many thanks guys .

    Hadapsar Pin Code
    Pune City Baner Road
    BPO Jobs In Pune

  14. I actually like to recommend your current pages to my other friends. hungry shark evolution hack & cheats

  15. Medical Thesis Writing Service & Medical thesis help Assignment Help & Homework Help - Medical Thesis Writing Service & Medical Thesis Help Introduction Medical Science is among one of the most important fields in our society.
    Medical Thesis Help

  16. Managerial economics is the science of guiding limited resources to handle expense successfully. Whether a market is worldwide or regional, the very same managerial economics use.
    Managerial Economics Project Help

  17. Apple IOS Assignment Help Introduction Revealed in 2007, it was initially suggested for iPhone gadgets however this was later on extended……….
    Apple IOS Project Help

  18. Awesome enlightening site. I'm truly awed subsequent to perusing this blog entry. I truly welcome the time and exertion you go through to impart this to us!
    Leanwashing: A Hidden Factor in the Obesity Crisis Case Solution

  19. This comment has been removed by the author.

  20. You have done great work, nice to read this interesting post, i want to say thanks for sharing this post.escort girl paris

  21. Thanks for the great post. I liked your writing style most. I like play game as game Stick RPG, score hero game, game return man 3 and game Potty Racers 3

  22. Understudy Loan combination won't just lower the installments, in the event that you discover your funds strained, you may spare yourself a migraine later on. Also, with the financing costs on the ascent, understudy advance union now will secure your combined credit at the lower rates, which may not be accessible later. Cash Advance

  23. Grants and allows are an awesome approach to apply for budgetary guide for school; neither must be paid back after graduation. Be that as it may, these are not generally enough to take care of the expense of educational cost and many individuals discover they require more monetary offer assistance. Check Cashing San-diego

  24. Likewise, with the financing costs on the climb, understudy propel union now will secure your USA Wedding consolidated credit at the lower rates, which may not be open later. Understudy Loan blend won't simply bring down the portions, if you find your assets strained, you may save yourself a headache later on.

  25. good the installer documents you downloaded and install. how you desire it to be noticeable to your call list nice.

  26. To get a home loan rate that is most reasonable for your money related circumstance, ensure that you altogether investigate about the present home loan rates in the market before you begin doing your home loan credit shopping. auto title loans chicago

  27. good When you click on Showbox apk, it will ask your permission. Showbox Download This app have actually got a big number of fantastic nice.

  28. great article, I was very impressed about it, wish you would have stayed next share

    retrica  |  superfighters 2  | sonic dash

  29. good Download and install Mobdro Kodi. Set up Mobdro for Kodi with Mobdro App on Your COMPUTER. best.

  30. The credit ought not move over no matter what. This keeps your advantage and charges to a base. Payday Loans

  31. "It's a sign"- Making great signs for your deal is imperative. In the event that you neighbors are included they may as of now have a few. If not, utilize signs that are of good quality, have striking print and can withstand the climate. Auto Title Loans

  32. The Better Business Bureau contains data about payday credit organizations and ought to be counseled preceding settling on a choice of which payday advance organization you will utilize. There are a lot of temperamental organizations that attempt to trick you for different reasons. Cash Advance

  33. Now and again, there are no different alternatives, however you are most likely considering a credit because of some unanticipated conditions. Ensure that the enthusiastic stun of the unanticipated occasion has worn off before you settle on any monetary choices. Cash Advance

  34. we have a tendency to area unit the companyproviding you the most effective services concerning check cashing within a brief amount.
    check cashing

  35. Snappy money with simple credit necessities are what makes payday advances alluring to many individuals. Be that as it may, preceding consenting to this sort of credit, ensure you know every one of
    the subtle elements. The tips from this article will help you abstain from getting into inconvenience. Payday Loans Chula-vista

  36. Infrequently even the hardest specialists require a little money related offer assistance. In the event that you are strapped for money, read more about quick advances. Shockingly, payday credits can be an awesome thing to put resources into. Keep perusing this article for more data. Cash Advance Corona

  37. Are you looking to dough into a checking account, the whole quantity typically cannot be instantly opened; there may be a waiting era for the check to clear?
    24 hour check cashing Edison

  38. Fascinating HR assignment help offered by our certified experts is it true that you are confronting issue finishing your human resource assignment.
    HR Assignment Help Online

  39. Assignment help UK gives UK-Assignments clients all day, every day online task help uk client mind benefit.
    assignment provider USA

  40. A Pioneer Institute owned by industry professionals to impart vibrant, innovative and global education in the field of Hospitality to bridge the gap of 40 lakh job vacancies in the Hospitality sector. The Institute is contributing to the creation of knowledge and offer quality program to equip students with skills to face the global market concerted effort by dedicated faculties, providing best learning environment in fulfilling the ambition to become a Leading Institute in India.

    cha jaipur
    hotel management college in jaipur
    management of hospitality administration jaipur
    cha management jaipur
    Hotel management in jaipur
    Best hotel management college in jaipur
    College of Hospitality Administration, Jaipur
    Top 10 hotel management in jaipur
    Hotel management collegein Rajasthan
    College of Hospitality Administration
    premier hotel management institute in india

  41. Additionally another ideal alternative for Mobdro for iphone, Mobdro App Download APK, iPhone Mobdro for Android movies or TV shows online and make the amusement.

  42. It's actual that in case you're sure you will have the capacity to pay it back, a payday advance can assist when you require some additional cash for a coincidental consumption. Cash Advance San-diego

  43. When you settle on your lender, you may be made a request to give some extra data by your loan boss for check purposes. A few loan specialists call the bank or the business to check the credibility of the application. Cash Advance

  44. Be that as it may, most importantly investigate your budgetary circumstance. See why you have to take out a payday advance and make every effort to wipe out this need later on.
    Payday Loans

  45. Payday Loans are little credits paid against your normal month to month salary and reimbursed with your next pay check.
    Cash Advance

  46. We tend to rectangular measure covering most of the towns and still providing you with the simplest services inside extraordinarily quick quantity with high notch delight. We are able to trace US 24/7 and you are continuously welcome.
    check casher Philadelphia

  47. Savage moneylenders are promptly accessible so take the time and contact no less than 3 unique organizations preceding being in a defenseless state. Most will offer cash with high premium and a quick result.

  48. Sometimes it may very difficult to cash if it is not official hours. That’s why we feel you much and started 24 hour check cashing services. It is very easy to finding us as we are at your city or nearest places. Just remember us and we will cash your check very short period with a very low cost.check cashing

  49. Additionally another ideal alternative for Mobdro for iphone.
    sai gon 24h

  50. I have read this above post its very nice for us thanks sharing ,great post.

  51. The picture ID tells the moneylender their identity working with and that it coordinates the proprietor recorded on the title.
    Check Cashing
    Cash Advance
    Auto Title Loans

  52. Here is everything you need to know about latest iOS 12 and the beta developer program which allows you to get iOS 12 beta download for your iPhone or iPad devices.

    Source: iOS 12 Guide


  53. vidyasthali is one of the best law college in India.
    Vidyasthali Law College is a self-financing Institution affiliated to the University of Rajasthan

    Jaipur Law College

  54. The cost can be not as much as half contrasted with the conventional program, and they are regularly guaranteed at 12 - multi month bargains. check cashing san diego

  55. I adore this weblog, wonderful content material and I am going to bookmark this website for future updates.

  56. if you want to know Fastest Bikes in the World. you can visit Here you will get Top 12 Fastest Bikes In The World | Pictures, Price and Specifications

  57. Looking for someone write my assignment here are Expert Allassignmenthelp well efficient and capable of creating unique assignments for students .Assignment help is a term which is best for students help, they can easily get help for their assignments online.

  58. Nursing assignment help australia by My Assignment Services has been trusted by millions of students worldwide for over a decade. We have been providing complete academic assistance to students struggling with their college and university tasks.