Ubuntu: Difference between revisions

From DWIKI
mNo edit summary
 
(24 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]


= Installation =
= Installation =
*[https://ubuntu.com/server/docs/install/netboot-amd64 Ubuntu Netboot/PXE installation]


== Ubuntu 20.04 LTS ==
== Ubuntu 20.04 LTS ==
Line 17: Line 19:
        
        


==Automatic install==
*https://ubuntu.com/server/docs/install/autoinstall




== 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]]
= HOWTO =
== 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


= FAQ =
= FAQ =
==Installing Ubuntu==
https://ubuntu.com/server/docs/install/storage
===Select a boot disk===
==Set timezone==
dpkg-reconfigure tzdata


== Get ubuntu version ==
== Get ubuntu version ==
Line 28: Line 75:
  cat /etc/lsb-release
  cat /etc/lsb-release
        
        
==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
== disable ipv6 ==
sysctl:
net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.all.disable_ipv6=1


== changing locale ==
== changing locale ==
Line 43: Line 98:
and lots more
and lots more


 


 


== mail: command not found ==
== mail: command not found ==
install heirloom-mailx
OR


install mailutils
install mailutils
     
 
REMEMBER: to fix sender domain  
REMEMBER: to fix sender domain


create /etc/mailutils.conf containing
create /etc/mailutils.conf containing
  address {
  address {
         email-domain: yourdom.ain;
         email-domain yourdom.ain;
  };
  };
and check out
and check out
  mail --config-help
  mail --config-help


Line 69: Line 133:


 
 
==The following signatures couldn't be verified because the public key is not available:==
gpg --keyserver keyserver.ubuntu.com --recv-keys  9D6D8F6BC857C906
==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?
==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 15:23, 3 November 2024


Links

Installation

Ubuntu 20.04 LTS

Storage configuration

First create a boot partition!

Remember to umount cdrom before rebooting



Automatic install

 

Snags

Documentation

Network configuration

HOWTO

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

FAQ

Installing Ubuntu

https://ubuntu.com/server/docs/install/storage

Select a boot disk

Set timezone

dpkg-reconfigure tzdata

Get ubuntu version

cat /etc/lsb-release
      

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

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

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


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?


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