Ubuntu: Difference between revisions

From DWIKI
Tony (talk | contribs)
Tag: wikieditor
Tony (talk | contribs)
 
(22 intermediate revisions by the same user not shown)
Line 5: Line 5:
*[http://ubuntu.com http://ubuntu.com]  
*[http://ubuntu.com http://ubuntu.com]  
*https://linuxize.com/post/how-to-add-apt-repository-in-ubuntu/
*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 =
= Installation =
*[https://ubuntu.com/download/server Ubuntu server]
*[https://ubuntu.com/server/docs/install/netboot-amd64 Ubuntu Netboot/PXE installation]
*[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 ==
== Ubuntu 20.04 LTS ==
Line 30: Line 44:


=== Snags ===
=== 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 =
= HOWTO =
==Upgrading Ubuntu==
do-release-upgrade
== Change nameservers ==
== Change nameservers ==
===If using systemd-resolved===
===If using systemd-resolved===
Line 38: Line 66:
Edit /etc/netplan/00-installer-config.yaml
Edit /etc/netplan/00-installer-config.yaml
  netplan apply
  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 =
= FAQ =
Line 43: Line 92:
https://ubuntu.com/server/docs/install/storage
https://ubuntu.com/server/docs/install/storage
===Select a boot disk===
===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==
==Set timezone==
Line 51: Line 108:
  cat /etc/lsb-release
  cat /etc/lsb-release
        
        
==The repository 'http://packages.ros.org/ros/ubuntu cosmic Release' does not have a Release file.==
==Where are the changelogs?==
Switch path to repositories to old-releases.ubuntu.com
'''/usr/share/doc/*/changelog.Debian.gz'''
 
 
== disable ipv6 ==
== disable ipv6 ==


Line 98: Line 157:
  mail --config-help
  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 ==
== failed unmounting /var ==


Line 112: Line 173:
==The following signatures couldn't be verified because the public key is not available:==
==The following signatures couldn't be verified because the public key is not available:==
  gpg --keyserver keyserver.ubuntu.com --recv-keys  9D6D8F6BC857C906
  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)==
==Upgrade to 22.04 (impish Release no longer has a Release file)==
Line 125: Line 189:




==Not all translations for this language are installed. Use the Install
==Not all translations for this language are installed.==
Missing Packages button to download and install all missing packages==
Use the Install
Missing Packages button to download and install all missing packages


Instead of trying to find that mysterious button, try
Instead of trying to find that mysterious button, try
Line 135: Line 200:
Mirror not up to date?
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==
==Get into grub menu during boot==
Hold shift key
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

 

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


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