E: Package 'python-software-properties' has no installation candidate

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-common

software-properties-common package is an alternate one for python-software-properties.

for <= 12.04

sudo apt-get install python-software-properties

for >= 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.

  1. goto

    Home -> Torch -> Open install-deps

    find the keyword python-software-properties and replace it with software-python-common, save and exit.

  2. install the software-python-common with the command

    sudo apt-get install software-properties-common 
  3. run the command

    cd ~/torch; bash install-deps;

You are done!!

2

This 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-common

then, this

sudo apt-get install -y python-software-properties

I hope this will work. It worked in my system.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like