gpt4 book ai didi

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

转载 作者:IT老高 更新时间:2023-10-28 21:24:41 24 4
gpt4 key购买 nike

我在 docker 容器中运行了 add-apt-repository ppa:ubuntu-wine/ppa,但由于通知失败:

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

它在主机上的工作方式。

google了很多之后,我尝试了以下方法:

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

关于ubuntu - 在 Docker 容器中添加 PPA 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26486705/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com