Debootstrap error release file signed by unknown key

# debootstrap buster /srv/buster I: Retrieving InRelease I: Checking Release signature E: Release signed by unknown key (key id DCC9EFBF77E11517) Where do I get this release key, and How do I ad...
# debootstrap  buster /srv/buster
I: Retrieving InRelease 
I: Checking Release signature
E: Release signed by unknown key (key id DCC9EFBF77E11517)

Where do I get this release key, and How do I add this release key to the debootstrap trust?

asked Sep 17, 2019 at 20:38

ThorSummoner's user avatar

  • Where to get the release key? The debian archive keyring server:

    https://ftp-master.debian.org/keys.html

  • How to make debootstrap trust this release key:

    Make a new keyring, and inform deboostrap to use it:

    wget https://ftp-master.debian.org/keys/release-10.asc -qO- | gpg --import --no-default-keyring --keyring ./debian-release-10.gpg
    debootstrap --keyring=./debian-release-10.gpg buster /srv/buster
    

    Compatibility Note:

    I found that using a gpg2 keyring would not work due to debootstrap using gpgv under the hood, which uses a gpg1 database version. I recreated by gpg database like so from the , note that gpg is gpg 1.x.x not gpg 2.x.x or newer at time of writing:


If deboostrap were updated to use gpg --verify instead of gpgv, I would imagine gpg2 could be used as a drop-in replacement — But I cannot be certain.

answered Sep 17, 2019 at 20:38

ThorSummoner's user avatar

ThorSummonerThorSummoner

3311 gold badge5 silver badges14 bronze badges

1

  • Перейти на CTF площадку Игры Кодебай

    Выполняйте задания по кибербезопасности в формате CTF и получайте бесценный опыт. Ознакомиться с подробным описанием можно тут.

  • B правой части каждого сообщения есть стрелки и . Не стесняйтесь оценивать ответы. Чтобы автору вопроса закрыть свой тикет, надо выбрать лучший ответ. Просто нажмите значок в правой части сообщения.

  • #1

устанавливал кали впервые, при установке выходит ошибка «Ошибка Debootdtrap : Файл Release подписан неизвестным ключом (key id ED444FF07D8D0BF6». Подскажите, пожалуйста, как исправить

Вложения

  • 1608275089596889516625.jpg

    1608275089596889516625.jpg

    110,8 КБ

    · Просмотры: 472

Doctor zlo


  • #2

Проверь скачанный образ с помощью цифровой подписи

  • #3

Проверь скачанный образ с помощью цифровой подписи

я скачивал образ с оф. сайта линукс. с ней все должно быть в норме

Pernat1y


  • #4

я скачивал образ с оф. сайта линукс. с ней все должно быть в норме

Мог побиться в процессе загрузки. Хеши, всё-же, проверь.

  • #5

я заново скачал и загрузил на флешку образ. все установилось. ошибок нет

Похожие темы

I am trying to use live-build 5.0 on Debian squeeze to build a Raspbian live image. The sudo lb build command fails during the debootstrap phase, at the step:

I: Checking Release signature
E: Release signed by unknown key (key id 9165938D90FDDD2E)

I have tried (on the build system):

  • installing the Raspbian repo key using sudo apt-key add
  • manually installing raspbian-archive-keyring_20120528.2_all.deb
  • adding the Raspbian key to config/archives/raspbian.key.(binary|chroot) (ie. from /usr/share/keyrings/raspbian-archive-keyring.gpg)
  • prepending DEBOOTSTRAP_OPTIONS="--keyring=/usr/share/keyrings/raspbian-archive-keyring.gpg" to lb config and lb build
  • same, but for /etc/apt/trusted.gpg
  • including --keyring-packages "raspbian-archive-keyring" in my auto/config

None of it worked. What do I need to do to tell debootstrap to use a different keyring? I don’t want to tell it not to verify anything at all.

asked Jan 21, 2016 at 3:30

detly's user avatar

1

This was a very basic mistake. I was prepending DEBOOTSTRAP_OPTIONS="--keyring=/usr/share/keyrings/raspbian-archive-keyring.gpg" to lb config && sudo lb build, not realising that sudo does not allow environment variables through (because of the Defaults env_reset line in sudoers).

When I invoked with sudo DEBOOTSTRAP_OPTIONS="--keyring=/usr/share/keyrings/raspbian-archive-keyring.gpg" lb build, it was successful.

answered Feb 7, 2016 at 19:12

detly's user avatar

detlydetly

4,9005 gold badges23 silver badges28 bronze badges

As root run:

wget -qO - https://archive.raspbian.org/raspbian.public.key | gpg --import -
debootstrap --keyring /root/.gnupg/pubring.kbx ...

answered Aug 17, 2018 at 8:49

dimir's user avatar

dimirdimir

2213 silver badges5 bronze badges

установка нового прокатного релиза Kali Linux 2016 на жесткий диск через USB.

Я сделал загрузочный USB с помощью универсального USB. Загрузившись с USB и выбрав «графическая установка», у меня была проблема в начале установки с запросом, что он не может найти данные на компакт-диске, я вытащил USB и ждал 30 секунд, подключил его ждал 30 секунд, затем подключил его, и это позволило мне продолжить установку.

Я включил LVM и прошел через все это процесс, как только это было сделано, он пошел к следующему шагу, который является «установка системы» на данный момент я получаю ошибку

Ошибка Debootstrap
Не удалось определить кодовое название выпуска

на данный момент я не могу пойти дальше в установке. Я вернулся в «меню установщика Debian» и выполнил оболочку. С помощью этой оболочки я попытался подключить USB к / cdrom, используя «mount-t vfat /dev/sdb1 /cdrom», который я нашел на форуме Debian. Я получаю следующее сообщение об ошибке «установка /dev /sdb1 на / cdrom не удалось: нет такого файла или каталога» я тогда пытаюсь mkdir CDROM, но он утверждает, что он уже существует. sdb1-это мой USB в соответствии с «mount»

Я не уверен, что делать в этот момент. Любой совет будет отличным. Благодаря.

источник

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.

Already on GitHub?
Sign in
to your account


Open

b-s101 opened this issue

May 8, 2013

· 6 comments

Comments

@b-s101

debootstrap —foreign —arch armhf ${deb_release} ${rootfs} ${deb_local_mirror} does not work in Raspbian build script. Changing deb_mirror to an official Debian mirror while leaving the rest of the script untouched works.

Maybe there are some packages missing in the Raspbian repository which are necessary for creating the root filesystem.

@andrius

@b-s101

That might do the trick. On the other hand I got it working by modifying the the first call of debootstrap to debootstrap —foreign —no-check-gpg —include=ca-certificates —arch=armhf ${deb_release} ${rootfs} ${deb_local_mirror}

edit:
—no-check-gpg must be added. Otherwise debootstrap will complain about an unknown key (E: Release signed by unknown key (key id 9165938D90FDDD2E))

@luked99

You can just download the Raspbian release key, import it into your own keyring, and then tell debootstrap to use that.

i.e.

 $ wget https://archive.raspbian.org/raspbian.public.key
 $ gpg --import raspbian.public.key
 $ debootstrap --keyring /root/.gnupg/pubring.gpg ....

@andrius

Thanks, I am going to release updated and better version soon :)

@luked99

Cool — I’m still struggling to get past the bit where it says that it can’t
find «mount», which I think is something to do with binformats.

On 28 November 2014 at 15:41, Andrius Kairiukstis notifications@github.com
wrote:

Thanks, I am going to release updated and better version soon :)


Reply to this email directly or view it on GitHub
#1 (comment)
.

@luked99

Or in fact you can probably just use this once you’ve downloaded the key:
$ apt-key add raspbian.public.key

# debootstrap  buster /srv/buster
I: Retrieving InRelease 
I: Checking Release signature
E: Release signed by unknown key (key id DCC9EFBF77E11517)

Where do I get this release key, and How do I add this release key to the debootstrap trust?

Answer

  • Where to get the release key? The debian archive keyring server:

    https://ftp-master.debian.org/keys.html

  • How to make debootstrap trust this release key:

    Make a new keyring, and inform deboostrap to use it:

    wget https://ftp-master.debian.org/keys/release-10.asc -qO- | gpg --import --no-default-keyring --keyring ./debian-release-10.gpg
    debootstrap --keyring=./debian-release-10.gpg buster /srv/buster
    

    Compatibility Note:

    I found that using a gpg2 keyring would not work due to debootstrap using gpgv under the hood, which uses a gpg1 database version. I recreated by gpg database like so from the , note that gpg is gpg 1.x.x not gpg 2.x.x or newer at time of writing:


If deboostrap were updated to use gpg --verify instead of gpgv, I would imagine gpg2 could be used as a drop-in replacement – But I cannot be certain.

Attribution
Source : Link , Question Author : ThorSummoner , Answer Author : ThorSummoner

version graph

Reported by: Walter <walter.stanish@gmail.com>

Date: Tue, 22 Jan 2013 05:03:02 UTC

Severity: normal

Tags: patch

Found in version debootstrap/1.0.44

Fixed in version debootstrap/1.0.97

Done: Hideki Yamane <henrich@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages


Report forwarded
to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#698677; Package debootstrap.
(Tue, 22 Jan 2013 05:03:04 GMT) (full text, mbox, link).


Acknowledgement sent
to Walter <walter.stanish@gmail.com>:
New Bug report received and forwarded. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>.
(Tue, 22 Jan 2013 05:03:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

Package: debootstrap
Version: 1.0.44

Running debootstrap on Gentoo (where the latest version available is
1.0.44) via 'lxc-create' (to generate an LXC guest environment) I
receive the unhelpful error:

 E: Release signed by unknown key (key id 64481591B98321F9)

I believe that this is possibly/probably because the key validity has
expired, and the Gentoo package's included keyring is no longer fresh.
That's fine and a reported bug at
https://bugs.gentoo.org/show_bug.cgi?id=387565

The issue I am reporting here is that *the error itself is not very
helpful*, specifically at identifying the keyring that requires
maintenance.

Given that:
 (a) There are multiple potential keyring paths acknowledged within
the debootstrap source
 (b) This tool is largely useful on other distributions that, like
gentoo, may understandable modify the keyring path
 (c) This tool is often going to be executed deep within automated
processes (eg. for continuous integration / automated testing, etc.)

It makes sense to extend the output of the error to something more
verbose that includes the keyring path and saves people wasted time
digging.

Two pieces of information should ideally be made available:
 1. The path to the keyring itself
 2. A debian (security/release team?) URL that may be used in third
party distro scripts to validate/update the current/expected signing
key IDs (I suppose, on a per-release basis), which as far as I can
tell does not presently exist in a simple list/automateable fashion
(though data is available in a not-well-documented form @
'active-keys/' in the tarball at
http://packages.debian.org/source/squeeze/debian-archive-keyring). For
the moment the URL could be
http://www.debian.org/doc/manuals/securing-debian-howto/ch7#s7.5.3.6
... to allow users to resolve the issue without relying on (probably
out of date) third-party distros' packages.  That URL should probably
be updated with a more useful line for people without debian (and
therefore apt-key installed), like:

  gpg --no-default-keyring --keyring
/usr/share/keyrings/debian-archive-keyring.gpg --keyserver
pgpkeys.mit.edu --recv-key 64481591B98321F9
 (Acknowledgement: command line built from post @
https://groups.google.com/forum/?fromgroups=#!topic/linux.debian.bugs.dist/tKv7EYb1HkE
)

 3. In addition, that URL's year-based-path solution appears no longer
valid (at least for 2013).

For reference purposes, the MD5 checksum of my
Gentoo-debootstrap-package-installed keyring prior to manual addition
of the key in question was d091e2e61800b3e5d65f956e05a42f36

PS. Apologies for the verbosity and not splitting the bugs (re: points
2 and 3 above) -- I am not normally a Debian/Ubuntu user and don't
have enough familiarity with project structure to do this efficiently.
Hopefully someone can deal with this on my behalf.



Message sent on
to Walter <walter.stanish@gmail.com>:
Bug#698677.
(Mon, 19 Mar 2018 13:51:05 GMT) (full text, mbox, link).


Message #8 received at 698677-submitter@bugs.debian.org (full text, mbox, reply):

control: tags -1 +patch

Hi,

On Tue, 22 Jan 2013 13:00:02 +0800 Walter <walter.stanish@gmail.com> wrote:
> It makes sense to extend the output of the error to something more
> verbose that includes the keyring path and saves people wasted time
> digging.

 Okay, how about below error message?

$ sudo debootstrap --keyring /usr/share/keyrings/notfound.gpg sid sid 
I: Retrieving InRelease 
I: Checking Release signature
E: Release signed by unknown key (key id 7638D0442B90D010)
   Maybe specified keyring /usr/share/keyrings/notfound.gpg is wrong or outdated, please check it
   You can find latest Debian release key at https://ftp-master.debian.org/keys.html


 Patch is below.

> diff --git a/functions b/functions
> index b780488..69ad423 100644
> --- a/functions
> +++ b/functions
> @@ -1494,7 +1494,7 @@ read_gpg_status () {
>         elif [ "$badsig" ]; then
>                 error 1 BADRELSIG "Invalid Release signature (key id %s)" "$badsig"
>         elif [ "$unkkey" ]; then
> -               error 1 UNKNOWNRELSIG "Release signed by unknown key (key id %s)" "$unkkey"
> +               error 1 UNKNOWNRELSIG "Release signed by unknown key (key id %s)n   Maybe specified keyring $KEYRING is wrong or outdated, please check itn   You can find latest Debian release key at https://ftp-master.debian.org/keys.html" "$unkkey"
>         else
>                 error 1 SIGCHECK "Error executing gpgv to check Release signature"
>         fi

 # However, it doesn't treat derivative distros like Ubuntu
   as limitation.




Added tag(s) patch.
Request was from Hideki Yamane <henrich@iijmio-mail.jp>
to 698677-submitter@bugs.debian.org.
(Mon, 19 Mar 2018 13:51:05 GMT) (full text, mbox, link).


Information stored
:
Bug#698677; Package debootstrap.
(Mon, 19 Mar 2018 23:36:03 GMT) (full text, mbox, link).


Acknowledgement sent
to Walter <walter.stanish@gmail.com>:
Extra info received and filed, but not forwarded.
(Mon, 19 Mar 2018 23:36:03 GMT) (full text, mbox, link).


Message #15 received at 698677-quiet@bugs.debian.org (full text, mbox, reply):

[Message part 1 (text/plain, inline)]
It looks like a reasonable fix, however I would improve the English as
follows.

"The specified keyring $KEYRING may be incorrect or out of date."

and

"You can find the latest Debian release key at ..."

Thanks,
Walter

On 19 March 2018 at 21:15, Hideki Yamane <henrich@iijmio-mail.jp> wrote:

> control: tags -1 +patch
>
> Hi,
>
> On Tue, 22 Jan 2013 13:00:02 +0800 Walter <walter.stanish@gmail.com>
> wrote:
> > It makes sense to extend the output of the error to something more
> > verbose that includes the keyring path and saves people wasted time
> > digging.
>
>  Okay, how about below error message?
>
> $ sudo debootstrap --keyring /usr/share/keyrings/notfound.gpg sid sid
> I: Retrieving InRelease
> I: Checking Release signature
> E: Release signed by unknown key (key id 7638D0442B90D010)
>    Maybe specified keyring /usr/share/keyrings/notfound.gpg is wrong or
> outdated, please check it
>    You can find latest Debian release key at
> https://ftp-master.debian.org/keys.html
>
>
>  Patch is below.
>
> > diff --git a/functions b/functions
> > index b780488..69ad423 100644
> > --- a/functions
> > +++ b/functions
> > @@ -1494,7 +1494,7 @@ read_gpg_status () {
> >         elif [ "$badsig" ]; then
> >                 error 1 BADRELSIG "Invalid Release signature (key id
> %s)" "$badsig"
> >         elif [ "$unkkey" ]; then
> > -               error 1 UNKNOWNRELSIG "Release signed by unknown key
> (key id %s)" "$unkkey"
> > +               error 1 UNKNOWNRELSIG "Release signed by unknown key
> (key id %s)n   Maybe specified keyring $KEYRING is wrong or outdated,
> please check itn   You can find latest Debian release key at
> https://ftp-master.debian.org/keys.html" "$unkkey"
> >         else
> >                 error 1 SIGCHECK "Error executing gpgv to check Release
> signature"
> >         fi
>
>  # However, it doesn't treat derivative distros like Ubuntu
>    as limitation.
>
[Message part 2 (text/html, inline)]

Message sent on
to Walter <walter.stanish@gmail.com>:
Bug#698677.
(Mon, 19 Mar 2018 23:36:05 GMT) (full text, mbox, link).


Message sent on
to Walter <walter.stanish@gmail.com>:
Bug#698677.
(Fri, 23 Mar 2018 12:45:10 GMT) (full text, mbox, link).


Message #21 received at 698677-submitter@bugs.debian.org (full text, mbox, reply):

On Tue, 20 Mar 2018 07:33:24 +0800
Walter <walter.stanish@gmail.com> wrote:
> It looks like a reasonable fix, however I would improve the English as
> follows.
> 
> "The specified keyring $KEYRING may be incorrect or out of date."
> 
> and
> 
> "You can find the latest Debian release key at ..."

 Thanks! I'll update it with your suggestion :)


-- 
Regards,

 Hideki Yamane     henrich @ debian.org/iijmio-mail.jp



Added tag(s) pending.
Request was from Hideki Yamane <henrich@iijmio-mail.jp>
to control@bugs.debian.org.
(Wed, 04 Apr 2018 01:24:04 GMT) (full text, mbox, link).


Reply sent
to Hideki Yamane <henrich@debian.org>:
You have taken responsibility.
(Tue, 17 Apr 2018 02:57:05 GMT) (full text, mbox, link).


Notification sent
to Walter <walter.stanish@gmail.com>:
Bug acknowledged by developer.
(Tue, 17 Apr 2018 02:57:05 GMT) (full text, mbox, link).


Message #28 received at 698677-close@bugs.debian.org (full text, mbox, reply):

Source: debootstrap
Source-Version: 1.0.97

We believe that the bug you reported is fixed in the latest version of
debootstrap, 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 698677@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Hideki Yamane <henrich@debian.org> (supplier of updated debootstrap 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 ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 17 Apr 2018 11:06:32 +0900
Source: debootstrap
Binary: debootstrap debootstrap-udeb
Architecture: source all
Version: 1.0.97
Distribution: unstable
Urgency: medium
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Hideki Yamane <henrich@debian.org>
Description:
 debootstrap - Bootstrap a basic Debian system
 debootstrap-udeb - Bootstrap the Debian system (udeb)
Closes: 698677 826709 844118 866401 872059 872577 872948 890419 893954 895466
Changes:
 debootstrap (1.0.97) unstable; urgency=medium
 .
   [ Dan Nicholson ]
   * Handle existing /dev (Closes: #872577)
 .
   [ Hideki Yamane ]
   * Create /dev/console as same as previous (Closes: #872059)
   * Do not ignore HTTPS mirror setting (Closes: #893954)
   * Improve manpage "what is calls a Debian base system" (Closes: #872948)
     Thanks to Emmanuel Kasper <manu@debian.org> for the patch
   * Improve error message when download fails (Closes: #866401)
     Thanks to Raphaël Hertzog <hertzog@debian.org> for the patch
   * Use wget --non-verbose option instead of --quiet
   * Improve error message on Release signed by unknown key (Closes: #698677)
   * Add --cache-dir feature (Closes: #844118)
     It is enabled by default and use /var/cache/apt/archives as default value
 .
   [ Adam Borowski ]
   * Use arch-test if installed to check whether second stage is possible.
     (Closes: #826709)
 .
   [ Lubomir Rintel ]
   * Fix boostrapping libvirt LXC containers (Closes: #890419)
 .
   [ Raphaël Hertzog ]
   * Use "command -v apt-config" to check for apt-config's presence
     (Closes: #895466)
   * Drop default value for --cache-dir parameter
   * Forbid the usage of non-empty directories with --print-debs and
     --make-tarball
   * Do not use HTTPS for Kali bootstrap script
Checksums-Sha1:
 dec58e328c8ca5a62ed929cba1323a21d053c960 1991 debootstrap_1.0.97.dsc
 ff4d6b40efebbbf14c33445419e8e264cf4c04c8 71121 debootstrap_1.0.97.tar.gz
 c2d21436e905fc28eb141fd25542c1d1d748f003 20556 debootstrap-udeb_1.0.97_all.udeb
 5eba09250171942f0b7483759285c85c24e82e74 69060 debootstrap_1.0.97_all.deb
 5cf71f8a36c995632a5d7ae31320941c907b56fa 5766 debootstrap_1.0.97_amd64.buildinfo
Checksums-Sha256:
 9b0dc362f97976833c1f148d00933c85a0095525885ad1a6845e81671d4aabdd 1991 debootstrap_1.0.97.dsc
 d3e6bef403dbabade11d098214030d5063c6b238d3751b159f727af7556c5cf0 71121 debootstrap_1.0.97.tar.gz
 b4f377d7e40b5128271dca859d924e79c36fc7d1c86408f91a474ad2c669f6e9 20556 debootstrap-udeb_1.0.97_all.udeb
 0177ffecea5cc1a42084ae02a44d8e902a086577cefc00194b983fd7f3d802a7 69060 debootstrap_1.0.97_all.deb
 c9d57dd2f298f41fd5d56badca0d88898b8797e7b5755db1b62e7b14cf99af02 5766 debootstrap_1.0.97_amd64.buildinfo
Files:
 355d536a46a764b9f798e977ffdf0acf 1991 admin optional debootstrap_1.0.97.dsc
 856379c44f4cec4be4071a91e061aafd 71121 admin optional debootstrap_1.0.97.tar.gz
 11ae2cd66f0ec42d94edda0a876fcb5a 20556 debian-installer optional debootstrap-udeb_1.0.97_all.udeb
 e1844d1cfb966c00101048bb9285f002 69060 admin optional debootstrap_1.0.97_all.deb
 e1d959b6ca11fbca1d18a15bb9403248 5766 admin optional debootstrap_1.0.97_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJHBAEBCgAxFiEEWOEiL5aWyIWjzRBMXTKNCCqqsUAFAlrVWFQTHGhlbnJpY2hA
ZGViaWFuLm9yZwAKCRBdMo0IKqqxQC1GD/9n8XmploJvPpi6CI0uFgBAwAHXOHZN
VRfdq/LmZBisF1Dw3cg1sPTy3JltrjCQjeVXOdPC5syz0ap5mJVKi6CdO8Yo+21+
dKqvb9WZOCJjQFVRoS7l/Vzto1wXwI80ylH5CNCNOmJnw7WLiKZZ8cKN+mh3CA4S
6iXZymu6Wz7BRaQa2LWVrpq/ygJpmqyt/tdzsFh5s621vEcsTUnxEokHoW9abzVF
FzWt9Dc8Ipn5iv+HeMdsQctwcWIbytfcchHLPlajeVP7alD7vFvQxan7jEFON4Tn
RRzkCfl7UKZHMHwrxYhchGYFg/c9qGM4sNu4wi6Aqo7KfogGhM/yXiSAcm4x6KZh
/nZ88IvuxRbqm7SfUOaw0eTby4d5L01PkMUopwFTLgg1YkaPe3eJhYnmzMHE1yEC
pIo0cwZHB64I5UwK4/1EtG4sy27M4dSVyuHXAMMUKv39AxUiZShAM6kttmGzoDUc
8opGN6Ip1RiX62SExZFEQQUMoA0ByR96U8vZUFAcwHEPyI+iW4nnFkNEhasWtDBY
u9EbhGNmVKUGbywoyuF//FYyrXPF2LuCNHIA/0zwhjd5U8Jytx+U+gfOa8DC6k5O
tpej8BjuI+Ob/8Kr0+dg6uJ0MnU/7gtHjJCMQ+GMwRr8mPT2tsa+rftTOVVShQym
czgQ2K/mIbhlFw==
=caYw
-----END PGP SIGNATURE-----




Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Tue, 05 Jun 2018 07:31:57 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Thu Feb 9 09:50:59 2023;
Machine Name:
buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.


debootstrap fails to create precise chroots: Release signed by unknown key

This bug affects 2 people

Affects Status Importance Assigned to Milestone


debootstrap (Ubuntu)

Confirmed

Undecided


Unassigned

Bug Description

Creating precise, and probably all other EOL-ed series, chroot fails with following error messages:

  $ sudo debootstrap precise target
  I: Retrieving InRelease
  I: Retrieving Release
  I: Retrieving Release.gpg
  I: Checking Release signature
  E: Release signed by unknown key (key id 40976EAF437D05B5)
     The specified keyring /usr/share/keyrings/ubuntu-archive-keyring.gpg may be incorrect or out of date.
     You can find the latest Debian release key at https://ftp-master.debian.org/keys.html

Precise key 40976EAF437D05B5 was moved into /usr/share/keyrings/ubuntu-archive-removed-keys.gpg[1][2] since ubuntu-keyring >= 2016.10.27, and yet /usr/share/debootstrap/scripts/precise (symlinked to /usr/share/debootstrap/scripts/gusty) is still using /usr/share/keyrings/ubuntu-archive-keys.gpg, so it will certainly fail unless —keyring … is specified.

[1]: https://bugs.launchpad.net/ubuntu/+source/ubuntu-keyring/+bug/1363482

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: debootstrap 1.0.116ubuntu2
ProcVersionSignature: Ubuntu 5.3.0-21.22-generic 5.3.7
Uname: Linux 5.3.0-21-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair wl
ApportVersion: 2.20.11-0ubuntu10
Architecture: amd64
CurrentDesktop: KDE
Date: Wed Nov 6 13:31:59 2019
InstallationDate: Installed on 2019-09-28 (38 days ago)
InstallationMedia: Ubuntu 19.10 «Eoan Ermine» — Alpha amd64 (20190923)
PackageArchitecture: all
SourcePackage: debootstrap
UpgradeStatus: No upgrade log present (probably fresh install)

  • Index
  • » Installation
  • » How to install DEVUAN Stable using DEBOOTSTRAP method to /target?

Pages: 1

#1 2017-04-30 08:50:45

spartrekus
Member
Registered: 2017-04-30
Posts: 132  

How to install DEVUAN Stable using DEBOOTSTRAP method to /target?

Hello,

How to install DEVUAN Stable using DEBOOTSTRAP method to /target?

I have several devuan machines, but debootstrap of devuan seems not to allow installation. debootstrap works however if you give the url of your friend, debian.

It hangs visibily during debootstrap of devuan installation, but it works flawlessly well to install debian.

So far, after many tries, it is impossible to bring more than 20-50mb over deboostrap sad

PKG="make,gcc,wireless-tools,login,passwd,less,vim,wpasupplicant,netbase,wget,cpio,binutils,dpkg,cron,dosfstools,e2fsprogs,dpkg,apt,apt-utils" 
mkdir /target 
debootstrap --include="$PKG" --arch i386  jessie  /target  http://auto.mirror.devuan.org/merged/ 
mkdir /target/lib/modules
mv    /target/boot   /target/boot-origin
mv    /target/etc/network   /target/etc/network-origin
vim /target/etc/shadow
exit

this works great:
debootstrap —include=»$PKG» —arch i386  jessie  /target http://ftp.de.debian.org/debian

Please at least make debootstrap working, because we are all looking forward having opportunity to Install and to Spread DEVUAN all around the WORLD !!

Last edited by spartrekus (2017-04-30 08:54:49)

#2 2017-04-30 10:36:28

ralph.ronnquist
Administrator
From: Clifton Hill, Victoria, AUS
Registered: 2016-11-30
Posts: 871  

Re: How to install DEVUAN Stable using DEBOOTSTRAP method to /target?

«Works for me» [tm]
I copied your command and tried it: 197M and no errors, 399M when unpacked and configured.

#3 2017-05-01 01:27:19

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,182  

Re: How to install DEVUAN Stable using DEBOOTSTRAP method to /target?

Refracta isos have included devuan debootstrap since some early version of devuan debootstrap. I just re-tested it with a current refracta iso. I did not give it a URL, and it pulls from packages.devuan.org. I stopped at «I: Base system installed successfully» (haven’t chrooted in and installed bootloader yet.) Looks to me like it works as it should.

Download a refracta live-iso and boot it from CD or USB on the computer you want to install. Instructions almost identical to what’s below are in /home/user/debootstrap_devuan
https://sourceforge.net/projects/refrac … isohybrid/

Create partition
Format partition
Mount the partition and run debootstrap. You might be more lenient with the excludes. Just excluding systemd-sysv should be equivalent to using one of the devuan_jessie installer isos.

mount /dev/sdb1 /mnt   # replace sdb1 with correct drive and partition
debootstrap --arch i386(or amd64) --exclude systemd,libpamsystemd,systemd-sysv,libsystemd0 jessie /mnt

If you have custom configs or other special files, you can copy files to the new system.
(example:   cp /boot/grub/splash.png /mnt/boot/grub/)

Mount some things so you can install the grub bootloader.

mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
mount --bind /dev /mnt/dev
mount --bind /dev/pts /mnt/dev/pts

Chroot into the installed system.

Install software, edit configs, *create root password*, create user, install a kernel.

Still in chroot, install the bootloader and create the boot menu, then exit the chroot.

grub-install  /dev/sdb   # replace sdb with correct drive
update-grub
exit

Unmount stuff.

umount -l /mnt/dev/pts
umount -l /mnt/dev/
umount -l /mnt/sys
umount -l /mnt/proc
umount -l /mnt

That’s all. Reboot.

Last edited by fsmithred (2017-05-01 02:04:11)

#4 2017-05-01 18:34:55

spartrekus
Member
Registered: 2017-04-30
Posts: 132  

Re: How to install DEVUAN Stable using DEBOOTSTRAP method to /target?

It is not necessary to mount the all stuffs. You can edit everything manually later once you boot the pc.

My method is working on Debian, so it shall work too on Devuan.

I used this command during years, so it must work too to install a Devuan.

PKG="make,gcc,wireless-tools,login,passwd,less,vim,wpasupplicant,netbase,wget,cpio,binutils,dpkg,cron,dosfstools,e2fsprogs,dpkg,apt,apt-utils" 
mkdir /target 
debootstrap --include="$PKG" --arch i386  jessie  /target  http://auto.mirror.devuan.org/merged/ 

There must be something not working well into the debootstrap of devuan.

#5 2017-05-01 21:32:49

ralph.ronnquist
Administrator
From: Clifton Hill, Victoria, AUS
Registered: 2016-11-30
Posts: 871  

Re: How to install DEVUAN Stable using DEBOOTSTRAP method to /target?

When you say «something not working well«, I assume you are getting some error message or something from the command. Perhaps you could share that with us?

#6 2017-05-02 12:53:47

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,182  

Re: How to install DEVUAN Stable using DEBOOTSTRAP method to /target?

The debootstrap command left me without a kernel or bootloader, so it was necessary to mount those things (didn’t really need /dev/pts) and chroot into the target to install grub and linux-image. While there, I also created a root password. There’s no way I could have rebooted to do those things in the installed system.

#7 2017-05-02 22:13:09

spartrekus
Member
Registered: 2017-04-30
Posts: 132  

Re: How to install DEVUAN Stable using DEBOOTSTRAP method to /target?

fsmithred wrote:

The debootstrap command left me without a kernel or bootloader, so it was necessary to mount those things (didn’t really need /dev/pts) and chroot into the target to install grub and linux-image. While there, I also created a root password. There’s no way I could have rebooted to do those things in the installed system.

woooo, you certainly do not need to mount —bind the whole stuffs, and also to install grub. It can bring disaster to install grub. With the newer grub, everything is automatic for Ubuntu/Debian/ new users, but it might bring serious disaster. Danger with you boot menu and all things automatic …
It is certainly better, if you know what you are doing, to install grub by hand with dd. /boot/grub needs to be populated. Herewith my mbr: https://github.com/spartrekus/tinyshellbox-tiny-shell

With my method you need with a good internet connection max. 5 minutes to install a debian base system wink Max 5 minutes. No longer.

Concerning password of root, you just remove the * in shadow. Once you reboot, you login to root and you have the hands to make it installed the way you want.

This week I will have more time and keep you up to date.

Last edited by spartrekus (2017-05-02 22:17:03)

#8 2017-05-05 16:30:14

spartrekus
Member
Registered: 2017-04-30
Posts: 132  

Re: How to install DEVUAN Stable using DEBOOTSTRAP method to /target?

         
 PKG="make,gcc,wireless-tools,login,passwd,less,vim,wpasupplicant,netbase,wget,cpio,binutils,dpkg,cron,dosfstools,e2fsprogs,dpkg,apt,apt-utils" 
sparrot@deathstar # debootstrap --include="$PKG" --arch i386 stable  /target  http://auto.mirror.devuan.org/merged/

I: Retrieving InRelease 
I: Checking Release signature
E: Release signed by unknown key (key id 94532124541922FB)

sparrot@deathstar #

I mentioned last time that I needed few days to give you the error msg. Herewith the error message as agreed.

Thank you in advance

Last edited by spartrekus (2017-05-05 16:33:50)

#9 2017-05-05 16:44:39

golinux
Administrator
Registered: 2016-11-25
Posts: 2,729  

Re: How to install DEVUAN Stable using DEBOOTSTRAP method to /target?

@spartrekus . . . If there is a bug, please submit it to bugs.devuan.org using the reportbug tool or by email.  Instructions are on the site here.

#10 2017-05-05 17:43:21

spartrekus
Member
Registered: 2017-04-30
Posts: 132  

Re: How to install DEVUAN Stable using DEBOOTSTRAP method to /target?

golinux wrote:

@spartrekus . . . If there is a bug, please submit it to bugs.devuan.org using the reportbug tool or by email.  Instructions are on the site here.

— Reportbug: I am sorry. I cannot submit a bug using the reportbug since it requires a large installation, which would not match with my minimal clean Linux installation.
— HTML: I have unfortunately no account (login/password/…)

#11 2017-05-05 19:09:06

golinux
Administrator
Registered: 2016-11-25
Posts: 2,729  

Re: How to install DEVUAN Stable using DEBOOTSTRAP method to /target?

spartrekus wrote:

— Reportbug: I am sorry. I cannot submit a bug using the reportbug since it requires a large installation, which would not match with my minimal clean Linux installation.
— HTML: I have unfortunately no account (login/password/…)

Please reread:

golinux wrote:

@spartrekus . . . If there is a bug, please submit it to bugs.devuan.org using the reportbug tool OR BY EMAIL.  Instructions are on the site here.

There are two methods to report a bug.  One is by email.  Do you have email?  You do not need an account and need to send in plain text not html.

#12 2017-05-12 12:20:18

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,182  

Re: How to install DEVUAN Stable using DEBOOTSTRAP method to /target?

spartrekus wrote:

         
 PKG="make,gcc,wireless-tools,login,passwd,less,vim,wpasupplicant,netbase,wget,cpio,binutils,dpkg,cron,dosfstools,e2fsprogs,dpkg,apt,apt-utils" 
sparrot@deathstar # debootstrap --include="$PKG" --arch i386 stable  /target  http://auto.mirror.devuan.org/merged/

I: Retrieving InRelease 
I: Checking Release signature
E: Release signed by unknown key (key id 94532124541922FB)

sparrot@deathstar #

I mentioned last time that I needed few days to give you the error msg. Herewith the error message as agreed.

Thank you in advance

I got that same error recently, but I don’t recall what I was doing. Maybe it was the debootstrap install, or maybe it was during an upgrade from jessie to ascii. I think I fixed it by adding the key, and I think I tried a couple different things. Sorry I didn’t take notes on that.

apt-get install devuan-keyring

and answer «yes» to the scary question.
or

gpg --recv-keys 541922FB
gpg --export -armor 541922FB | apt-key add -

Last edited by fsmithred (2017-05-12 12:21:01)

#13 2017-06-04 10:57:47

spartrekus
Member
Registered: 2017-04-30
Posts: 132  

Re: How to install DEVUAN Stable using DEBOOTSTRAP method to /target?

fsmithred wrote:

spartrekus wrote:

         
 PKG="make,gcc,wireless-tools,login,passwd,less,vim,wpasupplicant,netbase,wget,cpio,binutils,dpkg,cron,dosfstools,e2fsprogs,dpkg,apt,apt-utils" 
sparrot@deathstar # debootstrap --include="$PKG" --arch i386 stable  /target  http://auto.mirror.devuan.org/merged/

I: Retrieving InRelease 
I: Checking Release signature
E: Release signed by unknown key (key id 94532124541922FB)

sparrot@deathstar #

I mentioned last time that I needed few days to give you the error msg. Herewith the error message as agreed.

Thank you in advance

I got that same error recently, but I don’t recall what I was doing. Maybe it was the debootstrap install, or maybe it was during an upgrade from jessie to ascii. I think I fixed it by adding the key, and I think I tried a couple different things. Sorry I didn’t take notes on that.

apt-get install devuan-keyring

and answer «yes» to the scary question.
or

gpg --recv-keys 541922FB
gpg --export -armor 541922FB | apt-key add -

It does not work. Keyring not installed, and gpg is there but it does not allow it.

DEBIAN does install so why cannot it does DEVUAN??
All other deb’-distros work too with deboostrap

#14 2017-06-04 11:22:05

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,182  

Re: How to install DEVUAN Stable using DEBOOTSTRAP method to /target?

What error message did you get?

If you used the second method to add the key, make sure to include the final «-» after «add».

#15 2017-06-04 14:41:43

spartrekus
Member
Registered: 2017-04-30
Posts: 132  

Re: How to install DEVUAN Stable using DEBOOTSTRAP method to /target?

fsmithred wrote:

What error message did you get?

If you used the second method to add the key, make sure to include the final «-» after «add».

solved with this bash script. I installed DEVUAN !!

#/bin/bash

  PKG="make,wpasupplicant,netbase,login,passwd,less"
  debootstrap   --no-check-gpg  --include="$PKG" --arch i386 jessie  /target  http://auto.mirror.devuan.org/merged/ 

  mkdir -p  /target/lib/modules
  mv    /target/boot   /target/boot-origin
  mv    /target/etc/network   /target/etc/network-origin

#16 2017-07-10 07:22:28

crayxmp
Member
Registered: 2017-02-13
Posts: 2  

Re: How to install DEVUAN Stable using DEBOOTSTRAP method to /target?

Hello everyone !
I filed a bug report for the «Release signed by unknown key» error.
This error occurs when using devuan’s debootstrap using suites stable/testing/unstable but not for jessie/ascii/ceres.
Three symlinks to fix and there you go without forcing with an unsecure «—no-gpg-check» option.

Edit: And btw, thanks for all the good stuff.

Edit2: Sorry, obviously read «… since the sid script checks packages against debian-archive-keyring …» in the bug report.

Last edited by crayxmp (2017-07-11 21:45:57)

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Debian невозможно исправить ошибки у вас отложены held битые пакеты debian
  • Debian как изменить размер раздела
  • Debian как изменить имя компьютера
  • Debian как изменить дату
  • Debian telegram internal server error

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии