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

Serge Hallyn serge.hallyn at ubuntu.com
Fri Apr 5 13:00:22 UTC 2013


Quoting brian mullan (bmullan.mail at gmail.com):
> 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?

You need to install software-properties-common, since I think quantal or
so.  I opened a bug about that at some point (because command-not-found
still suggested the wrong package), not sure what happened with that.

-serge




More information about the lxc-users mailing list