1
Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 95, in <module>
    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 Parrot/stable

这是我尝试添加存储库时的输出。

命令:add-apt-repository "deb http://mp3splt.sourceforge.net/repository wheezy main"

我是 Parrot/Debian 的新手,对不起,我太菜鸟了。

感谢帮助

4

3 回答 3

1

我已经找到了解决方案。实际上,ParrotOS 使用不同的文件作为源包链接。如果您通过键入/etc/apt/sources.list所有内容打开并查看sources.list 中的文件,并且其中没有链接debdeb-src链接。所有链接都单独存储在sources.list.d文件夹中,通过键入ls /etc/apt/sources.list.d每个源包存在一个文件来查看其中的文件。首先更改为root用户。如果要添加新的src链接,则必须在该文件夹中创建一个新文件<name>.list并将链接添加到其中。

假设如果你想将 vs-code 添加到sources.list,然后创建一个名为vscode.listin sources.list.ddirectory 的文件并将链接添加deb http://packages.microsoft.com/repos/vscode stable main到它。

最后通过执行更新sudo apt update然后安装sudo apt install <package-name>. 对于 vscode 示例,请使用sudo apt install code.

于 2019-04-13T03:16:59.070 回答
0

要将存储库添加到 parrot 软件列表,您需要签出/etc/apt/然后复制存储库 url,sources.list.parrot如下所示:

cd /etc/apt

sudo -s #gives you root access

echo "deb http://mp3splt.sourceforge.net/repository wheezy main" >> sources.list.parrot

exit #changes back to the normal user

免责声明:添加软件仓库时请小心。这是破坏系统或添加错误的最简单方法之一

于 2018-07-16T08:36:44.590 回答
0

您不能在 /etc/opt/source.list.d/parrot.list 中尝试

您可以添加稳定的存储库 deb http://deb.parrotsec.org/parrot stable main contrib non-free

然后 sudo apt-get update

于 2018-07-03T10:04:52.457 回答