docker container中添加PPA失败

 問露旧 发布于 2022-10-26 15:11

我在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的镜像制作的。

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

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添加成功

    2022-10-27 00:57 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有