deepin 15.10 后无法在使用 add-apt-repository
Tofloor
poster avatar
王猛龙
deepin
2019-05-14 00:14
Author
首先 安装系统后 无法直接 使用 add-apt-repository 命令来添加 source 软件源
百度后 说 必须使用 python2.7 且安装 python-software-properties  software-properties-common

software-properties-common 这个软件 是可以 直接用 apt 安装的,但是 python-software-properties apt中已经没有这个命令了,:
  1. sudo apt-get install python-software-properties
  2. Reading package lists... Done
  3. Building dependency tree      
  4. Reading state information... Done
  5. Package python-software-properties is not available, but is referred to by another package.
  6. This may mean that the package is missing, has been obsoleted, or
  7. is only available from another source
  8. However the following packages replace it:
  9.   software-properties-common

  10. E: Package 'python-software-properties' has no installation candidate
Copy the Code
之后 就不知道 咋弄了,不知道如何 安装了,只安装 software-properties-common 后,使用 add-apt-repository 就会搞错
求大神如何解决啊,或者 如何 根据 ppa 地址 转换成 deb xxxx 地址也行,可以直接修改 source.list 文件,
如:  ppaibaf/graphics-drivers 地址 对应的 软件源是 啥 如何转换呢?
着急啊 希望 有大神 帮我解决一下啊
Reply Favorite View the author
All Replies
ksplite
deepin
2019-05-15 21:11
#1
首先,software-properties-common是要装的。
然后sudo apt install dirmngr,应该就好了。
p.s. dirmngr这个包很诡异,deepin软件源的目录下找不到,不能直接被其他包依赖,却可以装。。。(Debian没有这个问题)
Reply View the author
王猛龙
deepin
2019-06-17 08:12
#2
我自己找到了解决办法,
系统是 deepin linux 15.10
只需要修改 /etc/lsb-release 文件,注释原内容,追加如下修改:

  1. #DISTRIB_ID=Deepin
  2. #DISTRIB_RELEASE="15.10.1"
  3. #DISTRIB_DESCRIPTION="Deepin 15.10.1 "
  4. #DISTRIB_CODENAME=stable

  5. DISTRIB_ID=Ubuntu
  6. DISTRIB_RELEASE=16.04
  7. DISTRIB_CODENAME=trusty
  8. DISTRIB_DESCRIPTION="Ubuntu 16.04.3 LTS"
Copy the Code


就可以了使用 add-apt-repository 了,不然会报错的
Reply View the author
ysy950803
deepin
2019-10-28 07:39
#3
https://bbs.deepin.org/post/177967
我自己找到了解决办法,
系统是 deepin linux 15.10
只需要修改 /etc/lsb-release 文件,注释原内容,追加 ...

点赞!有效!
我就是在安装了software-properties-common之后依然出错,改了这个才行。
Reply View the author
blockke
deepin
2019-10-29 00:18
#4
你这居然将deepin伪装成ubuntu系统啊
Reply View the author
blockke
deepin
2019-10-29 00:19
#5
你们是不是想安装PPA??
Reply View the author
ghostry
deepin
2019-10-29 00:56
#6
我是手动添加ppa,

先写 sources 文件
然后装key,编码可以在ppa的主页拿到.

  1. sudo apt-key adv  --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 编码
Copy the Code

然后apt update
Reply View the author