How to install Docker and kubectl on Ubuntu 22.04 desktop

Since some time apt-key is deprecated and lot of Ubuntu 22.04 based systems throws the following warning: 1 Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details You can easily fix this by properly installing Docker and Kubernetes apt archives public keys: 1 2 3 4 5 6 7 wget -qO - https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor | sudo dd of=/usr/share/keyrings/docker-archive-keyring.gpg echo 'deb [ arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg ] https://download.docker.com/linux/ubuntu jammy stable' | sudo tee /etc/apt/sources.list.d/docker.list wget -qO - https://packages.cloud.google.com/apt/doc/apt-key.gpg | gpg --dearmor | sudo dd of=/usr/share/keyrings/kubernetes-archive-keyring.gpg echo 'deb [ arch=amd64 signed-by=/usr/share/keyrings/kubernetes-archive-keyring.gpg ] http://apt.kubernetes.io/ kubernetes-xenial main' | sudo tee /etc/apt/sources.list.d/kubernetes.list Take a look at /etc/apt/sources.list.d and find out if there is also an old source definition and if you find it, just delete it, the new one will suffice. You can also find out if there are duplicates if you run sudo apt-get update. Just delete the old version which doesn’t contain signed-by inside. ...

2023-03-18 · 2 min · Boban Acimovic

How to fix possible missing firmware warning during kernel update on Linux Mint

If you are running default kernel with your Ubuntu or Linux Mint installation, you probably won’t face this problem during kernel updates because all packages are coming from the official distribution sources. However, if you like to run the newest Linux kernels and update them using mainline kernel installer, you may get warning possible missing firmware during the installation. Few days ago I got this warning on my Linux Mint 20.3 Una while installing kernel 5.17.7. In most of the cases this warning won’t affect normal functionality of your Linux machine, but if you hate warnings, like I do, here is what you can do. I guess you regularly update your apt packages, but still new kernels may complain, which further means you may need even newer package. In my case I had to install linux-firmware package from Jammy Jellyfish , the newest LTS Ubuntu, Ubuntu 22.04 LTS. ...

2022-05-18 · 2 min · Boban Acimovic

Run Docker as normal user on Ubuntu 20.04

In lot of instructions how to run docker on Ubuntu 20.04 (same applies to Linux Mint Ulyana) you may find that after installing docker you have to add your user to docker group by the following command: 1 sudo usermod -aG docker $USER If you still get permission errors, you may try to set ACL: 1 sudo setfacl -m user:$USER:rw /var/run/docker.sock

2020-11-17 · 1 min · Boban Acimovic

Install Golang package on Ubuntu Linux

Official Golang documentation contains just tar.gz package to be downloaded and installed on Ubuntu Linux, but this is not quite comfortable way because Golang won’t be automatically updated after new release. Fortunatelly, there is trustable PPA that can be used. 1 2 3 sudo add-apt-repository ppa:longsleep/golang-backports sudo apt-get update sudo apt-get install golang-go

2019-10-03 · 1 min · Boban Acimovic