Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

add PPA failed in Docker container

Tags:

docker

ubuntu

apt

I ran add-apt-repository ppa:ubuntu-wine/ppa in docker container, but failed with the notice:

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

Hower it worked on the host.

After googled a lot,I've tried the followings:

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

and didn't work.

The system on host is ubuntu 14.04,64bit.

The image of container is based on ubuntu 14.04 from DOCKER HUB.

Can anybody help me?

like image 534
zhenxing1114 Avatar asked Oct 21 '14 12:10

zhenxing1114


People also ask

How do I add a PPA key?

This means that you now need to add the PPA's key to apt before you install any of its packages. It's really easy: all you need to do is copy the PPA's public key and import it using System->Administration->Software Sources and then the Authentication tab. Of course, you can also do it in the terminal.

What is PPA file in Ubuntu?

Personal Package Archives (PPAs) are software repositories designed for Ubuntu users and are easier to install than other third-party repositories. PPAs are often used to distribute pre-release software so that it can be tested.

How do I get to the PPA on Ubuntu?

In Ubuntu search for “Software & Updates” and in Linux Mint, search for “Software Sources” from the Unity Dash and System Menu respectively. In the “Software & Updates” or “Software Sources” interface below, head over to Other Software tab and click on Add button to add a new PPA.

How do I know if Docker is installed on Ubuntu?

To check if you have Docker installed, run command docker ps or docker info on a terminal screen to verify it is installed and running.


1 Answers

I'm not sure what went wrong with you.

Here's how I got it working:

$ 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
like image 193
Fedalto Avatar answered Oct 02 '22 14:10

Fedalto