Debian: Difference between revisions

From miki
Jump to navigation Jump to search
(Created page with '==Apt sources== Add these lines to <tt>/etc/apt/sources.list</tt> <pre> deb http://ftp.belnet.be/debian/ lenny contrib deb-src http://ftp.belnet.be/debian/ lenny contrib deb htt…')
 
No edit summary
Line 1: Line 1:
==Apt sources==
==Apt==
Add these lines to <tt>/etc/apt/sources.list</tt>
=== sources.list ===
Example {{file|/etc/apt/sources.list}} file for Debian 8, aka. ''Jessie'':
<pre>
<source lang=bash>
deb http://ftp.belnet.be/debian/ lenny contrib
# Stable
deb-src http://ftp.belnet.be/debian/ lenny contrib
deb http://ftp.debian.org/debian/ jessie main contrib
deb-src http://ftp.debian.org/debian/ jessie main contrib
deb http://security.debian.org/ jessie/updates main contrib
deb-src http://security.debian.org/ jessie/updates main contrib


# Testing
deb http://ftp.belnet.be/debian/ lenny non-free
deb-src http://ftp.belnet.be/debian/ lenny non-free
deb http://ftp.debian.org/debian/ testing main contrib
deb-src http://ftp.debian.org/debian/ testing main contrib
</pre>
deb http://security.debian.org/ testing/updates main contrib
deb-src http://security.debian.org/ testing/updates main contrib

# Unstable / Sid
# deb http://ftp.debian.org/debian/ sid main contrib
# deb-src http://ftp.debian.org/debian/ sid main contrib

# Backport
deb http://ftp.debian.org/debian jessie-backports main contrib
deb-src http://ftp.debian.org/debian jessie-backports main contrib

# jessie-updates, previously known as 'volatile'
# A network mirror was not selected during install. The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
# deb http://ftp.debian.org/debian/ jessie-updates main contrib
# deb-src http://ftp.debian.org/debian/ jessie-updates main contrib
</source>

Using CD-ROM, with multiarch:
<source lang=bash>
# CDROM
deb [arch=i386] cdrom:[Debian GNU/Linux 8.7.1 _Jessie_ - Official i386 DVD Binary-3 20170116-10:09]/ jessie contrib main''
deb [arch=i386] cdrom:[Debian GNU/Linux 8.7.1 _Jessie_ - Official i386 DVD Binary-2 20170116-10:09]/ jessie contrib main
deb [arch=i386] cdrom:[Debian GNU/Linux 8.7.1 _Jessie_ - Official i386 DVD Binary-1 20170116-10:09]/ jessie contrib main
deb [arch=amd64] cdrom:[Debian GNU/Linux 8.7.1 _Jessie_ - Official amd64 DVD Binary-1 20170116-11:01]/ jessie contrib main
deb [arch=amd64] cdrom:[Debian GNU/Linux 8.7.1 _Jessie_ - Official amd64 DVD Binary-2 20170116-11:01]/ jessie contrib main
deb [arch=amd64] cdrom:[Debian GNU/Linux 8.7.1 _Jessie_ - Official amd64 DVD Binary-3 20170116-11:01]/ jessie contrib main
</source>
Note that when using <code>apt-cdrom add</code>, <code>apt</code> does not add the arch field <code>[arch=i386]</code> or <code>[arch=amd64]</code>.

=== preferences ===
Example {{file|/etc/apt/preferences}}:
<source lang=bash>
Package: *
Pin: release a=stable
Pin-Priority: 500

Package: *
Pin: release a=jessie-backports
Pin-Priority: 475

Package: *
Pin: release a=testing
Pin-Priority: 450

Package: *
Pin: release a=unstable
Pin-Priority: 400
</source>

=== Multi-arch support ===
* https://wiki.debian.org/Multiarch/HOWTO

To add support for '''i386''' architecture:
<source lang=bash>
dpkg --add-architecture i386
</source>

For CD-ROM repository, we must add the ''arch'' field manually. For instance:
<source lang=bash>
deb [arch=amd64] cdrom:[Debian GNU/Linux 8.7.1 _Jessie_ - Official amd64 DVD Binary-1 20170116-11:01]/ jessie contrib main
</source>


== NTFS ==
== NTFS ==

Revision as of 04:59, 1 June 2017

Apt

sources.list

Example /etc/apt/sources.list file for Debian 8, aka. Jessie:

# Stable
deb http://ftp.debian.org/debian/ jessie main contrib
deb-src http://ftp.debian.org/debian/ jessie main contrib
deb http://security.debian.org/ jessie/updates main contrib
deb-src http://security.debian.org/ jessie/updates main contrib

# Testing
deb http://ftp.debian.org/debian/ testing main contrib
deb-src http://ftp.debian.org/debian/ testing main contrib
deb http://security.debian.org/ testing/updates main contrib
deb-src http://security.debian.org/ testing/updates main contrib

# Unstable / Sid
# deb http://ftp.debian.org/debian/ sid main contrib
# deb-src http://ftp.debian.org/debian/ sid main contrib

# Backport
deb http://ftp.debian.org/debian jessie-backports main contrib
deb-src http://ftp.debian.org/debian jessie-backports main contrib

# jessie-updates, previously known as 'volatile'
# A network mirror was not selected during install.  The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
# deb http://ftp.debian.org/debian/ jessie-updates main contrib
# deb-src http://ftp.debian.org/debian/ jessie-updates main contrib

Using CD-ROM, with multiarch:

# CDROM
deb [arch=i386] cdrom:[Debian GNU/Linux 8.7.1 _Jessie_ - Official i386 DVD Binary-3 20170116-10:09]/ jessie contrib main''
deb [arch=i386] cdrom:[Debian GNU/Linux 8.7.1 _Jessie_ - Official i386 DVD Binary-2 20170116-10:09]/ jessie contrib main
deb [arch=i386] cdrom:[Debian GNU/Linux 8.7.1 _Jessie_ - Official i386 DVD Binary-1 20170116-10:09]/ jessie contrib main
deb [arch=amd64] cdrom:[Debian GNU/Linux 8.7.1 _Jessie_ - Official amd64 DVD Binary-1 20170116-11:01]/ jessie contrib main
deb [arch=amd64] cdrom:[Debian GNU/Linux 8.7.1 _Jessie_ - Official amd64 DVD Binary-2 20170116-11:01]/ jessie contrib main
deb [arch=amd64] cdrom:[Debian GNU/Linux 8.7.1 _Jessie_ - Official amd64 DVD Binary-3 20170116-11:01]/ jessie contrib main

Note that when using apt-cdrom add, apt does not add the arch field [arch=i386] or [arch=amd64].

preferences

Example /etc/apt/preferences:

Package: *
Pin: release a=stable
Pin-Priority: 500

Package: *
Pin: release a=jessie-backports
Pin-Priority: 475

Package: *
Pin: release a=testing
Pin-Priority: 450

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

Multi-arch support

To add support for i386 architecture:

dpkg --add-architecture i386

For CD-ROM repository, we must add the arch field manually. For instance:

deb [arch=amd64] cdrom:[Debian GNU/Linux 8.7.1 _Jessie_ - Official amd64 DVD Binary-1 20170116-11:01]/ jessie contrib main

NTFS

The package ntfs-3g is not installed by default, and if so, the link /sbin/mount.ntfs/sbin/mount.ntfs-3g is missing.