Hi, apt-get fails to execute under fakeroot or proot: $ proot -0 apt-get download 0ad E: Method gave invalid 400 URI Failure message: Could not get new groups - getgroups (22: Invalid argument) $ fakeroot apt-get download 0ad E: Method gave invalid 400 URI Failure message: Could not get new groups - getgroups (22: Invalid argument) problem should probably go away when setting APT::Sandbox::User to the empty string. But neither supplying
Hi, Am 01.06.2015 19:54 schrieb "Johannes Schauer" <josch@debian.org>: - getgroups (22: Invalid argument) - getgroups (22: Invalid argument) thanks for your bug report. This is a relatively new feature, and it seems we did not test this. A config value seems the safest. But it does work with the file? There is, but it dies not work without a value. You could try setting it to root, I assume it works to setuid 0 under fakeroot. Although, if fakeroot does not replace some of the group calls we use, it might not work either.
Hi, Quoting Julian Andres Klode (2015-06-01 20:57:34) yes, with a config file it works so there doesn't seem to be another part of apt other than DropPrivileges() in apt-pkg/contrib/fileutl.cc that has this regression. Thanks! cheers, josch
Hi! Commit https://salsa.debian.org/apt-team/apt/-/commit/ebca2f25 affects the behviour of apt under proot. However I don't know enough about proot and about code changed in the commit. Therefore I don't know if commit ebca2f25 is a proper fix for this ticket, and I can't close this ticket. Ticket fixed by commit ebca2f25: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=806475 Successful reproduction in commit d5e7aa2a preceding the commit in question (apt built from sources): acerion@debian:~/ticket/pre_fix$ grep PRETTY_NAME /etc/os-release PRETTY_NAME="Debian GNU/Linux 9 (stretch)" acerion@debian:~/ticket/pre_fix$ apt --version apt 1.1.1 (amd64) acerion@debian:~/ticket/pre_fix$ proot -0 apt-get download 0ad E: Method gave invalid 400 URI Failure message: Could not switch group, user _apt is still in group 24 E: Method http has died unexpectedly! E: Sub-process http returned an error code (112) acerion@debian:~/ticket/pre_fix$ Unsuccessful reproduction in commit ebca2f25 (apt built from sources): acerion@debian:~/ticket/post_fix$ grep PRETTY_NAME /etc/os-release PRETTY_NAME="Debian GNU/Linux 9 (stretch)" acerion@debian:~/ticket/post_fix$ apt --version apt 1.1.1 (amd64) acerion@debian:~/ticket/post_fix$ proot -0 apt-get download 0ad Get:1 http://archive.debian.org/debian stretch/main amd64 0ad amd64 0.0.21-2 [5,230 kB] Fetched 5,230 kB in 0s (8,460 kB/s) acerion@debian:~/ticket/post_fix$ Kamil