Pacstrap ist failing for me with «error: keyring is not writable» (see log below for more details). This is in archiso using an automated script. Sometimes the installation fails with that error, most of the time it works. If I run pacstrap again in the same shell, it works fine. I did not change anything about the VM in between installation runs.
Installation script (run via script=)
#!/usr/bin/sh -ex
loadkeys de
parted -s /dev/sda mklabel gpt mkpart "EFI_system_partition" fat32 1MiB 501MiB set 1 esp on mkpart "root" ext4 501MiB 100%
mkfs.fat -F 32 /dev/sda1
mkfs.ext4 /dev/sda2
mount /dev/sda2 /mnt
mount --mkdir /dev/sda1 /mnt/boot
pacstrap -K /mnt base linux linux-firmware openssh nano
Log:
+ mount /dev/sda2 /mnt
+ mount --mkdir /dev/sda1 /mnt/boot
+ pacstrap -K /mnt base linux linux-firmware openssh nano
==> Creating install root at /mnt
gpg: /mnt/etc/pacman.d/gnupg/trustdb.gpg: trustdb created
gpg: no ultimately trusted keys found
gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from '/mnt/etc/pacman.d/gnupg/secring.gpg' to gpg-agent
gpg: migration succeeded
==> Generating pacman master key. This may take some time.
gpg: Generating pacman keyring master key...
gpg: directory '/mnt/etc/pacman.d/gnupg/openpgp-revocs.d' created
gpg: revocation certificate stored as '/mnt/etc/pacman.d/gnupg/openpgp-revocs.d/B0BF58B34AC4154FB1F3ED50FE024B71BC78F08F.rev'
gpg: Done
==> Updating trust database...
gpg: marginals needed: 3 completes needed: 1 trust model: pgp
gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u
==> Installing packages to /mnt
:: Synchronizing package databases...
core 152.1 KiB 1383 KiB/s 00:00 [########################################################] 100%
extra 1744.5 KiB 24.3 MiB/s 00:00 [########################################################] 100%
community 7.2 MiB 31.3 MiB/s 00:00 [########################################################] 100%
resolving dependencies...
:: There are 3 providers available for initramfs:
:: Repository core
1) mkinitcpio
:: Repository extra
2) booster 3) dracut
Enter a number (default=1):
looking for conflicting packages...
Packages (126) acl-2.3.1-2 archlinux-keyring-20221220-1 argon2-20190702-4 attr-2.5.1-2 audit-3.0.9-1 bash-5.1.016-1 binutils-2.40-2 brotli-1.0.9-9
bzip2-1.0.8-5 ca-certificates-20220905-1 ca-certificates-mozilla-3.87-1 ca-certificates-utils-20220905-1 coreutils-9.1-3 cryptsetup-2.6.0-1
curl-7.87.0-3 dbus-1.14.4-1 device-mapper-2.03.18-4 diffutils-3.8-1 dnssec-anchors-20190629-3 e2fsprogs-1.46.5-4 expat-2.5.0-1
file-5.44-1 filesystem-2022.10.18-1 findutils-4.9.0-1 gawk-5.2.1-1 gcc-libs-12.2.1-1 gdbm-1.23-1 gettext-0.21.1-2 glib2-2.74.5-1
glibc-2.36-7 gmp-6.2.1-2 gnupg-2.2.40-1 gnutls-3.7.8-4 gpgme-1.18.0-2 grep-3.8-2 gzip-1.12-1 hwdata-0.366-1 iana-etc-20221215-1
icu-72.1-2 iproute2-6.1.0-3 iptables-1:1.8.8-2 iputils-20221126-1 jansson-2.14-2 json-c-0.16-1 kbd-2.5.1-1 keyutils-1.6.3-1 kmod-30-3
krb5-1.20.1-1 ldns-1.8.3-2 less-1:608-1 libarchive-3.6.2-2 libassuan-2.5.5-1 libbpf-1.0.1-1 libcap-2.66-1 libcap-ng-0.8.3-1
libedit-20210910_3.1-2 libelf-0.188-2 libevent-2.1.12-4 libffi-3.4.4-1 libgcrypt-1.10.1-2 libgpg-error-1.46-2 libidn2-2.3.4-3
libksba-1.6.3-1 libldap-2.6.3-2 libmnl-1.0.5-1 libnetfilter_conntrack-1.0.9-1 libnfnetlink-1.0.2-1 libnftnl-1.2.4-1 libnghttp2-1.51.0-1
libnl-3.7.0-1 libp11-kit-0.24.1-1 libpcap-1.10.3-1 libpsl-0.21.2-1 libsasl-2.1.28-3 libseccomp-2.5.4-1 libsecret-0.20.5-2
libssh2-1.10.0-3 libsysprof-capture-3.46.0-3 libtasn1-4.19.0-1 libtirpc-1.3.3-2 libunistring-1.1-2 libverto-0.3.2-4 libxcrypt-4.4.33-1
libxml2-2.10.3-2 licenses-20220125-1 linux-api-headers-5.18.15-1 linux-firmware-whence-20230117.7e4f0ed-1 lz4-1:1.9.4-1 mkinitcpio-34-2
mkinitcpio-busybox-1.35.0-1 mpfr-4.2.0-2 ncurses-6.4-1 nettle-3.8.1-1 npth-1.6-3 openssl-3.0.7-4 p11-kit-0.24.1-1 pacman-6.0.2-5
pacman-mirrorlist-20221204-1 pam-1.5.2-1 pambase-20221020-1 pciutils-3.9.0-2 pcre2-10.40-3 pinentry-1.2.1-1 popt-1.19-1
procps-ng-3.3.17-1 psmisc-23.6-1 readline-8.2.001-1 sed-4.9-1 shadow-4.13-2 sqlite-3.40.1-1 systemd-252.4-2 systemd-libs-252.4-2
systemd-sysvcompat-252.4-2 tar-1.34-1 tpm2-tss-3.2.0-3 tzdata-2022g-1 util-linux-2.38.1-1 util-linux-libs-2.38.1-1 xz-5.4.1-1
zlib-1:1.2.13-2 zstd-1.5.2-7 base-3-1 linux-6.1.8.arch1-1 linux-firmware-20230117.7e4f0ed-1 nano-7.2-1 openssh-9.1p1-3
Total Download Size: 467.04 MiB
Total Installed Size: 887.97 MiB
:: Proceed with installation? [Y/n]
:: Retrieving packages...
linux-firmware-20230117.7e4f0ed-1-any 170.2 MiB 21.2 MiB/s 00:08 [########################################################] 100%
linux-6.1.8.arch1-1-x86_64 164.1 MiB 12.2 MiB/s 00:13 [########################################################] 100%
gcc-libs-12.2.1-1-x86_64 33.9 MiB 14.4 MiB/s 00:02 [########################################################] 100%
(... removed, see paste ...)
base-3-1-any 2.2 KiB 319 KiB/s 00:00 [########################################################] 100%
ca-certificates-20220905-1-any 2.0 KiB 289 KiB/s 00:00 [########################################################] 100%
Total (126/126) 467.0 MiB 15.3 MiB/s 00:31 [########################################################] 100%
(126/126) checking keys in keyring [########################################################] 100%
warning: Public keyring not found; have you run 'pacman-key --init'?
downloading required keys...
error: keyring is not writable
error: keyring is not writable
(... repeates removed, see paste ...)
error: keyring is not writable
error: keyring is not writable
error: required key missing from keyring
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.
==> ERROR: Failed to install packages to new root
The disk is writable and working fine. Pacstrap was able to create various files on it.
(full log: https://bpa.st/6UIOY)
For comparison, a log of a working installation within the same VM: https://bpa.st/WFD7G
Any hints on how to debug this further?
# (отредактировано 2 года, 8 месяцев назад) |
|
Темы: 17 Сообщения: 86 Участник с: 25 февраля 2017 |
Обновил систему после очень долго перерыва через
Все вроде прошло без ошибок, только почему-то зеркала при установке пакетов не сразу подхватываются(вначале выскакивает ошибка, о том, что не получилось достать пакет на зеркале), а так же ключи не обновляются, ибо один из пакетов хотел заимпортить ключ, но я получил следующую ошибку
Пытался обновить ключи через
Помогите решить проблему |
redix |
# |
Темы: 34 Сообщения: 3433 Участник с: 11 марта 2013 |
Добавить ключ
In Tux We Trust |
RusWolf |
# (отредактировано 2 года, 8 месяцев назад) |
Темы: 11 Сообщения: 2414 Участник с: 16 июля 2016 |
Обновление ключей: # pacman-key —init # pacman-key —refresh-keys # pacman-key —populate archlinux мля. опоздал |
redix |
# |
Темы: 34 Сообщения: 3433 Участник с: 11 марта 2013 |
Могу уступить первенство. )
In Tux We Trust |
RusWolf |
# |
Темы: 11 Сообщения: 2414 Участник с: 16 июля 2016 |
не-не, всё должно быть по честному |
vs220 |
# |
Темы: 22 Сообщения: 8092 Участник с: 16 августа 2009 |
Зеркала попробуйте обновить на актуальные в /etc/pacman.d/mirrorlist
Список актуальных https://www.archlinux.org/mirrorlist/
если не поможет смотрите |
wh75er |
# |
Темы: 17 Сообщения: 86 Участник с: 25 февраля 2017 |
не помогло
|
vs220 |
# |
Темы: 22 Сообщения: 8092 Участник с: 16 августа 2009 |
Зеркала
? |
wh75er |
# |
Темы: 17 Сообщения: 86 Участник с: 25 февраля 2017 |
Все, проблема с зеркалами ушла, когда я добавил файл более новый mirrorlist, но с ключами таже проблема. Попробовал сделать
Не помогло. Сейчас попробую сделать предложенное |
vs220 |
# |
Темы: 22 Сообщения: 8092 Участник с: 16 августа 2009 |
Обновление идет? Или на ключи ругается? |
Следите за новостями русскоязычного сообщества Ubuntu в Twitter-ленте @ubuntu_ru_loco
- Форум русскоязычного сообщества Ubuntu »
- Поддержка »
- Программное обеспечение (Модератор: DoctorRover) »
- [РЕШЕНО]Не могу поставить rvm, не принимает ключ.
- Печать
Страницы: [1] Вниз
Тема: [РЕШЕНО]Не могу поставить rvm, не принимает ключ. (Прочитано 4529 раз)
0 Пользователей и 1 Гость просматривают эту тему.

Dimensi
На сайте рвм написано, что прежде чем я установлю его, я должен принять ключ.
я делаю sudo gpg —keyserver hkp://keys.gnupg.net —recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
А потом я делаю curl -sSL https://get.rvm.io | bash -s stable —ruby и он мне выдает
detox@detox-desktop:~$ sudo gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
[sudo] password for detox:
gpg: requesting key D39DC0E3 from hkp server keys.gnupg.net
gpg: key D39DC0E3: "Michal Papis (RVM signing) <mpapis@gmail.com>" 1 new signature
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg: new signatures: 1
detox@detox-desktop:~$ curl -sSL https://get.rvm.io | bash -s stable --ruby
Downloading https://github.com/rvm/rvm/archive/1.26.11.tar.gz
Downloading https://github.com/rvm/rvm/releases/download/1.26.11/1.26.11.tar.gz.asc
gpg: failed to create temporary file `/home/detox/.gnupg/.#lk0x7f340c225b50.detox-desktop.10694': Permission denied
gpg: keyblock resource `/home/detox/.gnupg/pubring.gpg': General error
gpg: Signature made Вт. 31 марта 2015 00:52:13 MSK using RSA key ID BF04FF17
gpg: Can't check signature: No public key
Warning, RVM 1.26.0 introduces signed releases and automated check of signatures when GPG software found.
Assuming you trust Michal Papis import the mpapis public key (downloading the signatures).
GPG signature verification failed for '/home/detox/.rvm/archives/rvm-1.26.11.tgz' - 'https://github.com/rvm/rvm/releases/download/1.26.11/1.26.11.tar.gz.asc'!
try downloading the signatures:
gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
or if it fails:
command curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
the key can be compared with:
https://rvm.io/mpapis.asc
https://keybase.io/mpapis
detox@detox-desktop:~$ gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
gpg: failed to create temporary file `/home/detox/.gnupg/.#lk0x7ff5b74adc30.detox-desktop.10712': Permission denied
gpg: keyblock resource `/home/detox/.gnupg/secring.gpg': General error
gpg: failed to create temporary file `/home/detox/.gnupg/.#lk0x7ff5b74adc70.detox-desktop.10712': Permission denied
gpg: keyblock resource `/home/detox/.gnupg/pubring.gpg': General error
gpg: requesting key D39DC0E3 from hkp server keys.gnupg.net
gpg: no writable keyring found: Unknown system error
gpg: error reading `[stream]': General error
gpg: Total number processed: 0
detox@detox-desktop:~$ sudo gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
gpg: requesting key D39DC0E3 from hkp server keys.gnupg.net
gpg: key D39DC0E3: "Michal Papis (RVM signing) <mpapis@gmail.com>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
detox@detox-desktop:~$ sudo command curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
sudo: command: command not found
gpg: failed to create temporary file `/home/detox/.gnupg/.#lk0x7f449c550b50.detox-desktop.10756': Permission denied
gpg: keyblock resource `/home/detox/.gnupg/secring.gpg': General error
gpg: failed to create temporary file `/home/detox/.gnupg/.#lk0x7f449c550b90.detox-desktop.10756': Permission denied
gpg: keyblock resource `/home/detox/.gnupg/pubring.gpg': General error
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
detox@detox-desktop:~$ sudo curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
gpg: failed to create temporary file `/home/detox/.gnupg/.#lk0x7fed8fe95b50.detox-desktop.10775': Permission denied
gpg: keyblock resource `/home/detox/.gnupg/secring.gpg': General error
gpg: failed to create temporary file `/home/detox/.gnupg/.#lk0x7fed8fe95b90.detox-desktop.10775': Permission denied
gpg: keyblock resource `/home/detox/.gnupg/pubring.gpg': General error
gpg: no writable keyring found: Unknown system error
gpg: error reading `-': General error
gpg: import from `-' failed: General error
gpg: Total number processed: 0
Почему он ключ не принимает?
Пользователь решил продолжить мысль 19 Апреля 2015, 20:34:12:
Отвечу сам себе на свою ошибку. Когда я первый раз запустил gpg от имени рута, все тогда и полете тар-тарары. Чтобы вылечить эту ошибку нужно сделать то, что попросили в этой инструкции и больше не когда не юзать sudo с gpg.
« Последнее редактирование: 20 Октября 2016, 16:48:19 от Punko »
- Печать
Страницы: [1] Вверх
- Форум русскоязычного сообщества Ubuntu »
- Поддержка »
- Программное обеспечение (Модератор: DoctorRover) »
- [РЕШЕНО]Не могу поставить rvm, не принимает ключ.
SMF 2.0.19 |
SMF © 2011, Simple Machines | Карта форума
Страница сгенерирована за 0.05 секунд. Запросов: 25.
What is wrong? How can I install it?
PS C:Usersluism> gem install sqlite3
Temporarily enhancing PATH for MSYS/MINGW…
Installing required msys2 packages: mingw-w64-x86_64-sqlite3
warning: Public keyring not found; have you run ‘pacman-key —init’?
error: mingw32: key «AD351C50AE085775EB59333B5F92EFC1A47D45A1» is unknown
error: keyring is not writable
error: mingw64: key «AD351C50AE085775EB59333B5F92EFC1A47D45A1» is unknown
error: keyring is not writable
error: msys: key «AD351C50AE085775EB59333B5F92EFC1A47D45A1» is unknown
error: keyring is not writable
error: database ‘mingw32’ is not valid (invalid or corrupted database (PGP signature))
error: database ‘mingw64’ is not valid (invalid or corrupted database (PGP signature))
error: database ‘msys’ is not valid (invalid or corrupted database (PGP signature))
pacman failed with the following output:
Building native extensions. This could take a while…
ERROR: Error installing sqlite3:
ERROR: Failed to build gem native extension.
current directory: C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sqlite3-1.4.2/ext/sqlite3
C:/Ruby26-x64/bin/ruby.exe -I C:/Ruby26-x64/lib/ruby/2.6.0 -r ./siteconf20200718-41156-1cxbffc.rb extconf.rb
checking for sqlite3.h… no
sqlite3.h is missing. Install SQLite3 from http://www.sqlite.org/ first.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
—with-opt-dir
—without-opt-dir
—with-opt-include
—without-opt-include=${opt-dir}/include
—with-opt-lib
—without-opt-lib=${opt-dir}/lib
—with-make-prog
—without-make-prog
—srcdir=.
—curdir
—ruby=C:/Ruby26-x64/bin/$(RUBY_BASE_NAME)
—with-sqlcipher
—without-sqlcipher
—with-sqlite3-config
—without-sqlite3-config
—with-pkg-config
—without-pkg-config
—with-sqlcipher
—without-sqlcipher
—with-sqlite3-dir
—without-sqlite3-dir
—with-sqlite3-include
—without-sqlite3-include=${sqlite3-dir}/include
—with-sqlite3-lib
—without-sqlite3-lib=${sqlite3-dir}/lib
To see why this extension failed to compile, please check the mkmf.log which can be found here:
C:/Ruby26-x64/lib/ruby/gems/2.6.0/extensions/x64-mingw32/2.6.0/sqlite3-1.4.2/mkmf.log
extconf failed, exit code 1