1. Add set named mygnome with anyone content, for i.e. "gnome-base/gnome-desktop" 2. Install this set: emerge @mygnome 3. Delete this set 4. Reinstall package: emerge gnome-base/gnome-desktop 5. Execute command and look error: # emerge --depclean -p * Always study the list of packages to be cleaned for any obvious * mistakes. Packages that are part of the world set will always * be kept. They can be manually added to this set with * `emerge --noreplace <atom>`. Packages that are listed in * package.provided (see portage(5)) will be removed by * depclean, even if they are part of the world set. * * As a safety measure, depclean will not remove any packages * unless *all* required dependencies have been resolved. As a * consequence, it is often necessary to run `emerge --update * --newuse --deep @system @world` prior to depclean. Traceback (most recent call last): File "/usr/bin/emerge", line 42, in <module> retval = emerge_main() File "/usr/lib64/portage/pym/_emerge/main.py", line 1368, in emerge_main myopts, myaction, myfiles, spinner) File "/usr/lib64/portage/pym/_emerge/actions.py", line 2312, in action_uninstall opts, action, valid_atoms, spinner) File "/usr/lib64/portage/pym/_emerge/actions.py", line 598, in action_depclean myopts, action, args_set, spinner) File "/usr/lib64/portage/pym/_emerge/actions.py", line 643, in calc_depclean initial_atoms=getSetAtoms(s)) File "/usr/lib64/portage/pym/portage/sets/__init__.py", line 179, in getSetAtoms raise PackageSetNotFound(s) PackageSetNotFound: mygnome 6. Add file in sets directory: # touch mygnome 7. emerge --depclean -p — works fine
*** Bug 288454 has been marked as a duplicate of this bug. ***
I case you didn't know, removing mygnome from /var/lib/portage/world_sets will make the error go away.
*** Bug 288446 has been marked as a duplicate of this bug. ***
This bug is no longer present. It now prints: >>> These are the packages that would be unmerged: * Unknown set '@deleted_set' in /var/lib/portage/world_sets and keeps working.