Answer the question
In order to leave comments, you need to log in
Why does the add repository command not work on Linux Debian?
The following instruction was found to install PostgreSQL. It is for Ubuntu, but it seems that it should also work for Debian, right?
And already on the first line sudo apt-add-repository ppa:pitti/postgresql system response:
Command not found. Doesn't work without sudo either. I'm running as root.
What can be wrong?
Answer the question
In order to leave comments, you need to log in
To use the add-apt-repository mechanism, software-properties-common must be installed on the system
apt-get install software-properties-common python-software-properties
Or find direct links to the repository and add it to apt.list
But, on Lokum's servers, everything is not so simple. The server under Ubuntu will always scream that there is no such command, and I don’t know you. Here's what to do to get around this problem.
sudo apt-get install python-software-properties
sudo cp
add-apt-repository.sh.txt /usr/sbin/add-apt-repository
sudo chmod o +x /usr/sbin/add-apt-repository
sudo chown root:root /usr/sbin/add-apt-repository
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question