LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 04-26-2005, 08:55 AM   #1
vharishankar
Senior Member
 
Registered: Dec 2003
Posts: 3,142
Blog Entries: 4

Rep: Reputation: 121Reputation: 121
How to upgrade from "testing" to "unstable"?


I wanted to point my sources to "unstable" so that I could get the latest updates without waiting for a long time.

So I changed the mirrors in "sources.list" file to point to the "unstable" branch and then I did an apt-get update so that I could load the software on unstable (sid) branch.

But after the apt-get update synaptic does not show any packages to upgrade and the list doesn't show any of the packages as "available for upgrade". Instead it shows all packages present on my system as being up to date. Also many of the existing packages are shown as being "local or obsolete".

How do I convert my "testing" to "unstable" seamlessly and without losing any package upgrades available?

I'm sure there are a few more steps involved, but I'd be glad if somebody could help me with this.
 
Old 04-26-2005, 09:18 AM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 63
Try using apt itself by using apt-get dist-upgrade or if there is an option in synaptic for it then dist-upgrade from it. If it still wants to keep you at testing then make sure you have a line like this in your /etc/apt/apt.conf.

Code:
APT::Default-Release "unstable";
 
Old 04-26-2005, 09:29 PM   #3
vharishankar
Senior Member
 
Registered: Dec 2003
Posts: 3,142
Blog Entries: 4

Original Poster
Rep: Reputation: 121Reputation: 121
My idea was to continue having "testing" for the base packages but still have the option of installing specific packages from "unstable" if needed. Is that a dangerous combination? I read that this is possible in the documentation, but I am wary of doing this.

Currently I have reverted all repositories back to testing.
 
Old 04-26-2005, 10:04 PM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 63
Quote:
Originally posted by Harishankar
My idea was to continue having "testing" for the base packages but still have the option of installing specific packages from "unstable" if needed. Is that a dangerous combination? I read that this is possible in the documentation, but I am wary of doing this.

Currently I have reverted all repositories back to testing.
No not really dangerous at all I have been doing that for a couple of years. You need to edit the /etc/apt/apt.conf and /etc/apt/preferences files and have them look like this.

Code:
>$ cat /etc/apt/apt.conf
APT::Default-Release "testing";
APT::Get::Show-Versions "true";
APT::Cache-Limit 10000000;
The Default-Release line tells apt you want packages from testing, Show-Versions line shows you where the packages will be coming from when using apt-get and Cache-Limit increases the package cache limit so you can have more than one repository cached.

Code:
>$ cat /etc/apt/preferences
Package: *
Pin: release testing
Pin-Priority: 900

Package: *
Pin: release unstable
Pin-Priority: 600
This tells apt that you want packages from testing over unstable during a normal install/upgrade. If you want to install packages from unstable then you use apt-get install -t unstable package_name and it will install the package you want. If you get errors saying that the package cannot be install because another package(s) is at a lower version than the unstable one you want needs then add the package(s) to the end of the line until it will install without the errors. You may want to look into using the -s option of apt-get to simulate the command then when every thing installs without errors remove the -s from the line and do the actual install, this allows you to check and make sure nothing you want from your install will get removed accidently because of conflicts. And of course you will need to have lines for both testing and unstable in your sources list like this changing the lines to reflect the mirror you are using.

Code:
>$ cat /etc/apt/sources.list


# Stable
#deb http://ftp.de.debian.org/debian/ stable main non-free contrib
#deb http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free

# Sources
#deb-src http://ftp.de.debian.org/debian/ stable main non-free contrib
#deb-src http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free

# Testing
deb http://ftp.de.debian.org/debian/ testing main non-free contrib
deb http://nonus.debian.org/debian-non-US testing/non-US main contrib non-free

#deb http://ftp.de.debian.org/debian/ testing-proposed-updates main non-free contrib


# Sources
deb-src http://ftp.de.debian.org/debian testing main contrib non-free
deb-src http://nonus.debian.org/debian-non-US testing/non-US main contrib non-free

# Unstable
deb http://ftp.de.debian.org/debian/ unstable main non-free contrib
deb http://nonus.debian.org/debian-non-US unstable/non-US main contrib non-free

# Sources
deb-src http://ftp.de.debian.org/debian unstable main contrib non-free
deb-src http://nonus.debian.org/debian-non-US unstable/non-US main contrib non-free
 
Old 04-26-2005, 11:29 PM   #5
vharishankar
Senior Member
 
Registered: Dec 2003
Posts: 3,142
Blog Entries: 4

Original Poster
Rep: Reputation: 121Reputation: 121
Thanks HappyTux. I'll bookmark this thread and follow your instructions when I get the opportunity.

I've been wanting some packages from unstable, but I've really been quite wary of doing this. Now that you have shown the correct way, I'll follow this and tell you how I get on.
 
Old 04-27-2005, 09:46 PM   #6
vharishankar
Senior Member
 
Registered: Dec 2003
Posts: 3,142
Blog Entries: 4

Original Poster
Rep: Reputation: 121Reputation: 121
There is no file in my system named /etc/apt/apt.conf.
 
Old 04-27-2005, 10:03 PM   #7
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 63
Quote:
Originally posted by Harishankar
There is no file in my system named /etc/apt/apt.conf.
Just create the file then with the contents above and apt will use it.
 
Old 05-01-2005, 06:18 PM   #8
H2O-linux
Member
 
Registered: Sep 2004
Location: Second ring of youranus
Distribution: debian testing
Posts: 153

Rep: Reputation: 30
Upgraded to unstable

Just wanted to add that I went to unstable and boy am I a happy camper. Everything is for the first time running as fast or faster than my best Xp machine.

System specs:
Rambus 1800mhz P4 system
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 6 03-21-2013 10:35 AM
what is "sticky bit mode" , "SUID" , "SGID" augustus123 Linux - General 10 08-03-2012 04:40 AM
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 11:26 AM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 03:07 PM
Can't install "glibmm" library. "configure" script can't find "sigc++-2.0&q kornerr Linux - General 4 05-10-2005 02:32 PM


All times are GMT -5. The time now is 09:31 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration