Fails to launch modules: "Can't locate Net/DBus.pm in @INC"

Bug #574078 reported by Evandro Arêdes de Faria
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Gentoo Linux
Invalid
Medium
system-tools-backends (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Binary package hint: nautilus

When you select: System - Administration - Users and groups - occurs the following error message "Unable to load the configuration. An unexpected error occurred."

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: nautilus 1:2.30.1-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic i686
NonfreeKernelModules: wl nvidia
Architecture: i386
Date: Sun May 2 20:56:46 2010
ExecutablePath: /usr/bin/nautilus
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
ProcEnviron:
 LANGUAGE=pt_BR:pt:en
 LANG=pt_BR.utf8
 SHELL=/bin/bash
SourcePackage: nautilus

Revision history for this message
Evandro Arêdes de Faria (evandro-faria) wrote :
Revision history for this message
Daniel Letzeisen (dtl131) wrote :

'Users and Groups' is a shortcut to /usr/bin/users-admin, which belongs to gnome-system-tools package.

affects: nautilus (Ubuntu) → gnome-system-tools (Ubuntu)
Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

Thanks for your report. From the logs, I see:
> There was an unknown error communicating with the backends: Launcher could not run (out of memory)
This would mean there's not enough free RAM and swap to run the backends. This case is pretty unlikely. How much memory do you have? What does 'free -m' reports? Does runnning the users tool fail all the time, or only sometimes?

What does running the following command say ?
sudo /usr/share/system-tools-backends-2.0/scripts/SystemToolsBackends.pl -m UsersConfig -v

Changed in gnome-system-tools (Ubuntu):
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Evandro Arêdes de Faria (evandro-faria) wrote :

Hello, good evening.
My laptop has 1 GB of RAM.
This problem occurs after I installed the Ubuntu version 10.04.
It has never been able to access the "Users and Groups", this error occurs every time.
The command that asked me has generated the following response:
--------------------------------------------------------------------

evandro@evandro-laptop:/usr/share/system-tools-backends-2.0/scripts$ sudo ./SystemToolsBackends.pl -v -m UsersConfig
begin::Start of work report.
file_locate_tool_success::Found tool [uname].
file_run_pipe_success::Piping command [LC_ALL=C /bin/uname -s 2> /dev/null |] for reading.
Can't locate Net/DBus.pm in @INC (@INC contains: /usr/lib/perl5 /usr/share/system-tools-backends-2.0/scripts /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /usr/share/system-tools-backends-2.0/scripts/Utils/DBus.pm line 25.
BEGIN failed--compilation aborted at /usr/share/system-tools-backends-2.0/scripts/Utils/DBus.pm line 25.
Compilation failed in require at /usr/share/system-tools-backends-2.0/scripts/StbObject.pm line 23.
BEGIN failed--compilation aborted at /usr/share/system-tools-backends-2.0/scripts/StbObject.pm line 23.
Compilation failed in require at (eval 12) line 3.
 ...propagated at /usr/share/perl/5.10/base.pm line 93.
BEGIN failed--compilation aborted at /usr/share/system-tools-backends-2.0/scripts/UsersConfig.pm line 26.
Compilation failed in require at ./SystemToolsBackends.pl line 51.

----------------------------------------------------------------------
Thank you very much.
I am available to the needed.

Evandro Arêdes de Faria

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

So if you have enough RAM, that error message is wrong.

The errors you posted above seem to indicate that the package 'libnet-dbus-perl' is missing, while it should have been installed as a dependency of system-tools-backends. Please run
sudo apt-get install --reinstall libnet-dbus-perl
and see if that fixes the problem.

Revision history for this message
Evandro Arêdes de Faria (evandro-faria) wrote :

Good night.
Even reinstalling the package the error persists.
Attached evidence. (Evidence2.png)

Revision history for this message
Evandro Arêdes de Faria (evandro-faria) wrote :

Sorry, new installation package is on file "evidence3.

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

And if you run:
sudo apt-get install --reinstall perl perl-base perl-modules system-tools-backends

What does this command say:
ls /usr/lib/perl5/Net/DBus.pm

Is that a system upgraded from a previous Ubuntu version, or a clear install?

Revision history for this message
Evandro Arêdes de Faria (evandro-faria) wrote :

The command says that the packages are already installed with the latest version.
-----------------
evandro@evandro-laptop:~$ sudo apt-get install perl perl-base perl-modules system-tools-backends
Lendo listas de pacotes... Pronto
Construindo árvore de dependências
Lendo informação de estado... Pronto
perl já é a versão mais nova.
perl-base já é a versão mais nova.
perl-modules já é a versão mais nova.
system-tools-backends já é a versão mais nova.
0 pacotes atualizados, 0 pacotes novos instalados, 0 a serem removidos e 14 não atualizados.
--------------------------------------------------
The other command also.
----------------
evandro@evandro-laptop:~$ cd /usr
evandro@evandro-laptop:/usr$ cd lib
evandro@evandro-laptop:/usr/lib$ cd perl5
evandro@evandro-laptop:/usr/lib/perl5$ ls
auto Net
evandro@evandro-laptop:/usr/lib/perl5$ cd Net
evandro@evandro-laptop:/usr/lib/perl5/Net$ ls
DBus DBus.pm
---------------------------
It's a new installation of Ubuntu and not an upgrade from previous version.

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

You forgot the '--reinstall' option, that's why nothing happened.

Revision history for this message
Evandro Arêdes de Faria (evandro-faria) wrote :

I did the reinstallation of the package via Synaptic.
No need to do to reinstall from the command line?

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

It should be OK, but:
1) it's not easy for me to see if something went wrong in that process
2) it's actually harder for you, because you could just have copied/pasted the command to a console, without the risk of getting it wrong

So the result is?

Revision history for this message
Evandro Arêdes de Faria (evandro-faria) wrote :

Hi,
Even with the command, the error persists.

See below.
---------------

evandro@evandro-laptop:~$ sudo apt-get install --reinstall perl perl-base perl-modules system-tools-backends
[sudo] password for evandro:
Lendo listas de pacotes... Pronto
Construindo árvore de dependências
Lendo informação de estado... Pronto
0 pacotes atualizados, 0 pacotes novos instalados, 4 reinstalados, 0 a serem removidos e 14 não atualizados.
É preciso baixar 8305kB de arquivos.
Depois desta operação, 0B adicionais de espaço em disco serão usados.
Você quer continuar [S/n]? s
Obter:1 http://br.archive.ubuntu.com/ubuntu/ lucid/main perl-base 5.10.1-8ubuntu2 [1000kB]
Obter:2 http://br.archive.ubuntu.com/ubuntu/ lucid/main perl 5.10.1-8ubuntu2 [3709kB]
Obter:3 http://br.archive.ubuntu.com/ubuntu/ lucid/main perl-modules 5.10.1-8ubuntu2 [3479kB]
Obter:4 http://br.archive.ubuntu.com/ubuntu/ lucid/main system-tools-backends 2.9.4-0ubuntu1 [117kB]
Baixados 8305kB em 6s (1257kB/s)
(Lendo banco de dados ... 154456 arquivos e diretórios atualmente instalados).
Preparando para substituir perl-base 5.10.1-8ubuntu2 (usando .../perl-base_5.10.1-8ubuntu2_i386.deb) ...
Desempacotando substituto perl-base ...
Processando gatilhos para man-db ...
Configurando perl-base (5.10.1-8ubuntu2) ...
(Lendo banco de dados ... 154456 arquivos e diretórios atualmente instalados).
Preparando para substituir perl 5.10.1-8ubuntu2 (usando .../perl_5.10.1-8ubuntu2_i386.deb) ...
Desempacotando substituto perl ...
Preparando para substituir perl-modules 5.10.1-8ubuntu2 (usando .../perl-modules_5.10.1-8ubuntu2_all.deb) ...
Desempacotando substituto perl-modules ...
Preparando para substituir system-tools-backends 2.9.4-0ubuntu1 (usando .../system-tools-backends_2.9.4-0ubuntu1_i386.deb) ...
Desempacotando substituto system-tools-backends ...
Processando gatilhos para man-db ...
Configurando system-tools-backends (2.9.4-0ubuntu1) ...
Configurando perl-modules (5.10.1-8ubuntu2) ...
Configurando perl (5.10.1-8ubuntu2) ...

evandro@evandro-laptop:~$

Att.

Evandro

Revision history for this message
Evandro Arêdes de Faria (evandro-faria) wrote :

Evidence attached.

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

Weird issue... I've found a duplicate in Gentoo, so that's not an Ubuntu bug. Running out of ideas...

Changed in gnome-system-tools (Ubuntu):
status: Incomplete → Triaged
summary: - The function of Users and Groups can not be accessed.
+ Fails to launch modules: "Can't locate Net/DBus.pm in @INC"
affects: gnome-system-tools (Ubuntu) → system-tools-backends (Ubuntu)
Changed in system-tools-backends (Ubuntu):
assignee: nobody → Evandro Arêdes de Faria (evandro-faria)
assignee: Evandro Arêdes de Faria (evandro-faria) → nobody
Changed in gentoo:
status: Unknown → Confirmed
Changed in gentoo:
importance: Unknown → Medium
Changed in gentoo:
status: Confirmed → Invalid
Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

According to people having the same bug in Gentoo, running
sudo chmod o+x /usr/libexec/dbus-daemon-launch-helper
solves this bug. Could you report if it's also a solution for you? Thanks!

Changed in system-tools-backends (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Evandro Arêdes de Faria (evandro-faria) wrote :

Sorry, but I can not. My Maquinho broke and I changed it.
Anyway thanks.

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

OK, I'm closing because there's not much we can do without somebody experiencing the bug. The Gentoo "fix" doesn't sound very logical to me, but...

Changed in system-tools-backends (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
KIAaze (zohn-joidberg) wrote :

Hi,

I experienced this bug too and the "sudo chmod o+x /lib/dbus-1.0/dbus-daemon-launch-helper" fixed it for me.
More info here:
http://ubuntuforums.org/showthread.php?t=1719380

Is it dangerous to chmod o+x /lib/dbus-1.0/dbus-daemon-launch-helper?

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

Could you report a new bug against the dbus package? In the forum thread, you say you experienced problems with many different programs, which is a good way to debug this. Apparently, it's not a bug in the system-tools-backends. Does this workaround also fix the issue with Pulseaudio (Bluetooth daemon not found over D-Bus)?

Sounds like a permissions/users problem to me. Could you also include the output of
grep messagebus /etc/passwd
grep messagebus /etc/group

Please mark this bug as a duplicate of the new one once you've filed it, I'd like to follow what happens there. Thanks!

Revision history for this message
KIAaze (zohn-joidberg) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.