Difference between revisions of "Get access to packages from the Debian unstable branch"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
(changed default apt.conf)
(Changes in formating and added the Cache fixup for some systems)
 
Line 6: Line 6:
 
=== And it's easy ===
 
=== And it's easy ===
  
# Edit or create the file /etc/apt/apt.conf and add those 2 lines:  
+
* Edit or create the file /etc/apt/apt.conf and add those 2 lines:  
  APT::Default-Release  
+
  APT::Default-Release "stable";
"stable";
+
'''Note:''' If you upgraded your distro to "testing", you'll want to use "testing" instead of "stable" here.
Note: If you upgraded your distro to "testing", you'll want to use "testing" instead of "stable" here.
+
* Edit /etc/apt/sources.list and add the following lines:
 
+
  deb <nowiki>http://ftp.freenet.de/debian/</nowiki> unstable main
# Edit /etc/apt/sources.list and add the following lines:  
+
  deb-src <nowiki>http://ftp.freenet.de/debian/</nowiki> unstable main
  deb http://ftp.freenet.de/debian/ unstable main  
+
you can find alternates closer to you on the web. For example those 2 lines:
  deb-src http://ftp.freenet.de/debian/ unstable main
+
  deb <nowiki>http://http.us.debian.org/debian</nowiki> unstable main contrib non-free
 
+
  deb-src <nowiki>http://http.us.debian.org/debian unstable</nowiki> main contrib non-free
you can find alternates closer to you on the web, like for example those 2 lines:
+
are just as good!
  deb http://http.us.debian.org/debian unstable main contrib non-free
+
* Replace ''ftp.freenet.de'' with any mirror you are using.
  deb-src http://http.us.debian.org/debian unstable main contrib non-free
+
* Run ''apt-get update'' to update the list of packages. Now you can access the unstable packages. If you want to install or use rTorrent just type:
 
+
are just as good !
+
 
+
# Replace ''ftp.freenet.de'' with any mirror you are using.
+
# Run ''apt-get update'' to update the list of packages. Now you can access the unstable packages. If you want to install or use rTorrent just type:  
+
 
  apt-get -t unstable install rtorrent
 
  apt-get -t unstable install rtorrent
 
+
If you wish to grab the "testing" version, use:
If you wish to grab the "testing" version, use  
+
 
  apt-get -t testing install rtorrent
 
  apt-get -t testing install rtorrent
 
+
'''Note:''' If you get an error like this later (after you added the repositories to your sources.list):
 +
W: Couldn't stat source package list <nowiki>http://http.us.debian.org</nowiki> unstable/main Packages
 +
(/var/lib/apt/lists/http.us.debian.org_debian_dists_unstable_main_binary-mipsel_Packages) - stat (2 No such file or directory)</pre>
 +
it means that you need to add the following line to the /etc/apt/apt.conf:
 +
APT::Cache-Limit 18582912;
  
 
[[Category:Debian]]
 
[[Category:Debian]]
 
[[Category:Howto]]
 
[[Category:Howto]]

Latest revision as of 02:22, 15 November 2006

Originally by TcT and edited by frontalot and Hans-Gran Puke from linkstationwiki.org

Unstable Packages

It is often useful to have access to the Debian unstable branch because it has some interesting packages like PHP5 and rTorrent (a C++ Torrent client which is much less CPU intensive than the original bittorrent and also easier to use from console). Using the unstable packages saves you the time to compile these packages your self. The good thing is you don't have to change your whole installation to unstable you can simply use your stable or testing repository and just use the packages not in there from the unstable repository.

And it's easy

  • Edit or create the file /etc/apt/apt.conf and add those 2 lines:
APT::Default-Release "stable";

Note: If you upgraded your distro to "testing", you'll want to use "testing" instead of "stable" here.

  • Edit /etc/apt/sources.list and add the following lines:
deb http://ftp.freenet.de/debian/ unstable main
deb-src http://ftp.freenet.de/debian/ unstable main

you can find alternates closer to you on the web. For example those 2 lines:

deb http://http.us.debian.org/debian unstable main contrib non-free
deb-src http://http.us.debian.org/debian unstable main contrib non-free

are just as good!

  • Replace ftp.freenet.de with any mirror you are using.
  • Run apt-get update to update the list of packages. Now you can access the unstable packages. If you want to install or use rTorrent just type:
apt-get -t unstable install rtorrent

If you wish to grab the "testing" version, use:

apt-get -t testing install rtorrent

Note: If you get an error like this later (after you added the repositories to your sources.list):

W: Couldn't stat source package list http://http.us.debian.org unstable/main Packages
(/var/lib/apt/lists/http.us.debian.org_debian_dists_unstable_main_binary-mipsel_Packages) - stat (2 No such file or directory)</pre>

it means that you need to add the following line to the /etc/apt/apt.conf:

APT::Cache-Limit 18582912;