Docker Installation issue
To resolve this issue, you can follow these steps to install Docker on Ubuntu:
- Update the package lists to make sure you have the latest information about available packages:
sudo apt update
- Install the necessary dependencies:
sudo apt install apt-transport-https ca-certificates curl software-properties-common
- Add the Docker GPG key to ensure the packages are signed:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
- Add the Docker repository to your system:
For x86_64/amd64 systems:
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
For ARM64/aarch64 systems (e.g., Raspberry Pi):
echo "deb [arch=arm64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
- Update the package lists again to include the Docker repository:
sudo apt update
- Now you should be able to install Docker and its components:
sudo apt install docker-ce docker-ce-cli containerd.io
If you follow these steps, you should be able to install Docker on your Ubuntu system without encountering the errors you mentioned. Make sure to run the commands with sudo or as the root user.