[Seek Help] sudo: add-apt-repository:找不到命令
Tofloor
poster avatar
剥壳白煮蛋
deepin
2021-02-04 08:54
Author

我想安装 howdy。

官方安装说明是这样的:

sudo add-apt-repository ppa:boltgolt/howdy
sudo apt update
sudo apt install howdy

结果运行第一行的时候报错

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/n/a

参考这篇 https://ywnz.com/linuxjc/7953.html ,
修改/etc/lsb-release文件,伪装成 Ubuntu ,可是依然不行。

有什么解决方案吗?

到底 Deepin 是不是软件源丰富的?
Reply Favorite View the author
All Replies
SamLukeYes
deepin
2021-02-04 10:07
#1

deepin 本来就不支持 ppa 的,因为 ppa 是专为 ubuntu 设计的,而 deepin 的上游早就不是 ubuntu 了。如果一定要添加 ppa,就要用添加一般的软件仓库的写法,不能直接简写成 ppa:xxx。

至于 deepin 的软件源是否丰富——就官方仓库而言,软件包数量早就被 ubuntu 赶超了;就非官方仓库而言,目前没有哪个非 Arch 系的发行版有像 AUR 那么庞大的供用户自由打包的仓库。deepin 在软件上的优势不过是能最先得到国内软件厂商的适配而已,真正有需求的软件会很快被移植到 AUR 上去的。

Reply View the author
SamLukeYes
deepin
2021-02-04 10:11
#2

另外,请仔细阅读 howdy 的安装指南。deepin 应该按照 Debian 的方法安装,而不是 ubuntu 的。

Reply View the author
thepoy
deepin
2021-02-04 17:00
#3

deepin又不是基于ubuntu的,就算添加上了ppa,安装时的依赖也不好解决。

deepin基于debian。

想要体验丰富的软件,直接用arch吧,或者manjaro,比deepin丰富多了。

Reply View the author
Ziggy
deepin
2021-02-04 19:14
#4

好像对于添加ppa有比较大的限制,几乎是不兼容不支持

Reply View the author
剥壳白煮蛋
deepin
2021-02-05 02:23
#5
SamLukeYes

另外,请仔细阅读 howdy 的安装指南。deepin 应该按照 Debian 的方法安装,而不是 ubuntu 的。

好的,谢谢🤣唉

Reply View the author