Debian: Difference between revisions

From DWIKI
Tony (talk | contribs)
Tony (talk | contribs)
mNo edit summary
 
(20 intermediate revisions by the same user not shown)
Line 17: Line 17:
*https://wiki.debian.org/DebianInstaller/NetbootAssistant
*https://wiki.debian.org/DebianInstaller/NetbootAssistant
*[https://wiki.debian.org/DebianInstaller/Preseed Preseed]
*[https://wiki.debian.org/DebianInstaller/Preseed Preseed]
 
*[https://www.howtoforge.com/tutorial/install-debian-9-stretch-via-pxe-network-boot-server/ Install Debian 9 (Stretch) via PXE Network Boot Server]
 


=Documentation=
=Documentation=
Line 25: Line 24:
*aptitude is often nicer than apt-get, but be careful
*aptitude is often nicer than apt-get, but be careful
*apt-file to find package providing a certain file
*apt-file to find package providing a certain file
==Networking on Debian==
* [https://wiki.debian.org/NetworkConfiguration Debian Network Configuration]
===Bonding===
* https://wiki.debian.org/Bonding
*[https://enterprise-support.nvidia.com/s/article/howto-create-linux-bond--lag--interface-over-infiniband-network Bonding on Infiniband]


==https==
==https==
Line 45: Line 52:
*http://wiki.debian.org/AptPinning
*http://wiki.debian.org/AptPinning


=FAQ=
=HOWTO=
==Modules==
===Set module parameters===
in '''/etc/modprobe.d/somename.conf'''
options somemodule paramname=2
 
= FAQ =
 
==Installer==
===Select a boot disk===
Depends a bit, customer installer would insist on that, but expects /boot to be a separate partition?
 
==Check if a reboot is required==
Check
/var/run/reboot-required.pkgs
or
needrestart -k -b


==the following packages have been kept back:==
== change default editor ==
Time to apt-get dist-upgrade :)


==change default editor==
  update-alternatives --config editor
  update-alternatives --config editor


==change timezone==
== change timezone ==
 
  dpkg-reconfigure tzdata
  dpkg-reconfigure tzdata


==kernel packages==
 
*kernel-image
== Change system language==
*kernel-source
dpkg-reconfigure locales
and
setlocale
== kernel packages ==
 
*kernel-image  
*kernel-source  


  volatile
  volatile




==clean cache==
 
== clean cache ==
 
  apt-get clean
  apt-get clean
     
== E: Unable to correct problems, you have held broken packages. ==
First try
dpkg --get-selections | grep hold
==reportbug: The following newer release(s) are available in the Debian archive:==
Ignore than and just continue ( see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=900254 )
==apt-get update throwing KEYEXPIRED==
Ignore that, it updated just fine. You might run into the usual warnings when installing packaged. To Be Documented.
For example:
deb [trusted=yes]
==Missing key==
Missing key D9A7E9F52B9754A34443ED1DC9A78F8C43D8720A, which is needed to verify signature
Find the key and add it to apt keyring, like
curl -fsSL https://repo.charm.sh/apt/gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/charm.gpg


=Show more package information=
=Show more package information=
  apt-cache show packagename*
  apt-cache show packagename*


==W: GPG error:==
==List installed packages==
http://ftp2.de.debian.org etch/volatile Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EC61E0B0BBE55AB3
apt list --installed
 
 
 
== W: GPG error: ==
 
[http://ftp2.de.debian.org http://ftp2.de.debian.org] etch/volatile Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EC61E0B0BBE55AB3


  gpg --keyserver wwwkeys.eu.pgp.net --recv-keys EC61E0B0BBE55AB3
  gpg --keyserver wwwkeys.eu.pgp.net --recv-keys EC61E0B0BBE55AB3
Line 76: Line 134:


Or just:
Or just:
  apt-get --allow-unauthenticated install debian-archive-keyring
  apt-get --allow-unauthenticated install debian-archive-keyring
     
Or
apt-key adv  --keyserver pgp.mit.edu --recv-keys 8B48AD6246925553
Or
gpg --keyserver keyserver.ubuntu.com --recv-key 03BBF595D4DFD35C
gpg -a --export 03BBF595D4DFD35C | apt-key add -


==show dependency tree==
==show dependency tree==
Line 83: Line 149:


==show dependencies==
==show dependencies==
  apt-cache rdepends
===What depens on package?===
  apt-cache rdepends <package>
 
  aptitude why
  aptitude why


==What package does a file belong to?==
==What package does a file belong to?==
  dpkg -S /path/to/file
  dpkg -S /path/to/file

Latest revision as of 08:01, 5 June 2026

Sites

Security

Links

Netboot/PXE

Documentation


Networking on Debian

Bonding

https

https on debian testing is a mess, ignore:

http://www.eclectica.ca/howto/ssl-cert-howto.php looks promising

Handling packages

Pinning

HOWTO

Modules

Set module parameters

in /etc/modprobe.d/somename.conf

options somemodule paramname=2

FAQ

Installer

Select a boot disk

Depends a bit, customer installer would insist on that, but expects /boot to be a separate partition?

Check if a reboot is required

Check

/var/run/reboot-required.pkgs

or

needrestart -k -b

change default editor

update-alternatives --config editor

change timezone

dpkg-reconfigure tzdata


Change system language

dpkg-reconfigure locales

and

setlocale

kernel packages

  • kernel-image
  • kernel-source
volatile


clean cache

apt-get clean
      

E: Unable to correct problems, you have held broken packages.

First try

dpkg --get-selections | grep hold

reportbug: The following newer release(s) are available in the Debian archive:

Ignore than and just continue ( see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=900254 )


apt-get update throwing KEYEXPIRED

Ignore that, it updated just fine. You might run into the usual warnings when installing packaged. To Be Documented. For example:

deb [trusted=yes]

Missing key

Missing key D9A7E9F52B9754A34443ED1DC9A78F8C43D8720A, which is needed to verify signature

Find the key and add it to apt keyring, like

curl -fsSL https://repo.charm.sh/apt/gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/charm.gpg

Show more package information

apt-cache show packagename*

List installed packages

apt list --installed


W: GPG error:

http://ftp2.de.debian.org etch/volatile Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EC61E0B0BBE55AB3

gpg --keyserver wwwkeys.eu.pgp.net --recv-keys EC61E0B0BBE55AB3
#and that other thing

Or just:

apt-get --allow-unauthenticated install debian-archive-keyring
      

Or

apt-key adv  --keyserver pgp.mit.edu --recv-keys 8B48AD6246925553

Or

gpg --keyserver keyserver.ubuntu.com --recv-key 03BBF595D4DFD35C
gpg -a --export 03BBF595D4DFD35C | apt-key add -

show dependency tree

apt-cache dotty
apt-rdepends

show dependencies

What depens on package?

apt-cache rdepends <package>
aptitude why

What package does a file belong to?

dpkg -S /path/to/file