- How To Install python3-software-properties on Ubuntu 22.04
- What is python3-software-properties
- Install python3-software-properties Using apt-get
- Install python3-software-properties Using apt
- Install python3-software-properties Using aptitude
- How To Uninstall python3-software-properties on Ubuntu 22.04
- Uninstall python3-software-properties And Its Dependencies
- Remove python3-software-properties Configurations and Data
- Remove python3-software-properties configuration, data, and all of its dependencies
- References
- Summary
- E: Package ‘python-software-properties’ has no installation candidate
- Saved searches
- Use saved searches to filter your results more quickly
- install-deps failed on Ubuntu 18.04 due to «E: Package ‘python-software-properties’ has no installation candidate» #1146
- install-deps failed on Ubuntu 18.04 due to «E: Package ‘python-software-properties’ has no installation candidate» #1146
- Comments
- — ERROR : python-software-properties package was unable to be installed
How To Install python3-software-properties on Ubuntu 22.04
In this tutorial we learn how to install python3-software-properties on Ubuntu 22.04.
What is python3-software-properties
This software provides an abstraction of the used apt repositories. It allows you to easily manage your distribution and independent software vendor software sources.
There are three ways to install python3-software-properties on Ubuntu 22.04. We can use apt-get , apt and aptitude . In the following sections we will describe each method. You can choose one of them.
Install python3-software-properties Using apt-get
Update apt database with apt-get using the following command.
After updating apt database, We can install python3-software-properties using apt-get by running the following command:
sudo apt-get -y install python3-software-properties
Install python3-software-properties Using apt
Update apt database with apt using the following command.
After updating apt database, We can install python3-software-properties using apt by running the following command:
sudo apt -y install python3-software-properties
Install python3-software-properties Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.
After updating apt database, We can install python3-software-properties using aptitude by running the following command:
sudo aptitude -y install python3-software-properties
How To Uninstall python3-software-properties on Ubuntu 22.04
To uninstall only the python3-software-properties package we can use the following command:
sudo apt-get remove python3-software-properties
Uninstall python3-software-properties And Its Dependencies
To uninstall python3-software-properties and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove python3-software-properties
Remove python3-software-properties Configurations and Data
To remove python3-software-properties configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge python3-software-properties
Remove python3-software-properties configuration, data, and all of its dependencies
We can use the following command to remove python3-software-properties configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python3-software-properties
References
Summary
In this tutorial we learn how to install python3-software-properties package on Ubuntu 22.04 using different package management tools: apt, apt-get and aptitude.
E: Package ‘python-software-properties’ has no installation candidate
software-properties-common package is an alternate one for python-software-properties .
sudo apt-get install python-software-properties
sudo apt-get install software-properties-common
If you found this when trying to install torch, you’ll need to comment the two lines involving python-software-properties in torch/install-deps after installing software-properties-common .
On Ubuntu 16.04, dpkg —listfiles python-properties-common and dpkg —listfiles software-properties-common indicates that python-properties-common adds files for only Python version 2.7. And, that software-properties-common provides files for Python 3.
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
Thank you so much. I have tried so many solution (except the one that leads user to chaos: apt-get upgrade ). And finally yours is the solution that worked for me. I guess the apt package was broken somewhere..
I was getting started with the torch and faced the error.
Here is how I got it resolved.
sudo apt-get install software-properties-common
cd ~/torch; bash install-deps;
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_, "r") as f: text = f.read() change = text.replace("python-software-properties", "software-properties-common") with open(PATH_TO_, "w") as f: f.write(change)
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
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
install-deps failed on Ubuntu 18.04 due to «E: Package ‘python-software-properties’ has no installation candidate» #1146
install-deps failed on Ubuntu 18.04 due to «E: Package ‘python-software-properties’ has no installation candidate» #1146
Comments
➜ .torch git:(master) bash install-deps Hit:1 http://storage.googleapis.com/bazel-apt stable InRelease Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease Hit:3 http://dl.google.com/linux/chrome/deb stable Release Hit:5 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic InRelease Hit:6 http://sg.archive.ubuntu.com/ubuntu bionic InRelease Hit:7 http://security.ubuntu.com/ubuntu bionic-security InRelease Hit:8 http://sg.archive.ubuntu.com/ubuntu bionic-updates InRelease Hit:9 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease Hit:10 http://sg.archive.ubuntu.com/ubuntu bionic-backports InRelease Reading package lists. Done Updated successfully. 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 E: Package 'python-software-properties' has no installation candidate
➜ .torch git:(master) cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=18.04 DISTRIB_CODENAME=bionic DISTRIB_DESCRIPTION="Ubuntu 18.04 LTS"
The text was updated successfully, but these errors were encountered:
Would it be better to add software-properties-common instead?
# sudo apt-get install -y python-software-properties sudo apt-get install -y software-properties-common
Keep in mind that you can install dependencies by hand by looking at required packages for ubuntu in install-deps shell script, especially if you have some ubuntu-based distro. This script can be simply skipped once you have the majority of packages installed.
same here. Do you have a solution?
i have the same problem. finally i could solve it by replacing the line sudo apt-get install -y python-software-properties by sudo apt-get install -y software-properties-common in install-deps. hope it helps
— ERROR : python-software-properties package was unable to be installed
➜ .torch git:(master) bash install-deps Hit:1 http://storage.googleapis.com/bazel-apt stable InRelease Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease Hit:3 http://dl.google.com/linux/chrome/deb stable Release Hit:5 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic InRelease Hit:6 http://sg.archive.ubuntu.com/ubuntu bionic InRelease Hit:7 http://security.ubuntu.com/ubuntu bionic-security InRelease Hit:8 http://sg.archive.ubuntu.com/ubuntu bionic-updates InRelease Hit:9 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease Hit:10 http://sg.archive.ubuntu.com/ubuntu bionic-backports InRelease Reading package lists. Done Updated successfully. 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 E: Package 'python-software-properties' has no installation candidate
➜ .torch git:(master) cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=18.04 DISTRIB_CODENAME=bionic DISTRIB_DESCRIPTION="Ubuntu 18.04 LTS"
same problem please help me solve this