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.

    1. The effectiveness of IEEE Project Domains depends very much on the situation in which they are applied. In order to further improve IEEE Final Year Project Domains practices we need to explicitly describe and utilise our knowledge about software domains of software engineering Final Year Project Domains for CSE technologies. This paper suggests a modelling formalism for supporting systematic reuse of software engineering technologies during planning of software projects and improvement programmes in Project Centers in Chennai for CSE.

      Spring Framework has already made serious inroads as an integrated technology stack for building user-facing applications. Spring Framework Corporate TRaining the authors explore the idea of using Java in Big Data platforms.
      Specifically, Spring Framework provides various tasks are geared around preparing data for further analysis and visualization. Spring Training in Chennai

  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.

  59. Thanks for posting useful information.You have provided an nice article, Thank you very much for this one. And i hope this will be useful for many people.. and i am waiting for your next post keep on updating these kinds of knowledgeable things...Really it was an awesome article...very interesting to read..please sharing like this information......
    PHP interview questions and answers | PHP interview questions | PHP interview questions for freshers | PHP interview questions and answers for freshers | php interview questions and answers for experienced | php viva questions and answers | php based interview questions | interview questions | interview questions in hindi

  60. Hey Your site is awesome and full of information. I have read you posts they are so informative. Keep Posting wonderful content.
    Responsive website design company in jaipur
    website development company in jaipur
    php development company in jaipur
    seo company in jaipur

  61. Thanks for sharing this unique information with us. Your post is really awesome. Your blog is really helpful for me..
    organic oil
    organic oil in jaipur
    organic cold pressed oils
    ayurvedic oil store in jaipur

  62. We provide assignment help Sydney. We provide all the subjects of the assignment. We have many experience holder experts. Any subjects easily write your assignment. Hire now our experts at

  63. We are providing the best assignment help Sydney. We provide the best service for your academic-related writing work. You achieved the best grade in assignment exams. Book now our experts at

  64. Awesome post, Great to Land here, Keep going, have a great Success!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    we are providing Elearning Company in Chennai since
    Digital Learning Solutions is a big boom to the Students and employee Engagement
    Mycoach Learning is the best certified Elearning Company, which offers
    Mycoach LMS


  65. Thank you for this useful content, It’s a very useful content that helps me to complete my assignment at right time. I would like to write about my experience of assignment help Australia. I am an academic expert here who provides reference assignment including Accounting, Management, Finance, IT, Economics, Computer Science, Nursing, Marketing; all Academic subjects to University Students across Australia or even globe. We are a big online assignment help providers who help students to get HD grades according to assessment guidelines and instructions.

    Those who are searching for assignment help in Melbourne, Perth, Brisbane, Adelaide etc. They can get an Online Assignment Expert - the No.1 Assignment provider. Any student who is ready to buy an assignment at affordable price, they can visit our marked website & can enjoy the benefits of our amazing and informative services. You can avail of our convenient online assignment help and samples available on our website for free. You can also download it from our website. If you want to get more marks in your university assessment. We assign the best writer according to the subject for your academic problems and help in assignment writing services. Our Customer Care Executives are available 24*7 hours to assist you in the best possible manner. Phone calls and emails are the best methods used by assignment provider.

  66. Anyone who reads this post will find it great, me too, I will continue to follow your posts. It's great, wish you success in the next blog, this is a post that we all should read at least once.
    friv 4 school math games, jogos para crianças, friv 4 school math games 2019, cá koi mini

  67. Whenever I came across any difficulty, I often used to search “who can do my assignment for me”, but, later on realised that there are many these type of services who promises a lot but does only a little. However, My Assignment Services is one such assignment provider who believe only in the quality. They are exactly the type of assignment service provider that I needed from a long time. By opting their services, you get assistance to a lot of subjects including their nursing assignment help, management, law, engineering, finance, economics, accounting, and a lot more. Therefore, you need not to be worry, instead go for My Assignment Services by visiting the link.

  68. is a stop solution for professional assignment writing services for those students who are looking for experts to get their assignments most conveniently.
    Java assignment help
    Assignment Help

  69. Getting reliable and competent Online Essay Writing Service writing companies is no longer an easy task as most of the current providers are unreliable and provide poor Custom Research Paper Services that do not let students get high scores.

  70. Our Legitimate Essay Writing Service are unique and written from scratch. To ensure you that each Research Paper Services completed are non-plagiarized, we provide free plagiarism reports for each document upon the client’s request.

  71. Assignment Help is the best source of providing assistance to those who students who could not complete their due to any reasons. If do so, mark your presence on greatassignmenthelp for affordable services.

  72. Does your HP printer is not functioning as it should be? Is it keeps going offline whenever you give it a print command? Well, you are not alone in this world that is facing this issue. Printer to go offline is quite a common issue, which is faced by nearly everyone. Basically, this error arises, due to the connection error or fault in printer driver. Therefore, instead of shouting Why Does My Hp Printer Keep Going Offline? You need to connect with experts and take proper resolutions to fix this issue once and for all.

    Why Does My Printer Keep Going Offline
    why does my hp printer keep going offline

  73. Download Updated versions of all types of Apks like App store APKs, Messaging APKs, Popular APKs, Software APKs, and Streaming APKs from Apkmist.
    Apkmist Download
    WhatsApp Plus APK Download
    YOWhatsApp APK Download
    WhatsApp Business APK Download
    GBWhatsApp APK Download
    OGWhatsApp APK Download
    FMWhatsApp APK Download

  74. Get help from experts for Canon printer setup
    Wondering how to configure a new printer on your iPhone, iPad, iPod Touch or Android mobile device? Just download the Canon PRINT App, hit your printer’s Wireless Connect button and the data stored on your phone, including your Wi-Fi name and password, will automatically be shared allowing the overall setup process quicker and easier than ever. There are different methods to set up the canon printer in different versions of the printer. If you want to know the Canon printer setup guide, contact our experts. They will give you the easiest steps to do so. Just dial our toll-free number and talk with the experts. The best part is that you can call round the clock.
    canon usa support
    canon setup
    Canon error code 5b00
    Canon B200 Error
    Canon Wireless Printer Setup
    Connect Canon Printer To Wi-Fi
    Canon printer offline
    canon pixma mx490 setup
    canon ts3122
    canon printer reset
    Canon Printer Setup
    canon printer offline

  75. You have a good point here!I totally agree with what you have said!!Thanks for sharing your views...hope more people will read this article!!!
    tree pruning delray beach

  76. Thanks for a wonderful share. Your article has proved your hard work and experience you have got in this field. Brilliant .i love it reading.
    bathroom remodel tallahassee fl

  77. Hi, This is nice article you shared great information i have read it thanks for giving such a wonderful Blog for reader.
    remodeling contractor fort lauderdale

  78. This comment has been removed by the author.

  79. I have read your article, it is very informative and helpful for me.I admire the valuable information you offer in your articles. Thanks for posting it..
    concrete contractor west palm beach

  80. Great article and a nice way to promote online. I’m satisfied with the information that you provided st petersburg remodeling contractors

  81. Very nice bro, thanks for sharing this with us. Keep up the good work and Thank you for sharing information
    bathroom remodelers port st lucie

  82. Very nice bro, thanks for sharing this with us. Keep up the good work and Thank you for sharing information DenGlass framing florida

  83. Very nice bro, thanks for sharing this with us. Keep up the good work and Thank you for sharing information
    bathroom remodeling palm beach county

  84. Thanks for a wonderful share. Your article has proved your hard work and experience you have got in this field. Brilliant .i love it reading. stucco repair california

  85. Very nice!!! This is really good blog information thanks for sharing. We are a reliable third party Quickbooks file doctor company offering technical support for various any types of technical errors.

  86. Custom Assignment Help online produces different assignments, including Custom Assignment Writing Service, to help students deal with the Legit Essay Writing Servicechallenges they face every day.


  87. Geek Squad Webroot being an antivirus software is very crucial in respect to today's time. The experts working behind the toll-free helpline of this antivirus are great at resolving all your virus and malware issues. Call Geek Squad now for expert help, anytime.

  88. Geek Squad Tech Support provides the best technical help and guidance. Get in touch with extensively trained tech support team for all sort of queries and issues regarding your devices. You can contact Geek Squad round the clock according to your convenience.

  89. Geek Squad Webroot being an antivirus software is very crucial in respect to today's time. The experts working behind the toll-free helpline of this antivirus are great at resolving all your virus and malware issues. Call Geek Squad now for expert help, anytime.

  90. Geek Squad Phone Number provides support for various devices. Geek Squad has a team of experts for technical support. If you are facing any issue with your device, dial Geek Squad Phone Number for support.

  91. Fix Dell Error Code 2000-0142 by going through simple measures in the blog. You can connect with experts at Dell Support, if unable to find affix.

  92. This is the very first time I called and grabbed Microsoft Support with the intention of eliminating my Microsoft issues. The professional who answered my call is very friendly in nature as well as helpful in resolving problem. He step-wisely guided me to terminate my entire issues and didn’t leave me until my entire glitches are resolved. So, I would advise everyone that whenever you face Microsoft issues, then grab this support.
    outlook Support Number
    outlook Support Phone number
    outlook Support
    Microsoft outlook Support
    Microsoft Support Phone Number
    Microsoft Support Number
    Microsoft Phone Number
    Microsoft Number
    Microsoft Support chat

    How do I contact Microsoft support?
    What is Microsoft support number?
    How can I contact Microsoft by phone?
    What is the support number for Microsoft?
    How do I talk to Microsoft support?
    How do I contact outlook by phone?
    How do I contact Microsoft Outlook support?
    Is there a phone number for Outlook support?
    How to get Outlook Support Phone Number?

  93. Whenever your Windows gives you one error or the countless, you just need to grab Windows support. The available professionals of this support are well-educated and always ready to give their best. I am telling you all this because I have experienced all of these. So, when on Earth you need to resolve your issues associated with Windows, then I personally suggest you to make connection with the Microsoft windows support team’s professionals.
    How do I contact Microsoft Office Support?
    Is there a Phone Number for Office 365 Support?
    office 365 Support
    Microsoft office 365 support
    outlook keeps asking for password
    How do I contact Microsoft Outlook support?

    outlook Support Number
    outlook Support Phone Number
    Microsoft outlook Support
    Is there a phone number for Outlook support?
    How do I call Outlook support?

  94. با توجه به اینکه شرکت نکست هر ساله آلبوم های جدید آلبوم کاغذ دیواری را به مجموعه خود اضافه می کند کاغذ دیواری هایی که مربوط به سال های گذشته کاغذ دیواری ایتالیایی هستند از جوری در می آیند و همین موضوع باعث می شود که روی این کاغذ دیواری ها

    تنها هتل جزیره هرمز با قیمت مناسب و امکانات خوب. هر سوییت شامل آشپزخانه و هرمز سرویس بهداشتی جداگانه. رخت خواب ها و حوله ها خیلی تمیز . غذای رستوران دریایی به سبک محلی و خیلی خوشمزه با قیمت مناسب.

  95. Sage 50 Customer Service Number
    Sage 50 Customer Service Number
    Sage 50 Customer Support Number
    Sage 50 Tech Support Number
    Sage 50 Support Number
    Sage 50 Customer Service Number 1-855-548-3394 for Sage 50 technical help. Get technical assistance, just dial Sage 50 Support Phone Number 1855-548-3394

  96. Sage 50 Technical Support Phone Number
    Sage 50 Technical Support Phone Number
    Sage 50 Technical Support Number
    Sage 50 Tech Support Phone Number
    Sage 50 Tech Support Number
    Get technical assistance, just dial Sage 50 technical Support Phone Number 1-855-548-3394. Sage 50 Support Phone Number. Sage 50 Customer Support Number

  97. The firm guarantees availability of Top Essay Writing Services as well as high-quality Best Essay Writing Service in USA and Cheap Essay Writing Services which will grant you excellence in your endeavors.