加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

ubuntu – 在Docker容器中添加PPA失败

发布时间:2020-12-16 03:33:01 所属栏目:安全 来源:网络整理
导读:我在docker容器中运行了add-apt-repository ppa:ubuntu-wine / ppa,但是没有通知: Cannot add PPA: 'ppa:ppaname/ppa'.Please check that the PPA name or format is crrect. Hower它在主机上工作. 谷歌搜索了很多,我尝试了以下几点: apt-get install pyt

我在docker容器中运行了add-apt-repository ppa:ubuntu-wine / ppa,但是没有通知:

Cannot add PPA: 'ppa:ppaname/ppa'.
Please check that the PPA name or format is crrect.

Hower它在主机上工作.

谷歌搜索了很多,我尝试了以下几点:

apt-get install python-software-properties
apt-get install software-properties-common
apt-get install --reinstall ca-certificates

并没有奏效.

主机上的系统是ubuntu 14.04,64bit.

容器的图像基于DOCKER HUB的ubuntu 14.04.

有谁能够帮我?

我不确定你出了什么问题.

以下是我如何使用它:

$docker run -t -i --rm ubuntu:14.04 /bin/bash

And inside the container
# apt-get update && apt-get install -y software-properties-common
# add-apt-repository ppa:ubuntu-wine/ppa
# apt-get update

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读