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 <module>
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
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