OpenVoiceOS / ovos-installer

Open Voice OS and/or HiveMind installer using Ansible with an intuitive and easy Text-based User Interface
https://www.openvoiceos.org
48 stars 13 forks source link

Handle existing `docker.list` file and GPG key #15

Closed goldyfruit closed 7 months ago

goldyfruit commented 8 months ago
TASK [ovos-installer : Add Docker repository] ***************************************************************************************************************************************************
Saturday 11 November 2023  23:35:18 +0100 (0:00:00.308)       0:00:06.653 ***** 
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: apt_pkg.Error: E:Conflicting values set for option Signed-By regarding source https://download.docker.com/linux/debian/ bookworm: /etc/apt/keyrings/docker.gpg != /usr/share/keyrings/docker.gpg, E:The list of sources could not be read.
fatal: [127.0.0.1]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n  File \"<stdin>\", line 16, in <module>\n  File \"<frozen runpy>\", line 226, in run_module\n  File \"<frozen runpy>\", line 98, in _run_module_code\n  File \"<frozen runpy>\", line 88, in _run_code\n  File \"/tmp/ansible_ansible.builtin.apt_repository_payload_gz5cntlz/ansible_ansible.builtin.apt_repository_payload.zip/ansible/modules/apt_repository.py\", line 765, in <module>\n  File \"/tmp/ansible_ansible.builtin.apt_repository_payload_gz5cntlz/ansible_ansible.builtin.apt_repository_payload.zip/ansible/modules/apt_repository.py\", line 742, in main\n  File \"/usr/lib/python3/dist-packages/apt/cache.py\", line 170, in __init__\n    self.open(progress)\n  File \"/usr/lib/python3/dist-packages/apt/cache.py\", line 232, in open\n    self._cache = apt_pkg.Cache(progress)\n                  ^^^^^^^^^^^^^^^^^^^^^^^\napt_pkg.Error: E:Conflicting values set for option Signed-By regarding source https://download.docker.com/linux/debian/ bookworm: /etc/apt/keyrings/docker.gpg != /usr/share/keyrings/docker.gpg, E:The list of sources could not be read.\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
goldyfruit commented 7 months ago

Handled by https://github.com/OpenVoiceOS/ovos-installer/commit/ce0c4e35a479b4b01013810ba264178e30b61b6a