sudo: add-apt-repository: command not found

5 risposte [Ultimo contenuto]
Adrian Lewis
Offline
Iscritto: 05/07/2014

Hi,

I recently upgraded to Trisquel 6.0.1. I had problems with the GUI
version of Emacs 24, so I purged emacs. However, when I attempted to add
the DNS GNU ppa with 'sudo add-apt-repository ppa:dns/gnu' I am returned
with 'sudo: add-apt-repository: command not found'!

Many Thanks

Aidy

Legimet
Offline
Iscritto: 12/10/2013

That command is in the package "python-software-properties". You should already have it, but if you don't, then install (if you don't have it) or reinstall that package.

If you don't have it:
$ sudo apt-get install python-software-properties
If you do have it reinstall with:
$ sudo apt-get install --reinstall python-software-properties

Adrian Lewis
Offline
Iscritto: 05/07/2014

Hi

On Wed, 7 May 2014, at 02:00 PM, name at domain wrote:
> That command is in the package "python-software-properties". You should
> already have it, but if you don't, then install (if you don't have it) or
> reinstall that package.
>
> If you don't have it:
> $ sudo apt-get install python-software-properties
> If you do have it reinstall with:
> $ sudo apt-get install --reinstall python-software-properties

I originally thought that this may be the problem, but I already had the
latest version of python-software-properties installed. I have
reinstalled the package and I still receive the same problem.

Many Thanks

Aidy

Adrian Malacoda

I am a member!

Offline
Iscritto: 12/26/2010

Forget what I said before. They're both apparently valid (add-apt-repository/apt-add-repository).

You can add the PPA manually by putting something like the following in /etc/apt/sources.list (or a file under /etc/apt/sources.list.d e.g. /etc/apt/sources.list.d/dns-gnu.list)

deb http://ppa.launchpad.net/dns/gnu/ubuntu precise main
deb-src http://ppa.launchpad.net/dns/gnu/ubuntu precise main

SalmanMohammadi
Offline
Iscritto: 02/23/2012

1.
Is add-apt-repository available in /usr/bin?

2.
If you wanna have a good looking Emacs24 you should compile it on your system. The Emacs24 which is in the dns ppa is compiled against GNOME 2 not GNOME 3. And also it is not the latest stable version.

add-apt-repository.png emacs24-on-trisquel.png
GustavoCM

I am a member!

Offline
Iscritto: 11/20/2012

https://launchpad.net/~cassou/+archive/emacs has emacs packages compatible with GTK3. I didn't check for non-free stuff there, since it's Emacs...