Installation fails on new Ubuntu Server 22.04 because of containerd.io package
kdkasad opened this issue · 2 comments
Describe the bug
A clear and concise description of what the bug is.
Environment
- Ansible-NAS revision (
git rev-parse --short HEAD): e60c38b - Ansible version:
ansible [core 2.17.0]
config file = /Users/<username>/Code/Personal/Infrastructure/ansible-nas/ansible.cfg
configured module search path = ['/Users/<username>/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /opt/homebrew/Cellar/ansible/10.0.1/libexec/lib/python3.12/site-packages/ansible
ansible collection location = /Users/<username>/.ansible/collections:/usr/share/ansible/collections
executable location = /opt/homebrew/bin/ansible
python version = 3.12.3 (main, Apr 9 2024, 08:09:14) [Clang 15.0.0 (clang-1500.3.9.4)] (/opt/homebrew/Cellar/ansible/10.0.1/libexec/bin/python)
jinja version = 3.1.4
libyaml = True
- Ansible-NAS operating system (
cat /etc/lsb-releaseon the Ansible-NAS box) - Support won't be provided for non-LTS releases of Ubuntu:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.4 LTS"
- Ansible-NAS kernel (
uname -aon the Ansible-NAS box):Linux <hostname> 5.15.0-112-generic #122-Ubuntu SMP Thu May 23 07:48:21 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux - Ansible-NAS Python version (
python --versionon the Ansible-NAS box): Python 3.10.12 - Ansible-NAS Docker version (
docker --versionon the Ansible-NAS box): N/A (bug is Docker failing to install) - Latest Docker logs (
journalctl -u docker.serviceon the Ansible-NAS box): N/A - Are you running the playbook from a remote box or the Ansible-NAS box itself? Remote
- Vagrant version, if testing (
vagrant --version): - Ansible-NAS filesystems (
df -hTon the Ansible-NAS box):
Filesystem Type Size Used Avail Use% Mounted on
tmpfs tmpfs 1.6G 3.4M 1.6G 1% /run
/dev/mapper/pool-system ext4 63G 7.3G 53G 13% /
tmpfs tmpfs 7.7G 0 7.7G 0% /dev/shm
tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/sda2 ext4 2.0G 131M 1.7G 8% /boot
/dev/sda1 vfat 1.1G 6.1M 1.1G 1% /boot/efi
tmpfs tmpfs 1.6G 4.0K 1.6G 1% /run/user/1000
- Mounted filesystems (
mounton the Ansible-NAS box)
TARGET SOURCE FSTYPE OPTIONS
/ /dev/mapper/pool-system
│ ext4 rw,relatime
├─/sys sysfs sysfs rw,nosuid,nodev,noexec,relatime
│ ├─/sys/kernel/security securityfs securityfs rw,nosuid,nodev,noexec,relatime
│ ├─/sys/fs/cgroup cgroup2 cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursivepro
│ ├─/sys/fs/pstore pstore pstore rw,nosuid,nodev,noexec,relatime
│ ├─/sys/firmware/efi/efivars efivarfs efivarfs rw,nosuid,nodev,noexec,relatime
│ ├─/sys/fs/bpf bpf bpf rw,nosuid,nodev,noexec,relatime,mode=700
│ ├─/sys/kernel/debug debugfs debugfs rw,nosuid,nodev,noexec,relatime
│ ├─/sys/kernel/tracing tracefs tracefs rw,nosuid,nodev,noexec,relatime
│ ├─/sys/fs/fuse/connections fusectl fusectl rw,nosuid,nodev,noexec,relatime
│ └─/sys/kernel/config configfs configfs rw,nosuid,nodev,noexec,relatime
├─/proc proc proc rw,nosuid,nodev,noexec,relatime
│ ├─/proc/sys/fs/binfmt_misc systemd-1 autofs rw,relatime,fd=29,pgrp=1,timeout=0,minproto=5,maxproto=5,direc
│ │ └─/proc/sys/fs/binfmt_misc binfmt_misc binfmt_misc rw,nosuid,nodev,noexec,relatime
│ └─/proc/fs/nfsd nfsd nfsd rw,relatime
├─/dev udev devtmpfs rw,nosuid,relatime,size=8015060k,nr_inodes=2003765,mode=755,in
│ ├─/dev/pts devpts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000
│ ├─/dev/shm tmpfs tmpfs rw,nosuid,nodev,inode64
│ ├─/dev/hugepages hugetlbfs hugetlbfs rw,relatime,pagesize=2M
│ └─/dev/mqueue mqueue mqueue rw,nosuid,nodev,noexec,relatime
├─/run tmpfs tmpfs rw,nosuid,nodev,noexec,relatime,size=1614684k,mode=755,inode64
│ ├─/run/lock tmpfs tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k,inode64
│ ├─/run/credentials/systemd-sysusers.service
│ │ none ramfs ro,nosuid,nodev,noexec,relatime,mode=700
│ ├─/run/user/1000 tmpfs tmpfs rw,nosuid,nodev,relatime,size=1614684k,nr_inodes=403671,mode=7
│ ├─/run/rpc_pipefs sunrpc rpc_pipefs rw,relatime
│ └─/run/snapd/ns tmpfs[/snapd/ns] tmpfs rw,nosuid,nodev,noexec,relatime,size=1614684k,mode=755,inode64
│ └─/run/snapd/ns/lxd.mnt nsfs[mnt:[4026532337]]
│ nsfs rw
├─/snap/core20/2105 /dev/loop0 squashfs ro,nodev,relatime,errors=continue
├─/snap/lxd/27037 /dev/loop1 squashfs ro,nodev,relatime,errors=continue
├─/snap/snapd/20671 /dev/loop2 squashfs ro,nodev,relatime,errors=continue
└─/boot /dev/sda2 ext4 rw,relatime
└─/boot/efi /dev/sda1 vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso88
all.yml Variables
docker_image_directory:/var/lib/dockerdocker_home:/mnt/Volume2/dockerdocker_storage_driver:overlay2samba_shares_root:/nas
Expected behavior
Installation process should be successful on new Ubuntu Server 22.04 machine.
Docker should install successfully.
Actual behavior
Docker fails to install because the containerd.io package requires libc6>=2.38 but 2.35 is installed. A version >=2.36 is not available by default for Ubuntu Server 22.04.
Steps to reproduce
What does someone need to do to reproduce this?
- Install fresh Ubuntu Server 22.04 instance
- Follow Ansible-NAS installation instructions from website.
Playbook Output
See attached file ansible.log.
Additional context
This is on a fresh install of Ubuntu Server 22.04 LTS. I downloaded the ISO, flashed to USB, installed on the machine, and then immediately ran the Ansible-NAS setup.
There is nothing on the target machine except what the installer produced.
It seems to have been an issue with Ansible caching machine metadata. I previously had Debian running on that host, and it seems like since I used the same hostname, Ansible used the cached OS metadata.
The result was it populated /etc/apt/sources.list.d/download_docker_com_linux_ubuntu.list with:
deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/docker.asc] https://download.docker.com/linux/debian bookworm stable
instead of:
deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/docker.asc] https://download.docker.com/linux/ubuntu jammy stable
because it was using the old OS and release.
Changing the hostname in the inventory file (but keeping the same machine and IP) fixed the problem.
I've just got the same error.
First of all, I tried to use ubuntu 24. After a failure I made a VM with ubuntu 22 and I tried to rename the hostname but nothing resolved yet. I tried to clear gather but it didnt resolve my issue.
Update: I've just created a new VM again and modified the ssh user and hostname what is fixed the problem.