sudo apt-get install python-software-properties Reading package lists... Done Building dependency tree... Done Package python-software-properties is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: software-properties-common E: Package 'python-software-properties' has no installation candidate
How can i fix this error?
6 Answers
Install software-properties-common by running,
sudo apt-get install software-properties-commonsoftware-properties-common package is an alternate one for python-software-properties.
for <= 12.04
sudo apt-get install python-software-propertiesfor >= 12.10
sudo apt-get install software-properties-common 5 I had this issue on Ubuntu 18.04
Tried several way finally this fixed my issue
sudo apt --fix-broken install python-pycurl python-apt 1 I was getting started with the torch and faced the error.
Here is how I got it resolved.
goto
Home -> Torch -> Open
install-depsfind the keyword
python-software-propertiesand replace it withsoftware-python-common, save and exit.install the software-python-common with the command
sudo apt-get install software-properties-commonrun the command
cd ~/torch; bash install-deps;
You are done!!
2This is my 1st post and I have only used linux for a few weeks so please go easy on me =].
If ymin's method hits an error of
root@my32bitbox:~# sudo apt-get install python-software-properties git-core. Reading package lists... Done Building dependency tree
Reading state information... Done Package python-software-properties is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it:
software-properties-common
... this slightly tweaked line worked for me (note: if it makes any difference...I needed it to install 32-bit dependencies for my own wine build)
> sudo apt-get install software-properties-common git-core In the executable install-deps within ~/torch, you need to edit it so that every instance of python-software-properties should be software-properties-common
An easy solution that worked for me would be to just run this simple python3 script:
with open(PATH_TO_<install-deps>, "r") as f: text = f.read()
change = text.replace("python-software-properties", "software-properties-common")
with open(PATH_TO_<install-deps>, "w") as f: f.write(change) I also got the same error. Open terminal and type below command
sudo apt-get install -y software-properties-commonthen, this
sudo apt-get install -y python-software-propertiesI hope this will work. It worked in my system.