gpt4 book ai didi

ubuntu - 有问题并且 -y 没有使用 --force-yes

转载 作者:行者123 更新时间:2023-12-04 18:32:15 25 4
gpt4 key购买 nike

创建了一个目录

1) mkdir -p /root/dists/archives/

安装几个软件包所需的下载 debians 说/root/dists/archives/中的 python-stdeb devscripts
2) cd /root/dists/archives/

3) dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz

4) 在/etc/apt/sources.list 中添加以下条目
deb file:/root/dists/archives/ ./

5) apt-get update
Ign file: ./ InRelease
Ign file: ./ Release.gpg
Ign file: ./ Release
Ign file: ./ Translation-en_US
Ign file: ./ Translation-en
Reading package lists... Done

6)当我尝试安装以下包 python-stdeb devscripts。它抛出以下错误
apt-get install -y  python-stdeb devscripts
E: There are problems and -y was used without --force-yes

最佳答案

在/etc/apt/apt.conf.d 中创建一个文件

# cat /etc/apt/apt.conf.d/02allow-unsigned
APT::Get::AllowUnauthenticated 1;
# apt-get update

关于ubuntu - 有问题并且 -y 没有使用 --force-yes,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31294150/

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