Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 577640 - emerge traceback - AttributeError: '_pkg_str' object has no attribute 'repo'
Summary: emerge traceback - AttributeError: '_pkg_str' object has no attribute 'repo'
Status: RESOLVED DUPLICATE of bug 577414
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Binary packages support (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-17 16:30 UTC by lnrd.mnt
Modified: 2016-03-18 09:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (info.txt,5.43 KB, text/plain)
2016-03-17 16:30 UTC, lnrd.mnt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lnrd.mnt 2016-03-17 16:30:17 UTC
Created attachment 428460 [details]
emerge --info

I have been asked to update (and clean) a vm running Gentoo Linux. For a while everything went fine but a few days back, right after connecting to the vm with ssh, emerge started to throw this error (luckly not emerge --info):

wp ~ # emerge -pv1 portage

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/1Q-2016...........................................
Traceback (most recent call last):
  File "/usr/bin/emerge", line 50, in <module>
    retval = emerge_main()
  File "/usr/lib64/python2.7/site-packages/_emerge/main.py", line 1174, in emerge_main
    return run_action(emerge_config)
  File "/usr/lib64/python2.7/site-packages/_emerge/actions.py", line 2766, in run_action
    quiet=("--quiet" in emerge_config.opts)):
  File "/usr/lib64/python2.7/site-packages/portage/_global_updates.py", line 41, in _global_updates
    quiet=quiet, if_mtime_changed=if_mtime_changed)
  File "/usr/lib64/python2.7/site-packages/portage/_global_updates.py", line 169, in _do_global_updates
    moves = bindb.move_ent(update_cmd, repo_match=repo_match)
  File "/usr/lib64/python2.7/site-packages/portage/dbapi/bintree.py", line 410, in move_ent
    and not repo_match(mycpv.repo):
AttributeError: '_pkg_str' object has no attribute 'repo'

I have tried to change the profile and reinstall portage by hand but emerge keeps crashing. Is there a way to fix this?
Thanks a lot!
Comment 1 Zac Medico gentoo-dev 2016-03-17 18:49:33 UTC
This probably has the same root cause as bug 577414.
Comment 2 lnrd.mnt 2016-03-18 09:30:00 UTC
Yes, that's probably the case since eclean-pkg solved it. I don't know which package caused the problem. I can only say that now there is an 's' (as in "/var/db SLOT move") instead of the traceback in emerge output.
Again thanks a lot!

*** This bug has been marked as a duplicate of bug 577414 ***