Re: Buster install using debootstrap. (SOLVED)
On 6/5/20 6:31 PM, Marc Shapiro wrote: On 6/4/20 11:30 PM, Sven Hartge wrote: Marc Shapiro wrote: I also don't understand why it says that it could not create temporary files in /tmp. I am running this as root and /tmp is owned by root. What am I missing? /tmp (and /var/tmp/) should have the following permissions and rights: root:root 1777/drwxrwxrwt apt runs its I/O processes as a different user "_apt" and if /tmp does not have the sticky bit set, then it cannot create any files there, causing the error. Grüße, Sven. Thanks! That took care of all the debian repositories. Third party repositories are now having public key issues (not surprising). How do I get and install the public key for deb-multimedia.org and virtualbox.org? Marc I got the public keys for deb-multimedia.org and virtualbox.org and all is good. I just needed to google a little more (after having some dinner). Marc
Re: Buster install using debootstrap.
On 6/4/20 11:30 PM, Sven Hartge wrote: Marc Shapiro wrote: I also don't understand why it says that it could not create temporary files in /tmp. I am running this as root and /tmp is owned by root. What am I missing? /tmp (and /var/tmp/) should have the following permissions and rights: root:root 1777/drwxrwxrwt apt runs its I/O processes as a different user "_apt" and if /tmp does not have the sticky bit set, then it cannot create any files there, causing the error. Grüße, Sven. Thanks! That took care of all the debian repositories. Third party repositories are now having public key issues (not surprising). How do I get and install the public key for deb-multimedia.org and virtualbox.org? Marc
Re: Buster install using debootstrap.
On Fri, Jun 05, 2020 at 08:30:16AM +0200, Sven Hartge wrote: > Marc Shapiro wrote: > > > I also don't understand why it says that it could not create temporary > > files in /tmp. I am running this as root and /tmp is owned by root. > > What am I missing? > > /tmp (and /var/tmp/) should have the following permissions and rights: > > root:root 1777/drwxrwxrwt > > apt runs its I/O processes as a different user "_apt" and if /tmp does > not have the sticky bit set, then it cannot create any files there, > causing the error. > Another thing to check (which may or may not apply in this particular instance) is any special TMP/TEMP/TMPDIR/TEMPDIR environment variable handling in the host environment. On my systems I use pam_tmpdir, which creates a user-specific temporary directory (/tmp/user/${UID}) and then sets the TMP/TEMP/TMPDIR/TEMPDIR environment variables to that path. When I chroot into an environment, I must take care to either ensure those variables are unset inside the chroot or to create the necessary directory structure with matching ownership and permissions. Another solution is to bind mount /tmp from the host into the chroot. Regards, -Roberto -- Roberto C. Sánchez
Re: Buster install using debootstrap.
Greg Wooledge wrote: > On Fri, Jun 05, 2020 at 08:30:16AM +0200, Sven Hartge wrote: >> Marc Shapiro wrote: >>> I also don't understand why it says that it could not create temporary >>> files in /tmp. I am running this as root and /tmp is owned by root. >>> What am I missing? >> >> /tmp (and /var/tmp/) should have the following permissions and rights: >> >> root:root 1777/drwxrwxrwt >> >> apt runs its I/O processes as a different user "_apt" and if /tmp does >> not have the sticky bit set, then it cannot create any files there, >> causing the error. > To be completely clear, it's the world-write bit that allows _apt to > create files/subdirectories there. The sticky bit prevents other > users from removing or renaming said files/subdirectories while _apt > is using them. Eh, yes, of course. Was ahead in my thoughts and mixed both facts together. Grüße, Sven. -- Sigmentation fault. Core dumped.
Re: Buster install using debootstrap.
On Fri, Jun 05, 2020 at 08:30:16AM +0200, Sven Hartge wrote: > Marc Shapiro wrote: > > > I also don't understand why it says that it could not create temporary > > files in /tmp. I am running this as root and /tmp is owned by root. > > What am I missing? > > /tmp (and /var/tmp/) should have the following permissions and rights: > > root:root 1777/drwxrwxrwt > > apt runs its I/O processes as a different user "_apt" and if /tmp does > not have the sticky bit set, then it cannot create any files there, > causing the error. To be completely clear, it's the world-write bit that allows _apt to create files/subdirectories there. The sticky bit prevents other users from removing or renaming said files/subdirectories while _apt is using them.
Re: Buster install using debootstrap.
Marc Shapiro wrote: > I also don't understand why it says that it could not create temporary > files in /tmp. I am running this as root and /tmp is owned by root. > What am I missing? /tmp (and /var/tmp/) should have the following permissions and rights: root:root 1777/drwxrwxrwt apt runs its I/O processes as a different user "_apt" and if /tmp does not have the sticky bit set, then it cannot create any files there, causing the error. Grüße, Sven. -- Sigmentation fault. Core dumped.
Buster install using debootstrap.
I have just installed Buster on a spare set of partitions using debootstrap, as documented in: Appendix D.3 of the Installation Guide. When I got to configuring networking, I just copied /etc/networking/interfaces, /etc/hosts, /etc/hostname, and /etc/resolv.conf from my Stretch partitions/directories to the Buster partitions/directories. I also copied /etc/apt/sources.list and /etc/fstab from Stretch to Buster, editing them as needed. I have chrooted into Buster and everything looks good. I can run 'apt show' and 'dpkg -l' (I like the way the new dpkg lets you scroll through the list instead of just running to the end.) What I can not do is 'apt update'. When I try that, I get the following output: # apt update Get:1 http://security.debian.org buster/updates InRelease [65.4 kB] Err:1 http://security.debian.org buster/updates InRelease Couldn't create temporary file /tmp/apt.conf.UOJmdX for passing config to apt-key Get:2 http://download.virtualbox.org/virtualbox/debian buster InRelease [7736 B] Err:2 http://download.virtualbox.org/virtualbox/debian buster InRelease Couldn't create temporary file /tmp/apt.conf.9n943a for passing config to apt-key Get:4 http://http.us.debian.org/debian buster InRelease [121 kB] Err:4 http://http.us.debian.org/debian buster InRelease Couldn't create temporary file /tmp/apt.conf.1btx9y for passing config to apt-key Get:3 http://cdn-fastly.deb.debian.org/debian buster-backports InRelease [46.7 kB] Err:3 http://cdn-fastly.deb.debian.org/debian buster-backports InRelease Couldn't create temporary file /tmp/apt.conf.G6FHYS for passing config to apt-key Get:5 http://www.deb-multimedia.org buster InRelease [19.5 kB] Err:5 http://www.deb-multimedia.org buster InRelease Couldn't create temporary file /tmp/apt.conf.Iqzykk for passing config to apt-key Get:6 http://www.deb-multimedia.org buster-backports InRelease [10.4 kB] Err:6 http://www.deb-multimedia.org buster-backports InRelease Couldn't create temporary file /tmp/apt.conf.Sb90kl for passing config to apt-key Reading package lists... Done W: GPG error: http://security.debian.org buster/updates InRelease: Couldn't create temporary file /tmp/apt.conf.UOJmdX for passing config to apt-key E: The repository 'http://security.debian.org buster/updates InRelease' 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. W: GPG error: http://download.virtualbox.org/virtualbox/debian buster InRelease: Couldn't create temporary file /tmp/apt.conf.9n943a for passing config to apt-key E: The repository 'http://download.virtualbox.org/virtualbox/debian buster InRelease' 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. W: GPG error: http://http.us.debian.org/debian buster InRelease: Couldn't create temporary file /tmp/apt.conf.1btx9y for passing config to apt-key E: The repository 'http://http.us.debian.org/debian buster InRelease' 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. W: GPG error: http://cdn-fastly.deb.debian.org/debian buster-backports InRelease: Couldn't create temporary file /tmp/apt.conf.G6FHYS for passing config to apt-key E: The repository 'http://http.debian.net/debian buster-backports InRelease' 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. W: GPG error: http://www.deb-multimedia.org buster InRelease: Couldn't create temporary file /tmp/apt.conf.Iqzykk for passing config to apt-key E: The repository 'http://www.deb-multimedia.org buster InRelease' 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. W: GPG error: http://www.deb-multimedia.org buster-backports InRelease: Couldn't create temporary file /tmp/apt.conf.Sb90kl for passing config to apt-key E: The repository 'http://www.deb-multimedia.org buster-backports InRelease' 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. I read the manpage for apt-secure and I am assuming that I am missing the GPG keys, but I did not see anything about this in the Installation Guide. I'm sure that I missed something, somewhere, but I don't know what. I also don't understand why it says that it could not create temporary files in /tmp. I