Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #223064 > unrolled thread
| Started by | Marc Shapiro <marcnshap@gmail.com> |
|---|---|
| First post | 2020-06-05 08:10 +0200 |
| Last post | 2020-06-06 06:20 +0200 |
| Articles | 7 — 4 participants |
Back to article view | Back to linux.debian.user
Buster install using debootstrap. Marc Shapiro <marcnshap@gmail.com> - 2020-06-05 08:10 +0200
Re: Buster install using debootstrap. Sven Hartge <sven@svenhartge.de> - 2020-06-05 08:40 +0200
Re: Buster install using debootstrap. Greg Wooledge <wooledg@eeg.ccf.org> - 2020-06-05 13:30 +0200
Re: Buster install using debootstrap. Sven Hartge <sven@svenhartge.de> - 2020-06-05 13:40 +0200
Re: Buster install using debootstrap. Roberto C. Sánchez <roberto@debian.org> - 2020-06-05 14:20 +0200
Re: Buster install using debootstrap. Marc Shapiro <marcnshap@gmail.com> - 2020-06-06 03:40 +0200
Re: Buster install using debootstrap. (SOLVED) Marc Shapiro <marcnshap@gmail.com> - 2020-06-06 06:20 +0200
| From | Marc Shapiro <marcnshap@gmail.com> |
|---|---|
| Date | 2020-06-05 08:10 +0200 |
| Subject | Buster install using debootstrap. |
| Message-ID | <AedIe-8gl-5@gated-at.bofh.it> |
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 am running this as root and /tmp is owned by root. What am I missing? If anyone can help me with this I would greatly appreciate it. Marc
[toc] | [next] | [standalone]
| From | Sven Hartge <sven@svenhartge.de> |
|---|---|
| Date | 2020-06-05 08:40 +0200 |
| Message-ID | <Aeebf-8pW-5@gated-at.bofh.it> |
| In reply to | #223064 |
Marc Shapiro <marcnshap@gmail.com> 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.
[toc] | [prev] | [next] | [standalone]
| From | Greg Wooledge <wooledg@eeg.ccf.org> |
|---|---|
| Date | 2020-06-05 13:30 +0200 |
| Message-ID | <AeiHT-2J0-1@gated-at.bofh.it> |
| In reply to | #223065 |
On Fri, Jun 05, 2020 at 08:30:16AM +0200, Sven Hartge wrote: > Marc Shapiro <marcnshap@gmail.com> 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.
[toc] | [prev] | [next] | [standalone]
| From | Sven Hartge <sven@svenhartge.de> |
|---|---|
| Date | 2020-06-05 13:40 +0200 |
| Message-ID | <AeiRA-2Mb-3@gated-at.bofh.it> |
| In reply to | #223068 |
Greg Wooledge <wooledg@eeg.ccf.org> wrote: > On Fri, Jun 05, 2020 at 08:30:16AM +0200, Sven Hartge wrote: >> Marc Shapiro <marcnshap@gmail.com> 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.
[toc] | [prev] | [next] | [standalone]
| From | Roberto C. Sánchez <roberto@debian.org> |
|---|---|
| Date | 2020-06-05 14:20 +0200 |
| Message-ID | <Aejuh-3el-3@gated-at.bofh.it> |
| In reply to | #223065 |
On Fri, Jun 05, 2020 at 08:30:16AM +0200, Sven Hartge wrote:
> Marc Shapiro <marcnshap@gmail.com> 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
[toc] | [prev] | [next] | [standalone]
| From | Marc Shapiro <marcnshap@gmail.com> |
|---|---|
| Date | 2020-06-06 03:40 +0200 |
| Message-ID | <AevYt-46w-9@gated-at.bofh.it> |
| In reply to | #223065 |
On 6/4/20 11:30 PM, Sven Hartge wrote: > Marc Shapiro <marcnshap@gmail.com> 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
[toc] | [prev] | [next] | [standalone]
| From | Marc Shapiro <marcnshap@gmail.com> |
|---|---|
| Date | 2020-06-06 06:20 +0200 |
| Subject | Re: Buster install using debootstrap. (SOLVED) |
| Message-ID | <Aeytj-5Vk-3@gated-at.bofh.it> |
| In reply to | #223105 |
On 6/5/20 6:31 PM, Marc Shapiro wrote: > On 6/4/20 11:30 PM, Sven Hartge wrote: >> Marc Shapiro <marcnshap@gmail.com> 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
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web