Ubuntu: Difference between revisions
m New page: =Links= *http://ubuntu.com =FAQ= ==Get ubuntu version== cat /etc/lsb-release |
m →FAQ |
||
| (50 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
=FAQ= | |||
==Get ubuntu version== | = Links = | ||
*[http://ubuntu.com http://ubuntu.com] | |||
*https://linuxize.com/post/how-to-add-apt-repository-in-ubuntu/ | |||
*[https://launchpad.net/ubuntu/+ppas Ubuntu PPA] | |||
==Security== | |||
===Check kernel vulnerabilities=== | |||
* [https://ubuntu.com/security/cves?package=linux&version=jammy Kernel on 22.04 LTS] | |||
===Ubuntu security updates=== | |||
* https://ubuntu.com/security/notices | |||
===Hardening Ubuntu=== | |||
*[https://bookofzeus.com/harden-ubuntu/initial-setup/system-updates/ Harden Ubuntu] | |||
==Kernel== | |||
* https://launchpad.net/ubuntu/+source/linux | |||
= Installation = | |||
*[https://ubuntu.com/download/server Ubuntu server] | |||
*[https://ubuntu.com/server/docs/install/netboot-amd64 Ubuntu Netboot/PXE installation] | |||
*[https://cdimage.ubuntu.com/ubuntu-mini-iso/ Uubntu mini iso for network install] | |||
== Ubuntu 20.04 LTS == | |||
=== Storage configuration === | |||
First create a boot partition! | |||
Remember to umount cdrom before rebooting | |||
== Automatic install == | |||
*[https://ubuntu.com/server/docs/install/autoinstall https://ubuntu.com/server/docs/install/autoinstall] | |||
*[https://tlhakhan.medium.com/ubuntu-server-20-04-autoinstall-2e5f772b655a Ubuntu Server 20.04 autoinstall] | |||
*[https://louwrentius.com/understanding-the-ubuntu-2004-lts-server-autoinstaller.html Understanding the Ubuntu 20.04 LTS Server Autoinstaller] | |||
*[https://discourse.ubuntu.com/t/please-test-autoinstalls-for-20-04/15250/166 Discourse - Please test autoinstalls for 20.04] | |||
*[https://cloudinit.readthedocs.io/en/latest/topics/examples.html Cloudconfig examples] | |||
| |||
=== Snags === | |||
=Documentation= | |||
==Network configuration== | |||
*[https://ubuntu.com/server/docs/configuring-networks Configuring networks] | |||
*[[Netplan]] | |||
*[https://ubuntu-archive-team.ubuntu.com/phased-updates.html Ubuntu Phased Updates] | |||
==APT new style== | |||
Is called '''deb822''' | |||
*https://gist.github.com/Mealman1551/f75223b3cade0a218d51c06f6cb08f40 | |||
= HOWTO = | |||
==Upgrading Ubuntu== | |||
do-release-upgrade | |||
== Change nameservers == | |||
===If using systemd-resolved=== | |||
Show nameservers | |||
resolvectl status | |||
Edit /etc/netplan/00-installer-config.yaml | |||
netplan apply | |||
==Using Ubuntu live CD for resque== | |||
*[https://help.ubuntu.com/community/LiveCdRecovery LiveCdRecovery | |||
==Download source code of package== | |||
Add to /etc/apt/sources.list.d/ubuntu.sources | |||
Types: deb-src | |||
URIs: http://us.archive.ubuntu.com/ubuntu/ | |||
Suites: noble noble-updates noble-backports noble-proposed | |||
Components: main restricted universe multiverse | |||
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg | |||
then update | |||
apt-get update | |||
and to get the sources | |||
apt-get source somepackage | |||
==Disable networking== | |||
= FAQ = | |||
==Installing Ubuntu== | |||
https://ubuntu.com/server/docs/install/storage | |||
===Select a boot disk=== | |||
==Upgrading== | |||
===Please install all available updates for your release before upgrading.=== | |||
Double check | |||
apt-get dist-upgrade | |||
and you might even need to reboot | |||
===Failed unmounting cdrom.mount=== | |||
==Set timezone== | |||
dpkg-reconfigure tzdata | |||
== Get ubuntu version == | |||
cat /etc/lsb-release | cat /etc/lsb-release | ||
==Where are the changelogs?== | |||
'''/usr/share/doc/*/changelog.Debian.gz''' | |||
== disable ipv6 == | |||
sysctl: | |||
net.ipv6.conf.default.disable_ipv6=1 | |||
net.ipv6.conf.all.disable_ipv6=1 | |||
== changing locale == | |||
/etc/default/locale | |||
locale-gen | |||
dpkg-reconfigure keyboard-configuration | |||
setupcon | |||
loadkeys us | |||
and lots more | |||
| |||
| |||
== mail: command not found == | |||
install heirloom-mailx | |||
OR | |||
install mailutils | |||
REMEMBER: to fix sender domain | |||
create /etc/mailutils.conf containing | |||
address { | |||
email-domain yourdom.ain; | |||
}; | |||
and check out | |||
mail --config-help | |||
==The repository 'http://packages.ros.org/ros/ubuntu cosmic Release' does not have a Release file.== | |||
Switch path to repositories to old-releases.ubuntu.com | |||
== failed unmounting /var == | |||
ignore it? it's a journald issue | |||
== multipathd[667]: sda: failed to get sgio uid: No such file or directory == | |||
Seems to be vmware setting: disk.EnableUUID = true | |||
CHECK! | |||
| |||
==The following signatures couldn't be verified because the public key is not available:== | |||
gpg --keyserver keyserver.ubuntu.com --recv-keys 9D6D8F6BC857C906 | |||
Seems this doesn't (always) work, so | |||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <yourkey> | |||
which will complain about deprecation, but it should work | |||
==Upgrade to 22.04 (impish Release no longer has a Release file)== | |||
That sucks, now what? | |||
Check https://help.ubuntu.com/community/EOLUpgrades | |||
When apt-get update fails, set your repositories to old-releases.ubuntu.com | |||
==Upgrades to the development release are only available from the latest supported release== | |||
More obscure mess. Check https://linuxconfig.org/how-to-upgrade-ubuntu-to-20-04-lts-focal-fossa | |||
==Not all translations for this language are installed.== | |||
Use the Install | |||
Missing Packages button to download and install all missing packages | |||
Instead of trying to find that mysterious button, try | |||
check-language-support | |||
which will list missing packages | |||
==Release file not valid yet== | |||
Mirror not up to date? | |||
==Keep your own resolv.conf== | |||
Replace the symlink /etc/resolv.conf with a file | |||
==The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 23E7166788B63E1E== | |||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 23E7166788B63E1E | |||
==Get into grub menu during boot== | |||
Hold shift key | |||
==Error messages== | |||
===The repository 'http://archive.ubuntu.com/ubuntu jammy InRelease' is no longer signed.=== | |||
Try again later? | |||
===Could not connect to archive.ubuntu.com:443=== | |||
Doesn't support https, pick another mirror | |||
Latest revision as of 08:59, 4 June 2026
Links
Security
Check kernel vulnerabilities
Ubuntu security updates
Hardening Ubuntu
Kernel
Installation
Ubuntu 20.04 LTS
Storage configuration
First create a boot partition!
Remember to umount cdrom before rebooting
Automatic install
- https://ubuntu.com/server/docs/install/autoinstall
- Ubuntu Server 20.04 autoinstall
- Understanding the Ubuntu 20.04 LTS Server Autoinstaller
- Discourse - Please test autoinstalls for 20.04
- Cloudconfig examples
Snags
Documentation
Network configuration
APT new style
Is called deb822
HOWTO
Upgrading Ubuntu
do-release-upgrade
Change nameservers
If using systemd-resolved
Show nameservers
resolvectl status
Edit /etc/netplan/00-installer-config.yaml
netplan apply
Using Ubuntu live CD for resque
- [https://help.ubuntu.com/community/LiveCdRecovery LiveCdRecovery
Download source code of package
Add to /etc/apt/sources.list.d/ubuntu.sources
Types: deb-src URIs: http://us.archive.ubuntu.com/ubuntu/ Suites: noble noble-updates noble-backports noble-proposed Components: main restricted universe multiverse Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
then update
apt-get update
and to get the sources
apt-get source somepackage
Disable networking
FAQ
Installing Ubuntu
https://ubuntu.com/server/docs/install/storage
Select a boot disk
Upgrading
Please install all available updates for your release before upgrading.
Double check
apt-get dist-upgrade
and you might even need to reboot
Failed unmounting cdrom.mount
Set timezone
dpkg-reconfigure tzdata
Get ubuntu version
cat /etc/lsb-release
Where are the changelogs?
/usr/share/doc/*/changelog.Debian.gz
disable ipv6
sysctl:
net.ipv6.conf.default.disable_ipv6=1 net.ipv6.conf.all.disable_ipv6=1
changing locale
/etc/default/locale
locale-gen
dpkg-reconfigure keyboard-configuration setupcon
loadkeys us
and lots more
mail: command not found
install heirloom-mailx
OR
install mailutils
REMEMBER: to fix sender domain
create /etc/mailutils.conf containing
address {
email-domain yourdom.ain;
};
and check out
mail --config-help
The repository 'http://packages.ros.org/ros/ubuntu cosmic Release' does not have a Release file.
Switch path to repositories to old-releases.ubuntu.com
failed unmounting /var
ignore it? it's a journald issue
multipathd[667]: sda: failed to get sgio uid: No such file or directory
Seems to be vmware setting: disk.EnableUUID = true
CHECK!
The following signatures couldn't be verified because the public key is not available:
gpg --keyserver keyserver.ubuntu.com --recv-keys 9D6D8F6BC857C906
Seems this doesn't (always) work, so
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <yourkey>
which will complain about deprecation, but it should work
Upgrade to 22.04 (impish Release no longer has a Release file)
That sucks, now what? Check https://help.ubuntu.com/community/EOLUpgrades
When apt-get update fails, set your repositories to old-releases.ubuntu.com
Upgrades to the development release are only available from the latest supported release
More obscure mess. Check https://linuxconfig.org/how-to-upgrade-ubuntu-to-20-04-lts-focal-fossa
Not all translations for this language are installed.
Use the Install Missing Packages button to download and install all missing packages
Instead of trying to find that mysterious button, try
check-language-support
which will list missing packages
Release file not valid yet
Mirror not up to date?
Keep your own resolv.conf
Replace the symlink /etc/resolv.conf with a file
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 23E7166788B63E1E
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 23E7166788B63E1E
Get into grub menu during boot
Hold shift key
Error messages
The repository 'http://archive.ubuntu.com/ubuntu jammy InRelease' is no longer signed.
Try again later?
Could not connect to archive.ubuntu.com:443
Doesn't support https, pick another mirror
