Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
添加ppa问题解决
Experiences and Insight
1424
views ·
3
replies ·
To
floor
Go
1124477105
deepin
2013-10-07 19:55
Author
sudo add-apt-repository ppa:×××××
显示
You are about to add the following PPA to your system:
....
More info: .....
Press [ENTER] to continue or ctrl-c to cancel adding it
>
然后会出现问题
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 160, in
sp = SoftwareProperties(options=options)
File "/usr/lib/python3/dist-
packages/softwareproperties/SoftwareProperties.py", line 96, in init
self.reload_sourceslist()
File "/usr/lib/python3/dist-
packages/softwareproperties/SoftwareProperties.py", line 584, in reload_sourceslist
self.distro.get_sources(self.sourceslist)
File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 87, in get_sources
raise NoDistroTemplateException("Error: could not find a "
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template
需要修改
sudo vi /usr/share/python-apt/templates/LinuxDeepin.info
添加
Suite: quantal
RepositoryType: deb
BaseURI:
http://packages.linuxdeepin.com/deepin/
MatchURI: packages.linuxdeepin.com
MirrorsFile-amd64: LinuxDeepin.mirrors
MirrorsFile-i386: LinuxDeepin.mirrors
Description: Linux Deepin 12.12 'Quantal'
Component: main
CompDescription: Officially supported
CompDescriptionLong: Deepin-supported Open Source Software
Component: non-free
CompDescription: Restricted software
CompDescriptionLong: Software restricted by copyright or legal issues
然后再
sudo add-apt-repository ppa:realender/xxxxx
sudo apt-get update
sudo apt-get install xxxx
Reply
Like 0
Favorite
View the author
All Replies
tuhaihe
deepin
2013-10-09 00:04
#1
该问题已经解决了。
Reply
Like 0
View the author
1124477105
deepin
2013-10-10 07:30
#2
该问题已经解决了。
在12.12.1没解决,我后来自己修改后才行的
Reply
Like 0
View the author
cxbii
deepin
2013-10-10 21:03
#3
[quote]该问题已经解决了。
在12.12.1没解决,我后来自己修改后才行的
[/quote]
应该不会吧,因为ppa出问题,除了12.12测试版本有问题过(应该说那个时候根本没安装ppa)
现在都没怎么看过
不过这个帖子会加到百科,感谢.
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
Deepin 25 does not apply 12H or icons
Popular Events
More
显示
You are about to add the following PPA to your system:
....
More info: .....
Press [ENTER] to continue or ctrl-c to cancel adding it
>
然后会出现问题
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 160, in
sp = SoftwareProperties(options=options)
File "/usr/lib/python3/dist-
packages/softwareproperties/SoftwareProperties.py", line 96, in init
self.reload_sourceslist()
File "/usr/lib/python3/dist-
packages/softwareproperties/SoftwareProperties.py", line 584, in reload_sourceslist
self.distro.get_sources(self.sourceslist)
File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 87, in get_sources
raise NoDistroTemplateException("Error: could not find a "
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template
需要修改
sudo vi /usr/share/python-apt/templates/LinuxDeepin.info
添加
Suite: quantal
RepositoryType: deb
BaseURI: http://packages.linuxdeepin.com/deepin/
MatchURI: packages.linuxdeepin.com
MirrorsFile-amd64: LinuxDeepin.mirrors
MirrorsFile-i386: LinuxDeepin.mirrors
Description: Linux Deepin 12.12 'Quantal'
Component: main
CompDescription: Officially supported
CompDescriptionLong: Deepin-supported Open Source Software
Component: non-free
CompDescription: Restricted software
CompDescriptionLong: Software restricted by copyright or legal issues
然后再
sudo add-apt-repository ppa:realender/xxxxx
sudo apt-get update
sudo apt-get install xxxx