报错: dpkg-vendor: error: vendor default doesn’t exist in /etc/dpkg/origins
报错信息
1 2 3 4 5 6 7 8
[/tmp]$ dget http://deb.debian.org/debian/pool/main/s/sensible-utils/sensible-utils_0.0.13.dsc dget: retrieving http://deb.debian.org/debian/pool/main/s/sensible-utils/sensible-utils_0.0.13.dsc % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1688 100 1688 0 0 3480 0 --:--:-- --:--:-- --:--:-- 3480 dget: using existing sensible-utils_0.0.13.tar.xz dpkg-vendor: error: vendor default doesn't exist in /etc/dpkg/origins dscverify: can't find any system keyrings
[/tmp]$ dget http://deb.debian.org/debian/pool/main/s/sensible-utils/sensible-utils _0.0.13.dsc dget: retrieving http://deb.debian.org/debian/pool/main/s/sensible-utils/sensible-utils_0.0.13.dsc % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1688 100 1688 0 0 4077 0 --:--:-- --:--:-- --:--:-- 4077 dget: retrieving http://deb.debian.org/debian/pool/main/s/sensible-utils/sensible-utils_0.0.13.tar.xz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 62020 100 62020 0 0 150k 0 --:--:-- --:--:-- --:--:-- 150k Can't locate File/HomeDir.pm in @INC (you may need to install the File::HomeDir module) (@INC contains: /usr/lib/perl5/5.32/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/5.32/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/5.32/core_perl /usr/share/perl5/core_perl) at /usr/bin/dscverify line 31. BEGIN failed--compilation aborted at /usr/bin/dscverify line 31.
[/tmp]$ dget http://deb.debian.org/debian/pool/main/s/sensible-utils/sensible-utils_0.0.13.dsc dget: retrieving http://deb.debian.org/debian/pool/main/s/sensible-utils/sensible-utils_0.0.13.dsc % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1688 100 1688 0 0 4251 0 --:--:-- --:--:-- --:--:-- 4251 dget: using existing sensible-utils_0.0.13.tar.xz dscverify: can't find any system keyrings
[/tmp]$ dpkg-source -x --skip-patches ./sensible-utils_0.0.13.dsc dpkg-source: warning: --skip-patches is not a valid option for Dpkg::Source::Package::V3::Native gpgv: unknown type of key resource 'trustedkeys.kbx' gpgv: keyblock resource '/tmp/dpkg-verify-sig.KzVhNokQ/trustedkeys.kbx': General error gpgv: Signature made Wed 08 Jul 2020 07:10:38 AM CST gpgv: using RSA key 7C56ACFE947897D8 gpgv: Can't check signature: No public key dpkg-source: warning: failed to verify signature on ./sensible-utils_0.0.13.dsc dpkg-source: info: extracting sensible-utils in sensible-utils-0.0.13 dpkg-source: info: unpacking sensible-utils_0.0.13.tar.xz
--- /usr/share/pbuilder/pbuilderrc 2020-10-13 11:23:36.000000000 +0800 +++ /etc/pbuilderrc 2020-10-13 13:01:06.991275977 +0800 @@ -24,7 +24,7 @@ # Debian buildds too. You can set it to $BUILDDIR to get a working HOME, if # you need to. BUILD_HOME=/nonexistent -MIRRORSITE=http://archive.ubuntu.com/ubuntu +MIRRORSITE=https://mirrors.sjtug.sjtu.edu.cn/debian #OTHERMIRROR="deb http://www.home.com/updates/ ./" #export http_proxy=http://your-proxy:8080/ USESHM=yes @@ -118,7 +118,7 @@ # Set the debootstrap variant to 'buildd' type. DEBOOTSTRAPOPTS=( '--variant=buildd' - '--force-check-gpg' + '--no-check-gpg' ) # or unset it to make it not a buildd type. # unset DEBOOTSTRAPOPTS @@ -147,7 +147,7 @@ AUTOCLEANAPTCACHE="" #default COMPRESSPROG -COMPRESSPROG="gzip" +COMPRESSPROG="pigz" # pbuilder copies some configuration files (like /etc/hosts or /etc/hostname) # from the host system into the chroot. If the directory specified here
E: No such script: /usr/share/debootstrap/scripts/experimental
1 2 3 4 5 6 7 8 9 10 11 12 13
[/tmp]$ sudo pbuilder --create --distribution experimental --basetgz exp.tgz W: /root/.pbuilderrc does not exist W: cgroups are not available on the host, not using them. I: Distribution is experimental. I: Current time: Tue Oct 13 14:24:21 CST 2020 I: pbuilder-time-stamp: 1602570261 I: Building the build environment I: running debootstrap /usr/sbin/debootstrap E: No such script: /usr/share/debootstrap/scripts/experimental E: debootstrap failed E: debootstrap.log not present W: Aborting with an error
解决方案: 添加dist对应的 deboostrap 脚本
1
dist=experimental; if [ ! -f /usr/share/debootstrap/scripts/$dist ]; then sudo install -Dm644 -v usr/share/debootstrap/scripts/buster /usr/share/debootstrap/scripts/$dist; fi