Your message dated Sun, 04 Dec 2016 01:04:40 +0000
with message-id <[email protected]>
and subject line Bug#787438: fixed in multistrap 2.2.4
has caused the Debian Bug report #787438,
regarding multistrap fails to run with fakeroot with apt (>= 1.1~exp8)
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
787438: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=787438
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: multistrap
Version: 2.2.1
Severity: minor
Tags: patch
Hi,
when running multistrap with fakeroot and apt 1.1~exp8 from experimental
I get the following error:
$ fakeroot multistrap -f multistrap.conf
Use of uninitialized value in join or string at /usr/sbin/multistrap line 1301.
multistrap 2.2.1 using multistrap.conf
multistrap 2.2.1 using multistrap.conf
Defaulting architecture to native: amd64
multistrap building amd64 multistrap on 'amd64'
Turning off SecureApt due to use of fakeroot
Getting package lists: APT_CONFIG="/tmp/multistrap.19olWl" apt-get -o
Apt::Architecture=amd64 -o
Dir::Etc::TrustedParts=/home/josch/lxctest/root/etc/apt/trusted.gpg.d -o
Dir::Etc::Trusted=/home/josch/lxctest/root/etc/apt/trusted.gpg.d/trusted.gpg -o
Apt::Get::AllowUnauthenticated=true -o Apt::Get::Download-Only=true -o
Apt::Install-Recommends=false -o Dir=/home/josch/lxctest/root/ -o
Dir::Etc=/home/josch/lxctest/root/etc/apt/ -o
Dir::Etc::Parts=/home/josch/lxctest/root/etc/apt/apt.conf.d/ -o
Dir::Etc::PreferencesParts=/home/josch/lxctest/root/etc/apt/preferences.d/ -o
APT::Default-Release=* -o Dir::State=/home/josch/lxctest/root/var/lib/apt/ -o
Dir::State::Status=/home/josch/lxctest/root/var/lib/dpkg/status -o
Dir::Cache=/home/josch/lxctest/root/var/cache/apt/ update
E: Method gave invalid 400 URI Failure message: Could not get new groups -
getgroups (22: Invalid argument)
apt update failed. Exit value: 100
This is because apt 1.1~exp8 fails to execute with fakeroot (#787437).
Attached is a (non-pretty) fix that solves the situation by using
APT_CONFIG to pass the APT::Sandbox::User configuration value (see the
apt bug to see why this is necessary for now) and by using "apt-get
download" instead of "apt-get install" because the former can be run
completely unprivileged while the latter requires sudo.
Since especially the workaround to pass APT::Sandbox::User is not pretty
and because that apt version is only in experimental, you might want to
hold off with fixing this until apt moves into unstable and/or above apt
bug gets fixed in one way or the other.
Thanks!
cheers, josch
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1,
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf
Kernel: Linux 4.0.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages multistrap depends on:
ii apt 1.1~exp8
ii libconfig-auto-perl 0.44-1
ii liblocale-gettext-perl 1.05-8+b1
ii libparse-debian-packages-perl 0.03-2
ii perl 5.20.2-4
multistrap recommends no packages.
Versions of packages multistrap suggests:
ii fakeroot 1.20.2-1
-- debconf-show failed
--- /usr/sbin/multistrap 2015-05-03 12:09:38.000000000 +0200
+++ /tmp/multistrap 2015-06-01 19:30:44.351983661 +0200
@@ -282,25 +282,21 @@
$k .= "$pkg ";
}
if ((defined $k) and (not defined $noauth)) {
- # the keyring package must be available to the external apt
- # and apt refuses to allow fakeroot to do this.
- $str = "";
- if (not exists $ENV{FAKEROOTKEY}) {
- if ((exists $ENV{USER}) and ($ENV{USER} ne "root")) {
- $str = "sudo" if (-f "/usr/bin/sudo");
- }
- } else {
- print "Turning off SecureApt due to use of fakeroot\n";
- $noauth++;
- }
-}
-if ((defined $k) and (not defined $noauth)) {
printf (_g("I: Installing %s\n"), $k);
- system ("$str apt-get -y -d --reinstall install $k");
+ $pre_config_str = "Apt::Sandbox::User \"\";\n";
+
+ my $tmp_apt_conf = `mktemp -t multistrap.XXXXXX`;
+ chomp ($tmp_apt_conf);
+
+ open CONFIG, ">$tmp_apt_conf";
+ print CONFIG $pre_config_str;
+ close CONFIG;
+ system ("APT_CONFIG=$tmp_apt_conf apt-get -y download $k");
+ unlink $tmp_apt_conf;
foreach my $keyring_pkg (values %keyrings) {
next if (not defined $keyring_pkg);
my @files=();
- my $file = `find /var/cache/apt/archives/ -name "$keyring_pkg*"|grep -m1 $keyring_pkg`;
+ my $file = `find ./ -name "$keyring_pkg*"|grep -m1 $keyring_pkg`;
chomp ($file);
if ($file eq "") {
my $msg = sprintf (_g("Unable to download keyring package: '%s'"),$dir);
--- End Message ---
--- Begin Message ---
Source: multistrap
Source-Version: 2.2.4
We believe that the bug you reported is fixed in the latest version of
multistrap, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Johannes Schauer <[email protected]> (supplier of updated multistrap package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Sun, 04 Dec 2016 01:37:28 +0100
Source: multistrap
Binary: multistrap
Architecture: source
Version: 2.2.4
Distribution: unstable
Urgency: medium
Maintainer: Johannes Schauer <[email protected]>
Changed-By: Johannes Schauer <[email protected]>
Description:
multistrap - multiple repository bootstrap based on apt
Closes: 787438 846776
Changes:
multistrap (2.2.4) unstable; urgency=medium
.
* handle keyring download differently:
- do not (re)install keyring package on the host system (closes: #787438
)
- do not disable SecureApt when using fakeroot (closes: #846776)
Checksums-Sha1:
54dbc00c1f2c9361fb58e376a8ee39def0ab1cf5 1698 multistrap_2.2.4.dsc
e62531feb931101d82dd83a18b5027902f39668c 123684 multistrap_2.2.4.tar.xz
Checksums-Sha256:
a24ffceab0ba7db060a73974908eacf38fbf184b24d362906990f6c6e9be0364 1698
multistrap_2.2.4.dsc
99a6e337ad0d992359d6fe202403ebf965f5af0c50e3d009c757a17412fc314e 123684
multistrap_2.2.4.tar.xz
Files:
1a348f7b1e879e9539956b1c834f0fcd 1698 utils optional multistrap_2.2.4.dsc
0de768cf389cdc6028eed937b1fa3cf6 123684 utils optional multistrap_2.2.4.tar.xz
-----BEGIN PGP SIGNATURE-----
iQIuBAEBCAAYBQJYQ2XmERxqb3NjaEBkZWJpYW4ub3JnAAoJEPLLpcePvYPhKoMP
/0OVQrwPvbXoes6Hvq9tyv0nJ49aanzFnb1js3gEUDhxx9/S1WjatAY1VVOQoUtY
fCF8IG8XwZ0hBSwNxZDncOGAQW8JiE0cf/SO/4fRFzjnQvzEIah+VjmV4yVxBjZs
QQfixtDXONH85E4Sb0NpCPWu8XbYZ/Xjgo/VtNELSB4Q5O+Iud0M4zi+1x4ihCNe
FoHDmBWYjoqHDnllILrWSMX/Uj+GA8QgRn7W6EyO2W4X3NQ3mTiz9QygAgam9VBc
axI/YGB+GJQmAVvHjl74ZyXBtHhrqswJN4oIxsU6hCJgebRq6axAPCuXE6z9zcGF
46qrpu1/2D+e4qEHSjbxGXnCs06IgvEu132re45F+tiyqzqpWZyxnvPV6iHweGM7
uC1tcotb51Cgojr+tmlWS/Ukftj3VMtqgBLtJKHjP5bzIC+o1uJ4SMBK5CHNB4XX
wmjwrT4q8X9J5M07YlXYrVXK8jyB0MjglnzD9jn/zwkrtUWzxOBZdZWbbSzVGCaY
v30zV48H2tOieEJjjHgrwIxv0IwawnGKvff9qKEdc5itc0d9WSSoo64iBMJ9GJl8
1XPBQUlR7lzXjC74awSmU5jpxc0SG5fPVUMzdsAoT6ajZ2E2O1ZT80aeqWDWAPfg
34TxLnDS/rO/TSA9nwg296sBD9EKhV8EC8MbEKazAFFb
=514f
-----END PGP SIGNATURE-----
--- End Message ---