您尚未登录。

#1 Re: 全志 SOC » 问一下在ubuntu上用multistrap创建emdebian一直提示没公钥 » 2021-06-03 14:05:13

p2p

修复了,但没完全修复。

You need to patch /usr/sbin/multistrap.
Look for the line
$config_str .= " -o Apt::Get::AllowUnauthenticated=true"
Just above it, add
$config_str .= " -o Acquire::AllowInsecureRepositories=true";

This will allow the use of unsigned repositories. This has been tested on Debian Buster and Ubuntu 18.04, I'm sure it will work the same way on a Debian Stretch install as well.

#2 全志 SOC » 问一下在ubuntu上用multistrap创建emdebian一直提示没公钥 » 2021-06-02 23:27:39

p2p
回复: 2

小白刚入坑 买了块荔枝派对zero plus 然后跟着zero的教程操作,到编译根文件系统这一步,一直提示没公钥,但是都添加了。

QQ图片20210602232332.png


apt-key list

/etc/apt/trusted.gpg.d/debian-archive-keyring.gpg
-------------------------------------------------
pub   rsa4096 2017-05-20 [SC] [expires: 2025-05-18]
      067E 3C45 6BAE 240A CEE8  8F6F EF0F 382A 1A7B 6500
uid           [ unknown] Debian Stable Release Key (9/stretch) <debian-release@lists.debian.org>

pub   rsa4096 2017-05-22 [SC] [expires: 2025-05-20]
      E1CF 20DD FFE4 B89E 8026  58F1 E0B1 1894 F66A EC98
uid           [ unknown] Debian Archive Automatic Signing Key (9/stretch) <ftpmaster@debian.org>
sub   rsa4096 2017-05-22 [S] [expires: 2025-05-20]

pub   rsa4096 2017-05-22 [SC] [expires: 2025-05-20]
      6ED6 F5CB 5FA6 FB2F 460A  E88E EDA0 D238 8AE2 2BA9
uid           [ unknown] Debian Security Archive Automatic Signing Key (9/stretch) <ftpmaster@debian.org>
sub   rsa4096 2017-05-22 [S] [expires: 2025-05-20]

pub   rsa4096 2019-02-05 [SC] [expires: 2027-02-03]
      6D33 866E DD8F FA41 C014  3AED DCC9 EFBF 77E1 1517
uid           [ unknown] Debian Stable Release Key (10/buster) <debian-release@lists.debian.org>

pub   rsa4096 2019-04-14 [SC] [expires: 2027-04-12]
      80D1 5823 B7FD 1561 F9F7  BCDD DC30 D7C2 3CBB ABEE
uid           [ unknown] Debian Archive Automatic Signing Key (10/buster) <ftpmaster@debian.org>
sub   rsa4096 2019-04-14 [S] [expires: 2027-04-12]

pub   rsa4096 2019-04-14 [SC] [expires: 2027-04-12]
      5E61 B217 265D A980 7A23  C5FF 4DFA B270 CAA9 6DFA
uid           [ unknown] Debian Security Archive Automatic Signing Key (10/buster) <ftpmaster@debian.org>
sub   rsa4096 2019-04-14 [S] [expires: 2027-04-12]

pub   rsa4096 2021-01-17 [SC] [expires: 2029-01-15]
      1F89 983E 0081 FDE0 18F3  CC96 73A4 F27B 8DD4 7936
uid           [ unknown] Debian Archive Automatic Signing Key (11/bullseye) <ftpmaster@debian.org>
sub   rsa4096 2021-01-17 [S] [expires: 2029-01-15]

pub   rsa4096 2021-01-17 [SC] [expires: 2029-01-15]
      AC53 0D52 0F2F 3269 F5E9  8313 A484 4904 4AAD 5C5D
uid           [ unknown] Debian Security Archive Automatic Signing Key (11/bullseye) <ftpmaster@debian.org>
sub   rsa4096 2021-01-17 [S] [expires: 2029-01-15]

pub   rsa4096 2021-02-13 [SC] [expires: 2029-02-11]
      A428 5295 FC7B 1A81 6000  62A9 605C 66F0 0D6C 9793
uid           [ unknown] Debian Stable Release Key (11/bullseye) <debian-release@lists.debian.org>

multistrap_mindb.conf

General]
directory=target-rootfs
cleanup=true
noauth=true
unpack=true
debootstrap=Debian Net Utils
aptsources=Debian

[Debian]
packages=apt kmod lsof
source=https://mirrors.ustc.edu.cn/debian/
keyring=debian-archive-keyring
suite=stretch
components=main contrib non-free

[Net]
#Basic packages to enable the networking
packages=netbase net-tools ethtool udev iproute iputils-ping ifupdown isc-dhcp-client ssh
source=http://ftp2.cn.debian.org/debian/

[Utils]
#General purpose utilities
packages=locales adduser vim less wget dialog usbutils
source=http://ftp2.cn.debian.org/debian/

执行后出的信息

hycdgx@ubuntu:~/emdebian/mindb$ sudo multistrap -a armhf -f multistrap_mindb.conf
multistrap 2.2.10 using multistrap_mindb.conf
multistrap 2.2.10 using multistrap_mindb.conf
Using foreign architecture: armhf
multistrap building armhf multistrap on 'amd64'
Getting package lists: APT_CONFIG=/tmp/multistrap.QQddVc apt-get  -o Apt::Architecture=armhf -o Dir::Etc::TrustedParts=/home/hycdgx/emdebian/mindb/target-rootfs/etc/apt/trusted.gpg.d -o Dir::Etc::Trusted=/home/hycdgx/emdebian/mindb/target-rootfs/etc/apt/trusted.gpg -o Apt::Get::AllowUnauthenticated=true -o Apt::Get::Download-Only=true -o Apt::Install-Recommends=false -o Dir=/home/hycdgx/emdebian/mindb/target-rootfs/ -o Dir::Etc=/home/hycdgx/emdebian/mindb/target-rootfs/etc/apt/ -o Dir::Etc::Parts=/home/hycdgx/emdebian/mindb/target-rootfs/etc/apt/apt.conf.d/ -o Dir::Etc::PreferencesParts=/home/hycdgx/emdebian/mindb/target-rootfs/etc/apt/preferences.d/ -o APT::Default-Release='*' -o Dir::State=/home/hycdgx/emdebian/mindb/target-rootfs/var/lib/apt/ -o Dir::State::Status=/home/hycdgx/emdebian/mindb/target-rootfs/var/lib/dpkg/status -o Dir::Cache=/home/hycdgx/emdebian/mindb/target-rootfs/var/cache/apt/ update
Ign:1 https://mirrors.ustc.edu.cn/debian stretch InRelease
Get:2 https://mirrors.ustc.edu.cn/debian stretch Release [118 kB]
Get:3 https://mirrors.ustc.edu.cn/debian stretch Release.gpg [2,410 B]
Ign:3 https://mirrors.ustc.edu.cn/debian stretch Release.gpg
Reading package lists... Done
W: GPG error: https://mirrors.ustc.edu.cn/debian stretch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7638D0442B90D010 NO_PUBKEY 04EE7237B7D453EC NO_PUBKEY EF0F382A1A7B6500
E: The repository 'https://mirrors.ustc.edu.cn/debian stretch Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
apt update failed. Exit value: 100

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn