Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946
/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.
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 found
As 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
pathappend $QT5DIR/bin PATH
pathappend $QT5DIR/lib/pkgconfig PKG_CONFIG_PATH
Can anyone point me in the right direction of resolving this issue. I just need my desktop working properly.
Thanks in advance.
JonB last edited by
pathappendis not a Linux command, it's sometimes defined as a
bashfunction via some
.shfiles. 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.shanyway? 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 any
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 ?
JonB last edited by JonB
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 purgethe KDE, even if "when I rebooted kde was still there" it may not be in a good state to use.
thanks. I have removed the append lines and the error is gone. And kde still works. thanks.
Pablo J. Rogina last edited by
the error is gone. And kde still works
If your issue is solved, please mark this post as such! Thanks.