【发布时间】:2018-07-16 09:12:49
【问题描述】:
我试图在我的本地机器上部署基于 docker 的 devstack。我遵循了此处的官方安装指南:https://github.com/edx/devstack。在我不得不运行make dev.provision
当我运行配置命令时,我遇到了以下失败的任务
TASK [server_utils : Install ubuntu system packages] ***************************
failed: [localhost] (item=[u'ack-grep', u'mosh', u'tree', u'screen', u'tmux', u'curl', u'vim', u'dnsutils', u'inetutils-telnet', u'netcat']) => {"failed": true, "item": ["ack-grep", "mosh", "tree", "screen", "tmux", "curl", "vim", "dnsutils", "inetutils-telnet", "netcat"], "msg": "Failed to update apt cache."}
to retry, use: --l/admin/theming/sitetheme/imit @/edx/app/edx_ansible/edx_ansible/playbooks/edxapp.retry
PLAY RECAP *********************************************************************
localhost : ok=2 changed=1 unreachable=0 failed=1
我使用 docker exec -it mycontainer bash 通过 bash 访问 lms 容器并手动运行 apt update,因为配置程序似乎在尝试“安装 ubuntu 系统包”并随后“更新 apt 缓存失败”时遇到错误。 apt update 命令输出如下:
# apt update
Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:2 http://archive.ubuntu.com/ubuntu xenial InRelease
Hit:3 http://ppa.launchpad.net/git-core/ppa/ubuntu xenial InRelease
Hit:4 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:5 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
Ign:6 http://nginx.org/packages/ubuntu xenial InRelease
Hit:7 http://ppa.edx.org xenial InRelease
Err:8 http://nginx.org/packages/ubuntu xenial Release
Connection failed [IP: 206.251.255.63 80]
Reading package lists... Done
E: The repository 'http://nginx.org/packages/ubuntu xenial Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
我需要做什么来修复这个错误?先感谢您。
【问题讨论】:
-
尝试注释掉 /etc/apt/sources.list 文件或 /etc/apt/sources.list.d 文件夹中的一些文件中的
#http://nginx.org/packages/ubuntu xenial Release。 -
难道不需要这些更新吗?
-
它的 nginx 所以我认为它不涉及这个 docker。
标签: docker provisioning devstack openedx