我正在尝试使用Debian 10在Azure中为虚拟机编写Ansible剧本,但是在安装MongoDB时出现此错误apt cache update failed
。我正在使用 Ansible 2.9.2和Python 3.7。。
错误的完整踪迹是:
完整的回溯是:
File "/tmp/ansible_apt_repository_payload_6nwou6ke/ansible_apt_repository_payload.zip/ansible/modules/packaging/os/apt_repository.py", line 548, in main
File "/usr/lib/python3/dist-packages/apt/cache.py", line 562, in update
raise FetchFailedException(e)
fatal: [debian10]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"codename": null,
"filename": null,
"install_python_apt": true,
"mode": null,
"repo": "deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen",
"state": "present",
"update_cache": true,
"validate_certs": true
}
},
"msg": "apt cache update failed"
}
我曾经使用过银河角色,并且在许多教程中都尝试过它,但是我无法解决它。有人可以帮忙吗?