LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Booting issue "Error found when loading /etc/profile:" (https://www.linuxquestions.org/questions/linux-newbie-8/booting-issue-error-found-when-loading-etc-profile-4175653194/)

Lizardk 05-02-2019 11:31 AM

Booting issue "Error found when loading /etc/profile:"
 
Having an issue with this message when booting, checked the profile and found nothing in there also deleted the file and repasted it with this command "sudo cp /usr/share/base-files/profile /etc/profile"

Didnt help, tired checking .bashrc dont really know what to look for but there is nothing that mentiones b43 there.

This error came up after installing firmware for the WiFi card, which now works but shows me this error.

The computer works fine, its just very annoying to see everytime it boots.



Here is a link to a photo of the error message...
https://drive.google.com/file/d/0B8N...hLUpVQlA4/view

I just installed linux, everything works fine, great OS just alot of trubleshooting when something goes wrong :P
(which does not happen often)

JeremyBoden 05-02-2019 11:54 AM

I don't have access to Google Drive - actually is that one of their services that is soon to be withdrawn?
You can include attachments on this forum.

My distro doesn't have a file called bash.rc at all.
However, it does have a /etc/bash.bashrc file.

Depending on your distro, this might be relevant...

Much of your bash configuration ought to be in your home directory as various dot files [depending on your distro].

Lizardk 05-02-2019 12:03 PM

Apologies, heres the link should be able to see it now, can't find anywhere to upload the image here.

https://drive.google.com/file/d/0B8N...hLUpVQlA4/view

As for the file name its .bashrc (corrected above)


lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 19.04
Release: 19.04
Codename: disco

MadeInGermany 05-02-2019 12:19 PM

Perhaps it's one of the discrete files in /etc/profile.d/ that /etc/profile runs.
Try
Code:

# grep "find.*/usr/lib" /etc/profile.d/*
And silence it by adding a redirection to /dev/null:
Code:

find ... 2>/dev/null
and, if exists, for the .csh variant:
Code:

find ... >&/dev/null

Lizardk 05-02-2019 02:13 PM

Sorry for being a total noob here, but what exactly am I supposed to do here?

do i paste" grep "find.*/usr/lib" /etc/profile.d/* " in terminal or open the file and edit?

Here are the entire contents of profile.d


01-locale-fix.sh
apps-bin-path.sh
bash_completion.sh
cedilla-portuguese.sh
input-method-config.sh
vte-2.91.sh
xdg_dirs_desktop_session.sh

ondoho 05-02-2019 02:36 PM

please open a terminal and enter the following:
Code:

. /etc/profile
the dot in the beginning is intentional.
do you get the same error message?

Lizardk 05-02-2019 02:44 PM

No no error message...

ondoho 05-02-2019 02:47 PM

hmm.
Code:

journalctl -b | grep -F '/etc/profile'
please.

Lizardk 05-02-2019 02:49 PM

Quote:

Originally Posted by ondoho (Post 5990822)
hmm.
Code:

journalctl -b | grep -F '/etc/profile'
please.

Not much happening, just get a new line in the console...
(May i say, thanks for your patience with me my friend...)

Lizardk 05-03-2019 07:33 AM

Switching to KDE Plasma solved this apparently. Not seeing the issue anymore at least, don't know if its just the desktop environment that's not showing it or if it's actually "fixed".

This was an "accidental" fix, as I was just installing KDE for preference.


For future reference if anyone is looking for a fix, I don't actually know whether or not its fixed, it just does not pop up anymore.


Installed KDE Plasma and removed GNOME following what people recommended here:

https://askubuntu.com/questions/7675...y-de-ubuntu-16

KDE bugged up my bluetooth headset sound somehow tho, was unable to find a solution other than running this in console when it bugs up.

Code:

sudo modprobe -r btusb; sudo modprobe btusb


All times are GMT -5. The time now is 07:56 AM.