docker container中添加PPA失败

我在docker container中执行命令add-apt-repository ppa:ubuntu-wine/ppa失败,提示
Cannot add PPA: 'ppa:ppaname/ppa'.
Please check that the PPA name or format is correct.

但是在host上执行同样的命令就是成功的。

根据google的多个方案,我试过先安装下面这些软件
apt-get install python-software-properties,
apt-get install software-properties-common,
apt-get install --reinstall ca-certificates,
仍然没有解决问题。

host的系统是ubuntu 14.04,64位,container的image也是基于docker官方的ubuntu14.04的镜像制作的。

不知道有人碰到过类似的问题吗?请指点下。谢谢。

阅读 6.6k
1 个回答

我大概就做了这么几件事

sudo  docker run -i -t ubuntu:14.04 /bin/bash

然后在container里面

apt-get update
apt-get install software-properties-common
add-apt-repository ppa:ubuntu-wine/ppa

ppa添加成功

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题