add-apt-repository 没这个命令
Tofloor
poster avatar
able
deepin
2016-08-05 23:44
Author
新版的系统没有 add-apt-repository 没这个命令 。为何? 怎么处理?
Reply Favorite View the author
All Replies
avatar
ddb_01
deepin
2016-08-06 00:01
#1
这个是ppa的命令。deepin 15开是就是基于debian,不支持ubuntu的ppa了。
如果有什么需要的软件官方没有收录的话,可以上报给官方。https://bbs.deepin.org/post/34080
Reply View the author
avatar
Island
deepin
2016-08-06 00:30
#2
sudo apt-get install software-properties-common   这个软件包中包含你要的命令,但是目前deepin2015.2不支持添加ppa,15.3会支持这个功能,但是可能会有软件版本冲突。
Reply View the author
avatar
A·S·M·X·T 😏😜
deepin
2016-08-06 03:07
#3
直接在/etc/apt/sources.list.d中建一个xxxx.list的文件,把ppa源的地址写入就行了。   
比如moon player          ppa:cos-lyk/moonsoft

deb http://ppa.launchpad.net/cos-lyk/moonsoft/ubuntu xenial main
Reply View the author
avatar
xiao-cheng
deepin
2016-08-06 07:55
#4
此问题解决办法如下,个人不建议~
sudo apt-get install python-software-properties  # 安装依赖
sudo apt-get install software-properties-common # 安装依赖

接下来就是配置/etc/lsb-release文件,因为ppa是ubuntu内容,将内容改为:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.10
DISTRIB_CODENAME=oneiric
DISTRIB_DESCRIPTION="Ubuntu oneiric"

此时 ppa 正常,但最好cp一份lsb文件,以防万一,另外用完ppa记得删除!
Reply View the author