繁体   English   中英

在Docker容器中添加PPA失败

[英]add PPA failed in Docker container

我在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

尝试之前定义此var

LC_ALL=C.UTF-8 add-apt-repository ppa:ppaname/ppa

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM