ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
* [Sysadmins] apt+gpg
@ 2011-04-19 14:39 Сандалов Станислав
  2011-04-19 17:11 ` Michael Shigorin
  2011-04-19 19:54 ` Sergey Vlasov
  0 siblings, 2 replies; 6+ messages in thread
From: Сандалов Станислав @ 2011-04-19 14:39 UTC (permalink / raw)
  To: sysadmins

Добрый день. Возникла проблема с настройкой собственного репозитория с
подписью.
Имеется 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.

Подскажите пожалуйста в чем я не прав.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-04-19 20:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-19 14:39 [Sysadmins] apt+gpg Сандалов Станислав
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

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