Fix Error sudo: add-apt-repository: not found
2016-07-10 00:00
375 查看
I got this error while I was trying to add a PPA at school, on a Ubuntu 12.04 LTS Server.
To fix this error, you have to install the software-properties-common:
just need to insatll this command is ok.
########################################################################
This is all. Now your command for adding PPAs works like a charm.
If you want to find out how I have fixed this error by myself, without external / Google help, read further.
I have search with apt-file for the add-apt-repository and found out in which package is the command located. Apt file searches for files, inside packages and tells you in what package the file you had searched is located.
It is not installed by default, so you need to do this:
This is how you use apt-file for fishing files inside packages:
So, indeed, it is in the python-software-properties package.
To fix this error, you have to install the software-properties-common:
$ sudo apt-get install software-properties-common
just need to insatll this command is ok.
########################################################################
This is all. Now your command for adding PPAs works like a charm.
If you want to find out how I have fixed this error by myself, without external / Google help, read further.
I have search with apt-file for the add-apt-repository and found out in which package is the command located. Apt file searches for files, inside packages and tells you in what package the file you had searched is located.
It is not installed by default, so you need to do this:
$ sudo apt-get install apt-file && apt-file update
This is how you use apt-file for fishing files inside packages:
$ apt-file search add-apt-repository python-software-properties: /usr/bin/add-apt-repository python-software-properties: /usr/share/man/man1/add-apt-repository.1.gz
So, indeed, it is in the python-software-properties package.
相关文章推荐
- Pull is not possible because you have unmerged ...
- 访问Nginx发生SSL connection error的一种情况
- Ubuntu 下修改 Could not reliably determine the serve
- Linux下提示命令找不到:bash:command not found
- 星外虚拟主机访问被控出现Unspecified error解决方法
- IIS 错误 Server Application Error 详细解决方法
- On Error Resume Next 语句
- IIS运行错误 Server Application Error 错误代码 Error: 8004的解决方法
- Lua编程示例(一):select、debug、可变参数、table操作、error
- 解决Default storage engine (InnoDB) is not available导致mysql无法启动的修改办法
- 收集整理的http/1.1 500 server error错误的解决方法
- SQL 2005 ERROR:3145 解决办法(备份集中的数据库备份与现有的数据库不同)
- MySQL4 File ‘c:\mysql\share\charsets\?.conf’ not found (Errcode: 22)的解决方法
- VBScript中On Error语句用法小结
- 解决VC++编译报错error C2248的方案
- PHP常见的6个错误提示及解决方法
- asp Fix、Int、Round、CInt函数使用说明
- jQuery Uploadify 上传插件出现Http Error 302 错误的解决办法
- MySQL令人头疼的Aborted告警案例分析 推荐
- Python3 错误和异常