我试图在我的本地机器上部署基于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.
我该怎么做才能解决此错误?先感谢您。
答案 0 :(得分:0)
在运行make dev.provision
时,我在Fedora中也遇到了类似的错误。这是因为我的docker版本是旧版本(我运行docker version
时获得1.13.1),openopen要求使用Docker CE,这是docker的新版本。
为解决该问题,我按照here的说明卸载了Docker版本并安装了Docker CE,并且该命令运行正常。