![](/img/trans.png)
[英]Ubuntu 14.04 Try to “sudo add-apt-repository ppa:tualatrix/ppa” failed
[英]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.