我正在尝试使用pbuilder
. 我试过了,但遇到了以下问题。
$ sudo pbuilder create --distribution focal
W: /root/.pbuilderrc does not exist
I: Distribution is focal.
I: Current time: Tue Sep 8 12:15:34 IST 2020
I: pbuilder-time-stamp: 1599547534
I: Building the build environment
I: running debootstrap
/usr/sbin/debootstrap
I: Retrieving InRelease
I: Checking Release signature
E: Release signed by unknown key (key id A507B2BBA7803E3B)
The specified keyring /usr/share/keyrings/ubuntu-archive-keyring.gpg may be incorrect or out of date.
You can find the latest Debian release key at https://ftp-master.debian.org/keys.html
E: debootstrap failed
E: Tail of debootstrap.log:
2020-09-08 12:15:35 URL:http://ppa.launchpad.net/apandada1/foliate/ubuntu/dists/focal/InRelease [17512/17512] -> "/var/cache/pbuilder/build/32477/var/lib/apt/lists/partial/ppa.launchpad.net_apandada1_foliate_ubuntu_dists_focal_InRelease" [1]
gpgv: Signature made Mon Jul 6 16:09:04 2020 IST
gpgv: using RSA key A507B2BBA7803E3B
gpgv: Can't check signature: No public key
E: End of debootstrap.log
W: Aborting with an error
我尝试使用 导入该密钥gpg --keyserver keyserver.ubuntu.com --recv-keys A507B2BBA7803E3B
,但这并没有改变sudo pbuilder create --distribution focal
.
我也试过这个答案,但是命令
sudo pbuilder --debootstrapopts --keyring=/etc/apt/trusted.gpg --distribution focal
没有帮助,它只输出如何使用 pbuilder。
如何解决这个问题?
我找到了解决方法。
这种方法的另一个优点是分布和架构都可以改变。