Multiple package instances within a single package slot have been pulled!!! Into the dependency graph, resulting in a slot conflict Have a good cry over it Find one 'Target' in the problem group. Already was to portage-2.3.8-r6 and i've added the backtrack option to see if the conflict get solved, however the outcome is identical.
The purpose of this page is to provide users, in particular new ones, with a set of techniques and tools to allow them to troubleshoot and fix problems with their Gentoo setups on their own. In addition, for those problems which are more complicated, this article seeks to provide users with the skills to collect information that will aid them and their supporters in resolving their issues with a greater degree of expediency.
This article assumes that the Gentoo Handbook has been read and that there is a basic understanding of using Gentoo.
Gentoo has quite a few wikis all of which have a wealth of information. Be wary that some articles may contain old or outdated information, but hands down, reading wiki articles is always a critical step when using Gentoo.
On IRC, the #gentoo is the recommended channel for general issues. This is probably the fastest way to get an answer.
Since IRC channels require active presence, some users might prefer leaving a message at a forum or mailing list which continues to exist after closing the browser. When an answer pops up, a notification (usually through an e-mail) is sent back.
When all else fails, and it appears something is broken with Gentoo, Gentoo's bug tracker is a great resource to see if something has already been reported, or to create new bugs if need be. This is a very effective way to reach the Gentoo Developers, which can then use the given feedback to improve the problematic situation and solve the problem.
This is a collection of tools that are highly recommended:
Package | Description |
---|---|
app-portage/gentoolkit | provides a collection of tools for interacting with Gentoo; it includes the valuable equery, eclean, euse and eshowkw, see their man pages for more information. |
app-portage/eix | provides eix, a tool for querying portage for packages |
app-portage/pfl | provides e-file, a tool for querying what package contains a given file; it also works for packages that aren't installed since it uses an online lookup. |
app-portage/genlop | provides genlop, a tool for parsing emerge logs; handy to figure out when certain packages were installed, updated and to see how long they took to compile. |
app-portage/elogv | provides elogv, a ncurses based interface for browsing emerge logs. |
Package | Description |
---|---|
sys-apps/pciutils | provides lspci, a tool for gathering information about PCI devices. |
sys-apps/usbutils | provides lsusb, a tool for gathering information about USB devices. |
Package | Description |
---|---|
sys-process/htop | provides htop, a tool for monitoring processes. Like top, but more advanced. |
sys-process/iotop | provides iotop, a top-like tool for monitoring IO activity by process. |
net-analyzer/nettop | provides nettop, a top-like tool for examining network traffic by protocol, port, and process. |
Package | Description |
---|---|
app-text/wgetpaste | provides wgetpaste, a tool for uploading text directly to a pastebin. |
net-irc/weechat | provides weechat, a simple text based IRC client. |
In order to shape a problem into a solution you first need to understand the problem well enough. If the problem is not clear then it will be very hard, if not impossible to come up with a solution. An accurate, detailed description of the problem is more likely to yield a solution that best fits the problem.
This part may seem like it's a no-brainer, but without it, any troubleshooting will be next to impossible.
Take note of a few things:
Storing any form of detail, logs, other people experiencing it and more can be valuable and gives a good overview.
Driver issues for hardware is one of the more common issues that are reported on IRC.
First and foremost, identify what the hardware is that is causing problems. lspci and lsusb are great tools for this purpose. For demonstration purposes, we'll be looking at an Ethernet card as the troublesome device.
First look with lspci and find the device information:
It is also possible to use the -n
option to give a short-hand notation (which might be easier to search for on the Internet):
The model name (0200
) and vendor/model (11ab:436b
) can be used to look up the device on a place like WikiDevi or Debian HCL to find the right driver to use in Linux.
Getting the driver is less than half of the battle. Most of the trouble with drivers is making sure that they are loaded and operating correctly.
Relying on our friend lspci again, run:
Note that here, an indicator is given that a driver is in use. If not, then no driver has claimed responsibility over this hardware. Assuming the driver was built as a module rather than built-in, try modprobe <modulename> to attempt loading the right module. If the driver was built-in, consider making it a module, because modules can be loaded with modprobe and unloaded with modprobe -r which saves on number reboots while debugging the issue.
Compile the driver as a module, then capture the output it generates when the module is loaded. Make sure to first remove all modules that depend on the driver (see lsmod).
The following command will compare the dmesg output after removing the module (in this example, r8169
) with the output after adding the module again, effectively showing the messages that were added (lines starting with +).
root #
diff -u <(modprobe -r r8169; dmesg) <(sleep 1; modprobe r8169; dmesg) grep ^+
The most common issue is missing firmware. If a message shows up that informs the administrator about missing firmware, grab either sys-kernel/linux-firmware or a specific firmware package from Portage and install it. After the firmware installation, unload and load the kernel module again to see if this fixes the situation.
Occasionally, messages like this occur when trying to emerge a package:
Generally, this means that the packages listed have multiple requested versions in the dependency graph. And fortunately most, if not all, cases allow to resolve it by manually upgrading to the highest requested version. So assuming that the following message was received:
The most recent version desired is 20120520, so:
root #
emerge --ask --oneshot =app-emulation/emul-linux-x86-xlibs-20120520
Often, it's advantageous to one-shot (--oneshot
or -1
) all of the conflicts at once because they sometimes depend on one another.
Here is another example of a block:
There should be no problem changing poppler versions. Note that app-text/texlive-core does not require a specific version of poppler, but it needs to be rebuild with whatever version is used:
root #
emerge --ask --oneshot =app-text/poppler-0.24.5 app-text/texlive-core
Here is another example that could have resulted in a blockage:
root #
emerge --ask --verbose --update --newuse --deep @world
Portage warns about an update that can not be performed, however, there is no issue because this update is not required by a package. More precisely, the update must be skipped because mate-base/mate-applets-1.12.1-r4 requires a version of sys-power/cpupower package lower than 4.7.
Trouble shoot a compiled binary by Debugging with powerful tools.
When seeking help, often additional information will be asked, such as the output of a command. Some of these produce dozens or hundreds of lines of text - too much to be suitable for pasting into chat rooms, such as the Gentoo IRC support channel.
Wgetpaste allows users to post short links to a website that contains long output.
To show the contents of /etc/conf.d/net:
If someone needs the detailed output of an lspci command is:
Sometimes it is necessary to redirect stderr to stdout so that error messages can be pasted as well:
root #
wgetpaste /var/tmp/portage/<category>/<package>-<version>/temp/build.log
Below is a shell function that can be used to have several commands executed and their output processed by a single wgetpaste command so that only one URL needs to be provided to the user or developer that wants to help out:
Most pastebin services expire old pastes periodically (not to mention that pastebin services are hardly profitable, and close down all the time) whereas mailing list messages are archived in multiple places and are referenced for years. If the relevant output is short, or can be trimmed, then copy and paste it into the body of the email - longer output can be directed into a text file and added as a plain attachment.
With a good description of the problem, a complete history of actions and all sorts of debugging data (problem details, hardware / software information, logs, backtraces and more) a good set of useful data is available to look for a solution.
In general, repeat the following steps to come to a solution:
Often this will lead to multiple possible causes. It is important to test them (to verify it is the actual cause or not) and therefore test them individually; this is also known as 'divide and conquer'.
Let's say a problem like 'my browser sometimes displays white pages when I boot' comes up and a lot of details are already known about it, then there may be number of possible causes:
And so on...
With the additional information, dare to think about more specific causes:
As each possible cause is investigated, the actual cause of the problem might come closer and closer.
And in the end, if the cause is still not found, the Where to get help resources at the top of this article yield a multitude of places with people that are looking forward to help; make them happy with a careful problem description and mentioning what has already been tried so far, it'll help them help out.
1 | PS: Sorry, I tried it in a container. Here´s what I get on the host: |
2 | |
3 | |
4 | emerge -1a portage |
5 | [...] |
6 | [ebuild N ] sys-apps/install-xattr-0.5 |
7 | [ebuild N ] dev-python/packaging-15.3-r2 USE='{-test}' PYTHON_TARGETS='python2_7 python3_4 (-pypy) (-pypy3) -python3_3 (-python3_5)' |
8 | [ebuild U ] dev-python/setuptools-18.4 [7.0] PYTHON_TARGETS='python3_4* -python3_3* (-python3_5)' |
9 | [ebuild N ] dev-python/certifi-2015.11.20 PYTHON_TARGETS='python2_7 python3_4 (-pypy) (-pypy3) -python3_3 (-python3_5)' |
10 | [ebuild N ] dev-python/pyxattr-0.5.5 USE='-doc {-test}' PYTHON_TARGETS='python2_7 python3_4 (-pypy) -python3_3 (-python3_5)' |
11 | [ebuild U ] sys-apps/portage-2.2.28 [2.2.14] USE='xattr*' PYTHON_TARGETS='python3_4* -python3_3* (-python3_5)' |
12 | |
13 | !!! Multiple package instances within a single package slot have been pulled |
14 | !!! into the dependency graph, resulting in a slot conflict: |
15 | |
16 | dev-python/setuptools:0 |
17 | |
18 | (dev-python/setuptools-18.4:0/0::gentoo, ebuild scheduled for merge) pulled in by |
19 | dev-python/setuptools[python_targets_pypy(-)?,python_targets_pypy3(-)?,python_targets_python2_7(-)?,python_targets_python3_3(-)?,python_targets_python3_4(-)?,python_targets_python3_5(-)?,-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python2_7(-),-python_single_target_python3_3(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-)] required by (dev-python/certifi-2015.11.20:0/0::gentoo, ebuild scheduled for merge) |
20 | |
21 | dev-python/setuptools[python_targets_pypy(-)?,python_targets_python2_7(-)?,python_targets_python3_3(-)?,python_targets_python3_4(-)?,python_targets_python3_5(-)?,-python_single_target_pypy(-),-python_single_target_python2_7(-),-python_single_target_python3_3(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-)] required by (dev-python/pyxattr-0.5.5:0/0::gentoo, ebuild scheduled for merge) |
22 | |
23 | |
24 | (dev-python/setuptools-7.0:0/0::gentoo, installed) pulled in by |
25 | dev-python/setuptools[python_targets_python2_7(-),python_targets_python3_3(-),-python_single_target_python2_7(-),-python_single_target_python3_3(-),-python_single_target_python3_4(-),-python_single_target_pypy(-)] required by (dev-python/cryptography-0.6.1:0/0::gentoo, installed) |
26 | |
27 | dev-python/setuptools[python_targets_pypy(-)?,python_targets_pypy3(-)?,python_targets_python2_7(-)?,python_targets_python3_3(-)?,python_targets_python3_4(-)?,-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python2_7(-),-python_single_target_python3_3(-),-python_single_target_python3_4(-)] required by (dev-python/chardet-2.2.1:0/0::gentoo, installed) |
28 | |
29 | |
30 | sys-apps/portage:0 |
31 | |
32 | (sys-apps/portage-2.2.28:0/0::gentoo, ebuild scheduled for merge) pulled in by |
33 | sys-apps/portage (Argument) |
34 | |
35 | (sys-apps/portage-2.2.14:0/0::gentoo, installed) pulled in by |
36 | sys-apps/portage[python_targets_pypy(-)?,python_targets_python2_7(-)?,python_targets_python3_3(-)?,python_targets_python3_4(-)?,-python_single_target_pypy(-),-python_single_target_python2_7(-),-python_single_target_python3_3(-),-python_single_target_python3_4(-)] required by (app-portage/gentoolkit-0.3.0.9-r2:0/0::gentoo, installed) |
37 | |
38 | sys-apps/portage[python_targets_python2_7(-)?,python_targets_python3_3(-)?,-python_single_target_python2_7(-),-python_single_target_python3_3(-)] required by (app-admin/webapp-config-1.52-r1:0/0::gentoo, installed) |
39 | |
40 | |
41 | Neil Bothwick schrieb: |
42 | > On Wed, 10 Aug 2016 12:54:37 +0200, hw wrote: |
43 | > |
44 | >> emerge -a portage --newuse --update |
45 | > |
46 | > That tries to updates deps too, try this |
47 | > |
48 | > emerge -1a portage |
49 | > |
50 | > or even, if that still fails |
51 | > |
52 | > emerge -1a --nodeps portage |
53 | > |
54 | > |
55 | |
56 | emerge -1a portage |
57 | [...] |
58 | Calculating dependencies... done! |
59 | [ebuild N ] sys-apps/install-xattr-0.5 |
60 | [ebuild N ] dev-python/packaging-15.3-r2 USE='{-test}' PYTHON_TARGETS='python2_7 python3_4 (-pypy) (-pypy3) -python3_3 (-python3_5)' |
61 | [ebuild N ] dev-python/setuptools-18.4 USE='{-test}' PYTHON_TARGETS='python2_7 python3_4 (-pypy) (-pypy3) -python3_3 (-python3_5)' |
62 | [ebuild N ] dev-python/certifi-2015.11.20 PYTHON_TARGETS='python2_7 python3_4 (-pypy) (-pypy3) -python3_3 (-python3_5)' |
63 | [ebuild N ] dev-python/pyxattr-0.5.5 USE='-doc {-test}' PYTHON_TARGETS='python2_7 python3_4 (-pypy) -python3_3 (-python3_5)' |
64 | [ebuild U ] sys-apps/portage-2.2.28 [2.2.14] USE='xattr*' PYTHON_TARGETS='python3_4* -python3_3* (-python3_5)' |
65 | |
66 | !!! Multiple package instances within a single package slot have been pulled |
67 | !!! into the dependency graph, resulting in a slot conflict: |
68 | |
69 | sys-apps/portage:0 |
70 | |
71 | (sys-apps/portage-2.2.28:0/0::gentoo, ebuild scheduled for merge) pulled in by |
72 | sys-apps/portage (Argument) |
73 | |
74 | (sys-apps/portage-2.2.14:0/0::gentoo, installed) pulled in by |
75 | sys-apps/portage[python_targets_pypy(-)?,python_targets_python2_7(-)?,python_targets_python3_3(-)?,python_targets_python3_4(-)?,-python_single_target_pypy(-),-python_single_target_python2_7(-),-python_single_target_python3_3(-),-python_single_target_python3_4(-)] required by (app-portage/gentoolkit-0.3.0.9-r2:0/0::gentoo, installed) |
76 | |
77 | |
78 | So portage cannot be installed because portage is installed? |
79 | |
80 | When I use --nodeps, portage might not work at all anymore and I would be |
81 | totally screwed. And 'emerge -1a --newuse --update portage' gives the |
82 | same result. |