M
M
Max Trophy2017-01-23 18:55:27
linux
Max Trophy, 2017-01-23 18:55:27

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?
dzb08t
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

2 answer(s)
F
Fixid, 2017-01-23
@kapitoly

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

A
Alexey Belov, 2017-01-23
@KvakaMen

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 question

Ask a Question

731 491 924 answers to any question