我在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的鏡像製作的。
不知道有人碰到過類似的問題嗎?請指點下。謝謝。
我大概就做了這麼幾件事
然後在container裡面
ppa添加成功