From: "Сандалов Станислав" <loki_mod@mail.ru>
To: sysadmins@lists.altlinux.org
Subject: [Sysadmins] apt+gpg
Date: Tue, 19 Apr 2011 18:39:48 +0400
Message-ID: <1303223988.24635.3.camel@modding> (raw)
Добрый день. Возникла проблема с настройкой собственного репозитория с
подписью.
Имеется 2 машины: сервер, клиент. Для настройки сабжа делалось
следующее:
1. В hasher были собраны определенные пакеты и помещены
в /var/ftp/mirror/local/x86_64/RPMS.local
2. На сервере был создан ключ для пользователя admin (gpg --gen-key, тип
RSA только для подписи)
3. Созданы индексы репозитория (genbasedir --sign
--topdir=/var/ftp/mirror/local x86_64 local)
4. Далее бы экспортирован ключ и скопирован на клиентскую машину, где бы
успешно импортирован(gpg --export/--import)
5. В /etc/apt/sources.list указан репозиторий
$ cat /etc/apt/sources.list
# Local package resource list for APT goes here.
# To inspect package defined part, see /etc/apt/sources.list.d/*.list
rpm [local] ftp://192.168.30.161/mirror/local x86_64 local
6. В /etc/apt/vendors.list указан слепок ключа
$ cat /etc/apt/vendors.list
simple-key "local" {
Fingerprint "A8E9352B19BEB1564517C28BBF3203E7229E6EE9";
Name "admin (loki_mod) <admin@localdomain>";
}
7. Запускаю apt-get update
$ sudo apt-get update
Get:1 http://ftp://192.168.30.161 x86_64 release [673B]
Err http://ftp://192.168.30.161 x86_64 release
File was not signed with a known key. Check if the proper gpg key was
imported to your keyring.
Fetched 673B in 0s (11.7kB/s)
Failed to fetch
http://ftp://192.168.30.161/mirror/local/x86_64/base/release File was
not signed with a known key. Check if the proper gpg key was imported to
your keyring.
Reading Package Lists... Done
Building Dependency Tree... Done
W: Release files for some repositories could not be retrieved or
authenticated. Such repositories are being ignored.
W: You may want to run apt-get update to correct these problems
E: Some index files failed to download, they have been ignored, or old
ones used instead.
Подскажите пожалуйста в чем я не прав.
next reply other threads:[~2011-04-19 14:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-19 14:39 Сандалов Станислав [this message]
2011-04-19 17:11 ` Michael Shigorin
2011-04-19 18:20 ` Сандалов Станислав
2011-04-19 18:47 ` Michael Shigorin
2011-04-19 19:54 ` Sergey Vlasov
2011-04-19 20:07 ` Mikhail Efremov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1303223988.24635.3.camel@modding \
--to=loki_mod@mail.ru \
--cc=sysadmins@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux sysadmins discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
public-inbox-index sysadmins
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sysadmins
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git