l33t
Joined: 18 May 2005
Posts: 671
Location: USA
Posted: Sat Oct 18, 2014 3:35 am Post subject: [SOLVED] emerge —sync fails | ||
|
||
My emerge —sync fails with this error message repeated 10 times with different IP addresses:
This is a new problem. All I changed was the commenting out of the /etc/portage/make.conf variables (for testing). Any pointers will be gratefully received. [SOLVED] tw04l124 suggested emerge-webrsync and that worked. Also, today emerge —sync worked as well, for the first time in a few weeks. [/SOLVED]
Last edited by cfgauss on Sat Nov 01, 2014 4:02 pm; edited 1 time in total |
Advocate
Joined: 03 Oct 2006
Posts: 3842
Location: Austro Bavaria
Posted: Sat Oct 18, 2014 6:16 pm Post subject: | ||
|
||
maybe try emerge-webrysnc
is your network set up correct? can you ping out in the www? you definitely need mirrors in make.conf
post your make.conf and emerge —info to a pastebin and post the links here, thanks |
l33t
Joined: 18 May 2005
Posts: 671
Location: USA
Posted: Sat Oct 18, 2014 11:28 pm Post subject: | ||||||||
|
||||||||
Thanks for your help. |
n00b
Joined: 20 May 2014
Posts: 10
Posted: Sun Oct 19, 2014 1:13 am Post subject: | ||
|
||
Thank you for this post. I too was having the same issue. It was the first time I —sync’d in a month. emerge-webrsync running as I type. Machine is C6 processor 200MHz from 1999 era, takes a while no matter what.
|
l33t
Joined: 18 May 2005
Posts: 671
Location: USA
Posted: Sun Oct 19, 2014 3:16 am Post subject: | ||||
|
||||
Thanks for your post. |
n00b
Joined: 15 Feb 2004
Posts: 34
Posted: Sun Oct 19, 2014 6:31 am Post subject: | ||
|
||
My nightly script has been spitting this out on and off for the last week. |
Advocate
Joined: 03 Oct 2006
Posts: 3842
Location: Austro Bavaria
Posted: Sun Oct 19, 2014 9:33 am Post subject: | |
|
|
emerge web-rsync is more secure anyway and recommendend unoffically.
It could be a blocked port on any hop to the server |
Moderator
Joined: 06 Mar 2007
Posts: 20723
n00b
Joined: 20 May 2014
Posts: 10
Display posts from previous:
Есть машина с Gentoo, которая ОЧЕНЬ давно не обновлялась. При попытке скачать обновления получаю ошибку:
$ sudo emerge --sync
Пароль:
>>> Syncing repository 'gentoo' into '/usr/portage'...
* Using keys from /usr/share/openpgp-keys/gentoo-release.asc
* Refreshing keys from keyserver ...OpenPGP keyring refresh failed:
gpg: refreshing 4 keys from hkps://hkps.pool.sks-keyservers.net
gpg: keyserver refresh failed: Server indicated a failure
Рекомендации 2019 года – https://forums.gentoo.org/viewtopic-p-8358476.html – не помогают, там другая ошибка.
В чём может быть дело?
Итог:
Достаточно легко удалось проапдейтить gcc, python, portage, system и кое-что ещё, удаляя /usr/portage/ и распаковывая туда снапшоты squashfs от 20180701, 20190801, 20200801 и 20210801. При этом ряд программ пришлось маскировать и в итоге снести, так как их не осталось ни на зеркалах, ни в апстриме. Особенно подвержены этому оказались Дженту-специфичные утилиты.
Проапдейтив system, gcc, python и частично KDE до августа 2021-го года, решился синхронизироваться и пересобрать мир. На разруливание конфликтов ушла неделя вечеров. Часть пакетов пришлось снести, чтобы не мешали, но почти всё шло гладко, пока не ушла в своп сборка Chromium-а 100 — 16 гигабайт оказалось мало. После ресета отказались грузиться иксы. Хромиум тоже снёс, а сборку мира, emerge @preserved-rebuild
и обновление ядра завершил без иксов.
С X.org оказалось, что надо запускать elogind и dbus, а вместо startkde вызывать startplasma-x11, желательно через dbus. startplasma-x11 ставится с kde-plasma/plasma-workspace
В итоге получилась система, в которой от старой почти ничего не осталось, кроме make.conf, примерно 3/4 portage.use и /home. Оверлеи ещё не подключал.
Стоило ли сразу ставить с нуля по хендбуку? Не знаю.
А сам ключ нашёлся в пакетах app-crypt/openpgp-keys-gentoo-release и sec-keys/openpgp-keys-gentoo-release.
Skip to content
Trying to sync one of our virtual servers we got a sync error not able to refresh the OpenPGP keys. The virtual server was just resumed and it was OK before the pause. In addition, there were no errors in dmesg or some kind of kernel panics. All seemed to be working even the server was in the distributed compiling node and no problems there. But still, the emerge syncing the portage tree wasn’t possible!
And the problem was the date of our virtual server, which was 4 months behind the real date!
Check the time and date of the server – if it is behind or in the future with a big interval this is the root of the problems with the inability to refresh the GPG keys.
Just synchronize the clock of the server and be careful when you resume pause virtual servers! When you resume them you should synchronize the clock because in multiple environments the clock might be wrong!
We have multiple articles on the time syncronization topic – openntpd – immediately sync the clock on startup, simple time synchronization of a server (laptop, desktop) using built-in systemd-timesyncd service and more.
compile-local ~ # emerge --sync >>> Syncing repository 'gentoo' into '/usr/portage'... * Using keys from /usr/share/openpgp-keys/gentoo-release.asc * Refreshing keys from keyserver ...OpenPGP keyring refresh failed: gpg: refreshing 4 keys from hkps://hkps.pool.sks-keyservers.net gpg: keyserver refresh failed: General error OpenPGP keyring refresh failed: gpg: refreshing 4 keys from hkps://hkps.pool.sks-keyservers.net gpg: keyserver refresh failed: General error OpenPGP keyring refresh failed: gpg: refreshing 4 keys from hkps://hkps.pool.sks-keyservers.net gpg: keyserver refresh failed: General error OpenPGP keyring refresh failed: gpg: refreshing 4 keys from hkps://hkps.pool.sks-keyservers.net gpg: keyserver refresh failed: General error OpenPGP keyring refresh failed: gpg: refreshing 4 keys from hkps://hkps.pool.sks-keyservers.net gpg: keyserver refresh failed: General error OpenPGP keyring refresh failed: gpg: refreshing 4 keys from hkps://hkps.pool.sks-keyservers.net gpg: keyserver refresh failed: General error OpenPGP keyring refresh failed: gpg: refreshing 4 keys from hkps://hkps.pool.sks-keyservers.net gpg: keyserver refresh failed: General error ^C Exiting on signal Signals.SIGINT compile-local ~ # date Sat 08 Apr 2019 15:11:39 PM -00 compile-local ~ # /etc/init.d/ntpd restart * Starting OpenNTPD ... [ ok ] compile-local ~ # date Sun 01 Sep 2019 08:02:34 AM -00 compile-local ~ #
Websync also does not work! Seeing the date it tries to download could point you out the problem with the date! Multiple missing portage files starting from the date “20190417” i.e. 2019/04/17.
compile-local ~ # emerge-webrsync Fetching most recent snapshot ... Trying to retrieve 20190417 snapshot from http://distfiles.gentoo.org ... Fetching file portage-20190417.tar.xz.md5sum ... Fetching file portage-20190417.tar.bz2.md5sum ... Fetching file portage-20190417.tar.gz.md5sum ... 20190417 snapshot was not found Trying to retrieve 20190416 snapshot from http://distfiles.gentoo.org ... Fetching file portage-20190416.tar.xz.md5sum ... Fetching file portage-20190416.tar.bz2.md5sum ... Fetching file portage-20190416.tar.gz.md5sum ... 20190416 snapshot was not found Trying to retrieve 20190415 snapshot from http://distfiles.gentoo.org ... Fetching file portage-20190415.tar.xz.md5sum ... Fetching file portage-20190415.tar.bz2.md5sum ... Fetching file portage-20190415.tar.gz.md5sum ... 20190415 snapshot was not found Trying to retrieve 20190414 snapshot from http://distfiles.gentoo.org ... Fetching file portage-20190414.tar.xz.md5sum ... Fetching file portage-20190414.tar.bz2.md5sum ... Fetching file portage-20190414.tar.gz.md5sum ... 20190414 snapshot was not found Trying to retrieve 20190413 snapshot from http://distfiles.gentoo.org ... Fetching file portage-20190413.tar.xz.md5sum ... Fetching file portage-20190413.tar.bz2.md5sum ... Fetching file portage-20190413.tar.gz.md5sum ... 20190413 snapshot was not found
Модератор: /dev/random
-
devilr
- Сообщения: 3625
- ОС: Mandriva => Gentoo (~amd64)
- Контактная информация:
РЕШЕНО: emerge —sync
Доброго времени суток!
После некоторого времени решил обновить систему и получил:
Код: Выделить всё
# emerge --sync
>>> Syncing repository 'gentoo' into '/usr/portage'...
* Using keys from /usr/share/openpgp-keys/gentoo-release.asc
* Refreshing keys via WKD ... [ !! ]
* Refreshing keys from keyserver hkps://keys.gentoo.org ...Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/portage/util/_async/AsyncFunction.py", line 39, in _run
result = self.target(*(self.args or []), **(self.kwargs or {}))
File "/usr/lib/python3.7/site-packages/portage/sync/controller.py", line 169, in sync
taskmaster.run_tasks(tasks, func, status, options=task_opts)
File "/usr/lib/python3.7/site-packages/portage/sync/controller.py", line 68, in run_tasks
result = getattr(inst, func)(**kwargs)
File "/usr/lib/python3.7/site-packages/portage/sync/syncbase.py", line 316, in sync
return self.update()
File "/usr/lib/python3.7/site-packages/portage/sync/modules/rsync/rsync.py", line 151, in update
self._refresh_keys(openpgp_env)
File "/usr/lib/python3.7/site-packages/portage/sync/syncbase.py", line 290, in _refresh_keys
func_coroutine = functools.partial(loop.run_in_executor,
NameError: name 'functools' is not defined
Я что-то пропустил, да?
Последний раз редактировалось devilr 28.07.2020 19:37, всего редактировалось 1 раз.
Мудрость приходит с возрастом.
Иногда возраст приходит один.
Эхо разума
-
/dev/random
- Администратор
- Сообщения: 5214
- ОС: Gentoo
Re: emerge —sync
Сообщение
/dev/random »
Это баг одной версии sys-apps/portage (а именно 3.0.0), которая попала в нестабильную ветку на несколько часов, а в стабильной её никогда и не было. Вы нестабильной веткой пользуетесь? Обновите или откатите portage на любую другую версию.
-
devilr
- Сообщения: 3625
- ОС: Mandriva => Gentoo (~amd64)
- Контактная информация:
Re: emerge —sync
Сообщение
devilr »
Да. Именно 3.0.0. Мда. Кто бы знал. А я уж все версии пайтона перепробовал
В любом случае, спасибо!
P.S. А мне нравятся нестабильные вещи. С ними чувствуешь, что живёшь!
P.P.S. О! 3.0.1 подъехало
Мудрость приходит с возрастом.
Иногда возраст приходит один.
Эхо разума
@Oleg: Thanks for the pointer. It solved the problem with pythong_tagrgets. However, I came to another problem: version conflict between dev-util/gdbus-codegen-2.50.3 and dev-libs/glib-2.50.3-r1:
# emerge -av "dev-libs/glib" These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild U ] dev-libs/glib-2.50.3-r1:2::x-portage [2.48.2:2::gentoo] USE="dbus* mime xattr -debug (-fam) (-selinux) -static-libs -systemtap {-test} -utils" ABI_X86="32 (64) (-x32)" PYTHON_TARGETS="python2_7" 9,298 KiB [blocks B ] <dev-util/gdbus-codegen-2.50.3 ("<dev-util/gdbus-codegen-2.50.3" is blocking dev-libs/glib-2.50.3-r1) Total: 1 package (1 upgrade), Size of downloads: 9,298 KiB Conflict: 1 block (1 unsatisfied) * Error: The above package list contains packages which cannot be * installed at the same time on the same system. dev-util/gdbus-codegen-2.48.2:0/0::gentoo, installed pulled in by >=dev-util/gdbus-codegen-2.32 required by sys-fs/udisks-2.6.5:2/2::gentoo, installed dev-util/gdbus-codegen required by net-print/cups-filters-1.14.1:0/0::gentoo, installed dev-util/gdbus-codegen required by app-crypt/gcr-3.20.0:0/1::gentoo, installed dev-util/gdbus-codegen required by net-libs/webkit-gtk-2.4.11-r1:3/25::gentoo, installed dev-util/gdbus-codegen required by net-misc/modemmanager-1.6.4:0/1::gentoo, installed >=dev-util/gdbus-codegen-2.38.2 required by x11-libs/gtk+-3.20.9:3/3::gentoo, installed dev-util/gdbus-codegen required by gnome-base/gnome-desktop-3.20.2:3/12::gentoo, installed dev-util/gdbus-codegen required by gnome-base/gvfs-1.28.3-r1:0/0::gentoo, installed dev-util/gdbus-codegen required by gnome-extra/evolution-data-server-3.20.5:0/57::gentoo, installed dev-util/gdbus-codegen required by app-misc/geoclue-2.4.4:2.0/2.0::gentoo, installed >=dev-util/gdbus-codegen-2.30.0 required by net-libs/gnome-online-accounts-3.20.4:0/1::gentoo, installed dev-util/gdbus-codegen required by net-libs/webkit-gtk-2.16.3:4/37::gentoo, installed dev-util/gdbus-codegen required by gnome-base/dconf-0.26.0:0/0::gentoo, installed dev-util/gdbus-codegen required by app-crypt/libsecret-0.18.5:0/0::gentoo, installed dev-libs/glib-2.50.3-r1:2/2::x-portage, ebuild scheduled for merge pulled in by >=dev-libs/glib-2.34:2 required by sci-geosciences/geocode-glib-3.20.1:0/0::gentoo, installed >=dev-libs/glib-2.40:2 required by gnome-extra/evolution-ews-3.20.5:0/0::gentoo, installed >=dev-libs/glib-2.40:2=[dbus] required by sys-auth/consolekit-1.0.1:0/0::gentoo, installed >=dev-libs/glib-2.40:2 required by gnome-extra/evolution-data-server-3.20.5:0/57::gentoo, installed >=dev-libs/glib-2.46.2:2 required by gnome-base/gvfs-1.28.3-r1:0/0::gentoo, installed dev-libs/glib:2 required by net-misc/remmina-1.2.0_rc18:0/0::gentoo, installed >=dev-libs/glib-2.34.3:2[abi_x86_64(-)] required by net-libs/libsoup-2.54.1-r1:2.4/2.4::gentoo, installed >=dev-libs/glib-2.45.8:2[abi_x86_64(-)] required by x11-libs/gtk+-3.20.9:3/3::gentoo, installed >=dev-libs/glib-2.37.6:2[abi_x86_64(-)] required by dev-libs/json-glib-1.2.2:0/0::gentoo, installed dev-libs/glib:2 required by dev-qt/qtgui-5.7.1:5/5.7::gentoo, installed >=dev-libs/glib-2.32:2[abi_x86_64(-)] required by app-accessibility/at-spi2-atk-2.20.1:2/2::gentoo, installed >=dev-libs/glib-2.34:2 required by app-misc/geoclue-2.4.4:2.0/2.0::gentoo, installed >=dev-libs/glib-2.32:2 required by dev-lang/vala-0.32.1:0.32/0.32::gentoo, installed >=dev-libs/glib-2.28:2[abi_x86_64(-)] required by net-wireless/bluez-5.45:0/3::gentoo, installed >=dev-libs/glib-2.34.3:2[abi_x86_32(-),abi_x86_64(-)] required by x11-libs/pango-1.40.3:0/0::gentoo, installed >=dev-libs/glib-2.35.1:2 required by dev-libs/libgweather-3.20.3:2/3-6::gentoo, installed >=dev-libs/glib-2.48.0:2[abi_x86_64(-)] required by dev-cpp/glibmm-2.48.1:2/2::gentoo, installed dev-libs/glib required by app-emulation/virtualbox-bin-5.1.22.115126:0/0::gentoo, installed >=dev-libs/glib-2.4.0:2[abi_x86_64(-)] required by media-sound/pulseaudio-10.0:0/0::gentoo, installed >=dev-libs/glib-2.45.8:2 required by dev-util/gtk-update-icon-cache-3.20.9:0/0::gentoo, installed >=dev-libs/glib-2.40:2 required by x11-libs/vte-0.44.2:2.91/2.91::gentoo, installed dev-libs/glib:2 required by net-misc/icaclient-13.5.0.10185126:0/0::gentoo, installed >=dev-libs/glib-2.34.3:2[abi_x86_64(-)] required by dev-libs/fribidi-0.19.7:0/0::gentoo, installed >=dev-libs/glib-2.36:2 required by mate-base/mate-desktop-1.18.0:0/0::gentoo, installed >=dev-libs/glib-2.34.3:2[abi_x86_32(-),abi_x86_64(-)] required by dev-libs/libcroco-0.6.11:0.6/0.6::gentoo, installed dev-libs/glib:2 required by app-text/poppler-0.51.0:0/66::gentoo, installed >=dev-libs/glib-2.16.0:2[abi_x86_64(-)] required by gnome-base/libgnome-keyring-3.12.0-r1:0/0::gentoo, installed dev-libs/glib:2 required by net-print/cups-filters-1.14.1:0/0::gentoo, installed >=dev-libs/glib-2.34.3:2[abi_x86_64(-)] required by media-libs/gstreamer-0.10.36-r2:0.10/0.10::gentoo, installed >=dev-libs/glib-2.48:2 required by dev-libs/gobject-introspection-1.48.0:0/0::gentoo, installed >=dev-libs/glib-2.6:2 required by dev-util/gtk-doc-1.25-r1:0/0::gentoo, installed >=dev-libs/glib-2.32 required by net-libs/libqmi-1.18.0:0/5.1::gentoo, installed >=dev-libs/glib-2.24:2[abi_x86_64(-)] required by net-libs/rest-0.8.0:0.7/0.7::gentoo, installed >=dev-libs/glib-2.34.3:2[abi_x86_32(-),abi_x86_64(-)] required by dev-libs/atk-2.20.0:0/0::gentoo, installed >=dev-libs/glib-2:2 required by app-admin/system-config-printer-1.4.8:0/0::gentoo, installed >=dev-libs/glib-2.44.0:2[dbus] required by gnome-base/gnome-desktop-3.20.2:3/12::gentoo, installed dev-libs/glib:2 required by net-im/slack-bin-2.5.2:0/0::gentoo, installed >=dev-libs/glib-2.36:2 required by net-libs/webkit-gtk-2.4.11-r1:3/25::gentoo, installed >=dev-libs/glib-2.32:2 required by net-libs/libmbim-1.14.0:0/0::gentoo, installed >=dev-libs/glib-2.34.3:2[abi_x86_32(-),abi_x86_64(-)] required by media-libs/harfbuzz-9999:0/0.9.18::gentoo, installed >=dev-libs/glib-2.40.0:2[abi_x86_64(-)] required by media-libs/gst-plugins-bad-1.10.3:1.0/1.0::gentoo, installed >=dev-libs/glib-2.40.0:2[abi_x86_64(-)] required by media-libs/gst-plugins-base-1.10.4:1.0/1.0::gentoo, installed >=dev-libs/glib-2.30.0:2[abi_x86_64(-)] required by dev-libs/libgudev-231:0/0::gentoo, installed >=dev-libs/glib-2.38:2 required by gnome-base/gnome-keyring-3.20.0:0/0::gentoo, installed dev-libs/glib:2 required by x11-misc/rofi-1.3.1:0/0::gentoo, installed dev-libs/glib:2[abi_x86_64(-)] required by dev-qt/qtcore-4.8.7-r2:4/4::gentoo, installed >=dev-libs/glib-2.46:2 required by net-im/telepathy-mission-control-5.16.4:0/0::gentoo, installed >=dev-libs/glib-2.34.3:2[abi_x86_64(-)] required by dev-libs/dbus-glib-0.108:0/0::gentoo, installed >=dev-libs/glib-2.34.3:2[abi_x86_32(-),abi_x86_64(-)] required by gnome-base/librsvg-2.40.16:2/2::gentoo, installed