Celestia 1.6.4 on Ubuntu 18.04/20.04/22.04 (bionic/focal/jammy) and derived systems:
# Download OpenGPG key for validate repository signatures
$ wget https://celestiaproject.space/celestiaproject.key
# Check the downloaded key
$ gpg --keyid-format long celestiaproject.key
gpg: WARNING: no command supplied. Trying to guess what you mean ...
pub rsa4096/982A4D8BCC132493 2023-11-04 [SC]
0CE58AD6307B38B03C681111982A4D8BCC132493
uid Celestia Development Team
sub rsa4096/9778A86030002CBE 2023-11-04 [E]
# Import the key
$ sudo apt-key add celestiaproject.key
# Update apt sources.list
$ echo "deb https://celestiaproject.space/ubuntu/ ${SUITE} main" | sudo tee /etc/apt/sources.list.d/celestia.list
# If Celestia sources are required then also add
$ echo "deb-src https://celestiaproject.space/ubuntu/ ${SUITE} main" | sudo tee -a /etc/apt/sources.list.d/celestia.list
# Update apt database and install Celestia
sudo apt update && sudo apt install celestia
Where SUITE is bionic, focal or jammy for 18.04, 20.04 or 22.04 accordingly.
Celestia 1.7 on Ubuntu 22.04/24.04 and derived systems:
curl https://download.opensuse.org/repositories/home:/munix9:/unstable/Ubuntu_${VERSION}/Release.key | sudo apt-key add -
echo "deb https://download.opensuse.org/repositories/home:/munix9:/unstable/Ubuntu_${VERSION}/ ./" | sudo tee /etc/apt/sources.list.d/celestia-obs.list
sudo apt update && sudo apt install celestia
Where VERSION is 22.04 or 24.04.