[Lxc-users] sudo add-apt-repository command in container

Papp Tamas tompos at martos.bme.hu
Fri Apr 5 12:58:57 UTC 2013


On 04/05/2013 02:46 PM, brian mullan wrote:
> Recently I had the need to use the add-apt-repository command in some containers.
>
> But when executing it:
>
> *sudo add-apt-repository ppa:<some ppa>/stable*
> *
> *
> *it fails*
> *sudo: add-apt-repository: command not found*
>
> so I made sure python-software-properties was installed:
>
> *sudo apt-get update && sudo apt-get install python-software-properties*
> *
> *
> *then retried:*
> *sudo add-apt-repository ppa:<some ppa>/stable*
> *
> *
> *but it still fails*
> *sudo: add-apt-repository: command not found*
>
> Can anyone give me an idea why this is happening or what I can look at?
>
> This was working several months ago last time I tried it on the same machines w/same OS.
>
> But now on several machines it fails when done in a container (works in hosts).
>
> All machines are ubuntu 12.10

It's not LXC specific.

You need software-properties-common .

I suggest to install and use apt-file.


Cheers,
tamas





More information about the lxc-users mailing list