[software development] add-apt-repository ppa:graphics-drivers/ppa报错
Tofloor
poster avatar
leek
deepin
2023-10-19 07:02
Author

sudo add-apt-repository ppa:graphics-drivers/ppa

Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 95, in
sp = SoftwareProperties(options=options)
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 109, in init
self.reload_sourceslist()
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 599, in reload_sourceslist
self.distro.get_sources(self.sourceslist)
File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 93, in get_sources
(self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Deepin/apricot

Reply Favorite View the author
All Replies
pzm9012
deepin
2023-10-19 07:08
#1

可能要把系统标识改为debian bullseye

Reply View the author
leek
deepin
2023-10-19 07:08
#2
pzm9012

可能要把系统标识改为debian bullseye

我是deepin20.9 该怎么改呢

Reply View the author
deepin-superuser
deepin
2023-10-19 17:56
#3

用 ubuntu 源里的版本可能会影响 尤其是驱动

如果你非要用的的话也不是不行,其中 focal 代表 ubuntu 的版本名,你要挑一个和 20.9 环境差不多的,其他名称的见下图,你自己试吧

sudo sh -c 'echo "deb [trusted=yes] https://ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu focal main " > /etc/apt/sources.list.d/ubuntu-nvidia-driver.list'

image.png

Reply View the author
leek
deepin
2023-10-19 19:11
#4
deepin-superuser

用 ubuntu 源里的版本可能会影响 尤其是驱动

如果你非要用的的话也不是不行,其中 focal 代表 ubuntu 的版本名,你要挑一个和 20.9 环境差不多的,其他名称的见下图,你自己试吧

sudo sh -c 'echo "deb [trusted=yes] https://ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu focal main " > /etc/apt/sources.list.d/ubuntu-nvidia-driver.list'

image.png

感谢详细指导。

Reply View the author