top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

Error found when loading /etc/profile

0 votes

After todays update of my version of ubuntu-gnome 15.04 by apt-get update, apt-get dist-upgrade, I received this message on reboot:

"Error found when loading /etc/profile:
/etc/profile.d/ linha 21: [: nmero excessivo de argumentos

As a result the session will not be configured correctly
You should fix the problem as soon as feasible."

Can anyone help me fix this issue?

posted Apr 1, 2015 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Looks like the package containing /etc/profile.d/ was updated and has a bug in it, so it has an invalid shell syntax in a test invocation.

You can use the terminal command:

 dpkg -S /etc/profile.d/

to find out which package owns that file, then you should go to Launchpad and file a bug against that package with the appropriate information. I don't have that file on my system so I can't help more than that.

Fixing it won't be so simple, unless you can uninstall that package while you wait for it to be fixed. If you need the package, though, you'll have to either live with the message or else try to fix the syntax error yourself.

answer Apr 1, 2015 by Kiran
Similar Questions
+1 vote

I am working on a Ubuntu 10.04 server, on which I installed PHP 5.3, Apache 2 2.2.9. I followed the below steps to do the installation :

  1. I installed apache2 using SUDO APT-GET INSTALL APACHE2

  2. I also installed libapache2 and php using the below commands
    sudo apt-get install php5 libapache2-mod-php5
    sudo apt-get install php5-core

  3. I did redirection to port by configuring the DEFAULT file in /ETC/APACHE2/SITES-AVAILABLE. Redirection happened successfully.

  4. PHP5-curl was installed using

  5. Rewrite mod was enabled in apache2 using
    SUDO A2ENMOD REWRITE and apache2 was restarted.

Now, after following this if I try to access the URL, I get the following message -


But, the same URL is accessed from another system with the same configuration , it works fine.

+2 votes

I'm having trouble with my /etc/network/interfaces file that is overwritten by every Preseed install.

I have found out that when I let the late_command crash and I manually enter some identifier in:




the one in /etc/network/interfaces stays there, so no overwriting from the target version in that case. The fix to place the following in the late_command doesn't fix it either:

cp /target/etc/network/interfaces /etc/network/interfaces

Any idea on how to fix this?

0 votes

I run my code in Eclipse IDE and its fine. I have export it as jar file from Eclipse and run on terminal as jar file, it generates Error: java.lang.NullPointerException. Could not understand why is it so.

+2 votes

user:~$ kdenlive
qrc:/qml/kdenliveclipmonitor.qml:2:1: module "QtQuick.Controls.Styles" is not installed
qrc:/qml/kdenliveclipmonitor.qml:1:1: module "QtQuick.Controls" is not installed
qrc:/qml/kdenliveclipmonitor.qml:2:1: module "QtQuick.Controls.Styles" is not installed
qrc:/qml/kdenliveclipmonitor.qml:1:1: module "QtQuick.Controls" is not installed
Segmentation fault (core dumped)

+1 vote

I am using UBUNTUN 12.04 and after rebooted my machine am able to observe below mentioned error.

"The disk drive for /usr/ is not ready yet or not present"

I want to take backup of my data... Please let me know how to proceed..

Contact Us
+91 9880187415
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Karnataka INDIA.