gpt4 book ai didi

linux - 错误: could not find a distribution template for Parrot/stable

转载 作者:太空宇宙 更新时间:2023-11-04 05:35:04 24 4
gpt4 key购买 nike

Linux Parrot .

我尝试安装Heroku :

sudo add-apt-repository "deb https://cli-assets.heroku.com/branches/stable/apt ./"
curl -L https://cli-assets.heroku.com/apt/release.key | sudo apt-key add -
sudo apt-get update
sudo apt-get install heroku

我收到 add-apt-repository 命令的错误:

┌─[andrey@parrot]─[~]
└──╼ $sudo add-apt-repository "deb https://cli-assets.heroku.com/branches/stable/apt ./"
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

如何修复它?

最佳答案

1) 使用以下代码创建文件,例如 doc.sh:

#!/bin/sh

set -e

# Install dependencies.
sudo apt install -y curl apt-transport-https \
software-properties-common ca-certificates

# Install docker.
curl -fsSL https://yum.dockerproject.org/gpg | sudo apt-key add -
echo "deb https://apt.dockerproject.org/repo/ debian-stretch testing" | \
sudo tee /etc/apt/sources.list.d/docker-engine.list
sudo apt-get update -y
sudo apt-get install -y docker-engine

# Run docker.
sudo systemctl start docker
sudo systemctl enable docker

# Add user to docker group for using docker without sudo command.
sudo gpasswd -a "${USER}" docker

# Reboot
sudo reboot

2) 使其可运行chmod +x dock.sh

This article可能会帮助您解决问题。

关于linux - 错误: could not find a distribution template for Parrot/stable,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48844402/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com