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?
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.
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With