add-apt-repository时的错误
Tofloor
poster avatar
chinesedragon
deepin
2013-03-11 06:16
Author
  1. linuxdeepin@linuxdeepin-VirtualBox:~/ExternC$ sudo add-apt-repository ppa:webupd8team/sublime-text-2
  2. You are about to add the following PPA to your system:
  3. Sublime Text 2 packages - the .deb will automatically download the latest build  from http://www.sublimetext.com/dev or beta from http://www.sublimetext.com/2 (Adobe Flash Player installer - style).
  4. More info and feedback:
  5. http://www.webupd8.org/2011/03/sublime-text-2-ubuntu-ppa.html
  6. http://www.webupd8.org/2012/03/sublime-text-2-ppa-separate-development.html
  7. More info: https://launchpad.net/~webupd8team/+archive/sublime-text-2
  8. Press [ENTER] to continue or ctrl-c to cancel adding it
  9. Traceback (most recent call last):
  10.   File "/usr/bin/add-apt-repository", line 160, in
  11.     sp = SoftwareProperties(options=options)
  12.   File "/usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py", line 96, in __init__
  13.     self.reload_sourceslist()
  14.   File "/usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py", line 584, in reload_sourceslist
  15.     self.distro.get_sources(self.sourceslist)   
  16.   File "/usr/lib/python2.7/dist-packages/aptsources/distro.py", line 87, in get_sources
  17.     raise NoDistroTemplateException("Error: could not find a "
  18. aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template
  19. linuxdeepin@linuxdeepin-VirtualBox:~/ExternC$
Copy the Code
请问是怎么回事,怎么解决呢?
Reply Favorite View the author
All Replies
cxbii
deepin
2013-03-11 06:31
#1
没有标记版本信息,导致添加ppa失败....
在论坛有人发表过解决方法...但是现在去搜索找可能需要点时间.等下个阿尔法版本,应该会解决的
Reply View the author
tuhaihe
deepin
2013-03-11 17:18
#2
您是在什么版本上?
我在 LD 12.12 Alpha 上正常。
Reply View the author
chinesedragon
deepin
2013-03-11 17:30
#3
您是在什么版本上?
我在 LD 12.12 Alpha 上正常。
我也是这个版本的
Reply View the author
lihongwu
deepin
2013-03-12 01:08
#4
按照我这个改吧,修改 /etc/lsb-release 文件的内容为:
  1. DISTRIB_ID=Ubuntu
  2. DISTRIB_RELEASE=12.04
  3. DISTRIB_CODENAME=precise
  4. DISTRIB_DESCRIPTION="Ubuntu 12.04 LTS"
Copy the Code
Reply View the author
chinesedragon
deepin
2013-03-12 17:15
#5
按照我这个改吧,修改 /etc/lsb-release 文件的内容为:
  1. DISTRIB_ID=Ubuntu
  2. DISTRIB_RELEASE=12.04
  3. DISTRIB_CODENAME=precise
  4. DISTRIB_DESCRIPTION="Ubuntu 12.04 LTS"
Copy the Code


谢谢,这样修改后可以了
Reply View the author
New Thread

Popular Events

More
国际排名
WHLUG