Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Did portage bork itself? (SOLVED)

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
devsk
Advocate
Advocate
User avatar
Posts: 3039
Joined: Fri Oct 24, 2003 1:16 am
Location: Bay Area, CA

Did portage bork itself? (SOLVED)

  • Quote

Post by devsk » Fri Nov 10, 2023 2:36 am

Code: Select all

Performing Global Updates
(Could take a couple of minutes if you have a lot of binary packages.)
  .='update pass'  *='binary update'  #='/var/db update'  @='/var/db move'
  s='/var/db SLOT move'  %='binary move'  S='binary SLOT move'
  p='update /etc/portage/package.*'
/usr/portage/profiles/updates/4Q-2023.....................
/usr/portage/profiles/updates/3Q-2023....................
!!! Cannot update binary: Destination exists.
!!! dev-python/charset_normalizer-2.1.1 -> dev-python/charset-normalizer-2.1.1
!!! Cannot update binary: Destination exists.
!!! dev-python/charset_normalizer-2.1.1-r1 -> dev-python/charset-normalizer-2.1.1-r1
!!! Cannot update binary: Destination exists.
!!! dev-python/charset_normalizer-3.0.0 -> dev-python/charset-normalizer-3.0.0
!!! Cannot update binary: Destination exists.
!!! dev-python/charset_normalizer-3.0.1 -> dev-python/charset-normalizer-3.0.1
!!! Cannot update binary: Destination exists.
!!! dev-python/charset_normalizer-3.0.1 -> dev-python/charset-normalizer-3.0.1
!!! Cannot update binary: Destination exists.
!!! dev-python/charset_normalizer-3.0.1 -> dev-python/charset-normalizer-3.0.1
!!! Cannot update binary: Destination exists.
!!! dev-python/charset_normalizer-3.1.0 -> dev-python/charset-normalizer-3.1.0
!!! Cannot update binary: Destination exists.
!!! dev-python/charset_normalizer-3.1.0 -> dev-python/charset-normalizer-3.1.0
!!! Cannot update binary: Destination exists.
!!! dev-python/uri_template-1.2.0-r1 -> dev-python/uri-template-1.2.0-r1
!!! Cannot update binary: Destination exists.
!!! dev-python/uri_template-1.2.0-r1 -> dev-python/uri-template-1.2.0-r1
!!! Cannot update binary: Destination exists.
!!! dev-python/uri_template-1.2.0-r1 -> dev-python/uri-template-1.2.0-r1
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.10/emerge", line 57, in main
    retval = emerge_main()
  File "/usr/lib/python3.10/site-packages/_emerge/main.py", line 1306, in emerge_main
    return run_action(emerge_config)
  File "/usr/lib/python3.10/site-packages/_emerge/actions.py", line 3848, in run_action
    return action_sync(emerge_config)
  File "/usr/lib/python3.10/site-packages/_emerge/actions.py", line 2415, in action_sync
    success, msgs = syncer.auto_sync(options=options)
  File "/usr/lib/python3.10/site-packages/portage/emaint/modules/sync/sync.py", line 89, in auto_sync
    return self._sync(repos, return_messages, emaint_opts=options)
  File "/usr/lib/python3.10/site-packages/portage/emaint/modules/sync/sync.py", line 261, in _sync
    self._do_pkg_moves()
  File "/usr/lib/python3.10/site-packages/portage/emaint/modules/sync/sync.py", line 272, in _do_pkg_moves
    if self.emerge_config.opts.get("--package-moves") != "n" and _global_updates(
  File "/usr/lib/python3.10/site-packages/portage/_global_updates.py", line 41, in _global_updates
    return _do_global_updates(
  File "/usr/lib/python3.10/site-packages/portage/_global_updates.py", line 257, in _do_global_updates
    bindb.update_ents(repo_map, onUpdate=onUpdate)
  File "/usr/lib/python3.10/site-packages/portage/dbapi/__init__.py", line 426, in update_ents
    aux_update(cpv, metadata_updates)
  File "/usr/lib/python3.10/site-packages/portage/dbapi/bintree.py", line 284, in aux_update
    raise KeyError(cpv)
KeyError: 'dev-python/jsonschema-4.14.0'
What is this? Is python trying to move package from a name of a_b to a-b and failing?

How do I recover?
Last edited by devsk on Mon Nov 13, 2023 6:10 am, edited 1 time in total.
Top
devsk
Advocate
Advocate
User avatar
Posts: 3039
Joined: Fri Oct 24, 2003 1:16 am
Location: Bay Area, CA

  • Quote

Post by devsk » Fri Nov 10, 2023 7:27 am

All emerge operations end with this error. I can not update any package.
Top
Goverp
Advocate
Advocate
User avatar
Posts: 2402
Joined: Wed Mar 07, 2007 6:41 pm

  • Quote

Post by Goverp » Fri Nov 10, 2023 9:13 am

I think I had a similar result yesterday that cleared when I re-synced a couple of hours later.
This may not affect you: I sync by downloading the squashfs snapshot, definitely a non-standard way of syncing, but I did have problems because the snapshot date AFAIR Nov 7 seemed broken. The Nov 9 snapshot worked OK. As I say, it might not be what's causing your problem, but the snapshot might reflect a problem with the underlying portage tree that you synced against.
Greybeard
Top
devsk
Advocate
Advocate
User avatar
Posts: 3039
Joined: Fri Oct 24, 2003 1:16 am
Location: Bay Area, CA

  • Quote

Post by devsk » Fri Nov 10, 2023 8:06 pm

Code: Select all

KeyError: 'dev-python/jsonschema-4.14.0'
Does anybody know where this key is coming from? I don't have jsonschema-4.14.0 installed right now. So, why is it even looking at that version?

I am completely blocked by this. What a nightmare!!
Top
grknight
Retired Dev
Retired Dev
Posts: 2564
Joined: Fri Feb 20, 2015 9:36 pm

  • Quote

Post by grknight » Fri Nov 10, 2023 9:07 pm

This looks to have to do with binary packages, but this is only a guess.

Similar to the old Bug 571126 but this may be a regression. Might be worth filing a new bug if portage is recent.

Edit: Other related bug to initial messages: Bug 791856
Top
devsk
Advocate
Advocate
User avatar
Posts: 3039
Joined: Fri Oct 24, 2003 1:16 am
Location: Bay Area, CA

  • Quote

Post by devsk » Fri Nov 10, 2023 9:32 pm

That's a very good hint @grknight! I can archive the binary packages folder and rebuild it just with current packages and see what happens.
Top
devsk
Advocate
Advocate
User avatar
Posts: 3039
Joined: Fri Oct 24, 2003 1:16 am
Location: Bay Area, CA

  • Quote

Post by devsk » Mon Nov 13, 2023 6:09 am

That worked! Thanks @grknight for the hint in the right direction!
Top
js08
n00b
n00b
User avatar
Posts: 47
Joined: Tue Mar 04, 2008 10:42 am

  • Quote

Post by js08 » Sun Dec 17, 2023 8:43 pm

ran into the same problem today.

moving away my binpkgs solved it.
Train Hard Or Don't Train At All
Top
Post Reply

8 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic