/etc/profile.d/qt5.sh: line 2: pathappend: command not found : As a result the session will not be configured correctly,you should fix this problem as soon as feasible.
-
Hello.
I recently attempted to install kde plasma on ubuntu 20.10 64 bit. Then I have tried to remove it,but it seems that it is still there and it works almost good,except for the error that I get as soon as Ubuntu and kde are loaded :
Error found when loading /etc/profile:
/etc/profile.d/qt5.sh: line 2: pathappend: command not found
/etc/profile.d/qt5.sh: line 3: pathappend: command not foundAs a result the session will not be configured correctly,you should fix this problem as soon as feasible.
this is my /etc/profile.d/qt5.sh
QT5DIR=/opt/Qt/5.15.1
pathappend $QT5DIR/bin PATH
pathappend $QT5DIR/lib/pkgconfig PKG_CONFIG_PATH
export QT5DIRCan anyone point me in the right direction of resolving this issue. I just need my desktop working properly.
Thanks in advance. -
-
pathappend
is not a Linux command, it's sometimes defined as abash
function via some.sh
files. For whatever reason, looks like you don't have such a definition. -
If you say you have uninstalled Qt/KDE, and don't want it, then (presumably) you don't want to be executing any
/etc/profile.d/qt5.sh
anyway? Then you won't get the error.
On my Ubuntu 20.04, Qt installation that comes with OS via
apt-get
, never installed any KDE anything, I do not have anyqt5.sh
file anywhere.So, unless you get a better answer from someone else here, I would just delete the file.... (You can keep a copy, but not inside
/etc/profile.d
, to be safe!) -
-
at the beginning I wanted to remove kde and I tried to do that,with apt-get purge kde or something like that. But it didn't work. when I rebooted kde was still there and I kept it,together with the error. Now I want to use kde,but without getting the error. If I remove the file qt5.sh,will i still be able to use kde ?
-
@mariozio said in /etc/profile.d/qt5.sh: line 2: pathappend: command not found : As a result the session will not be configured correctly,you should fix this problem as soon as feasible.:
If I remove the file qt5.sh,will i still be able to use kde ?
I have no idea. Which is why I said: move (or copy-delete) it elsewhere in the filing system, and see...?
If you did
apt-get purge
the KDE, even if "when I rebooted kde was still there" it may not be in a good state to use. -
@mariozio said in /etc/profile.d/qt5.sh: line 2: pathappend: command not found : As a result the session will not be configured correctly,you should fix this problem as soon as feasible.:
the error is gone. And kde still works
If your issue is solved, please mark this post as such! Thanks.