Je n'ai aucun problème avec "apt update" en 20.4
shell> cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.1 LTS"
Dans mon cas, le problème a été causé par le plugin Ansible mitogen
shell> ansible-playbook --version
ansible-playbook 2.9.6
config file = /home/admin/.ansible.cfg
configured module search path = ['/home/admin/.ansible/my_modules']
ansible python module location = /usr/lib/python3/dist-packages/ansible
executable location = /usr/bin/ansible-playbook
python version = 3.8.5 (default, Jul 28 2020, 12:59:40) [GCC 9.3.0]
shell> ansible localhost -m setup
/usr/lib/python3.8/os.py:1023: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used return io.open(fd, *args, **kwargs)
Le problème a disparu lorsque j'ai désactivé mitogen
shell> grep strategy ansible.cfg
# strategy = mitogen_linear