The log in window says I should change the current theme. I opened a terminal window on a usb live and I should set the Themes to breeze and there is an error I am unable to solve. It says:
plasma-apply-lookandfeel: symbol lookup error: /usb/lib/libKF6IconThemes.so.6: undefined symbol: _ZN19KColorSchemeManager8instanceEv
This is the problem… how can I solve it?
If I can’t solve it I should be thinking of reinstalling. That seems to
be the only way…it’ s silly it happened because I upgraded manjaro
You can make a list with pacman -Q | grep '-git' > list.txt. Then clean that list up with packages not part of KDE frameworks. Then you can do a sudo pacman -Rdd $(cat list.txt) to remove those packages. Then edit the list and remove -git from the names and do a sudo pacman -S $(cat list-without-git-suffix.txt).
Firstly, you keep missing the pacman command name which is why you get an error about -Q. Secondly, because the pattern given to grep starts with a - it confuses things, but you can use -- to tell grep to stop expecting options, so the command to run is (probably) more like
The list is inside the text file called list.txt - that is what the redirection by > means.
I think that you only want the results of the first command (and the second one will have overwritten the file, so you need to run the first command again). I think the suggestion is then to run
sudo pacman -Rdd $(cat list.txt)
which (according to the pacman man page) will remove the things listed in list.txt without considering dependencies. A cautious person would at the very least look at the list.txt file first to see if it seems reasonable - that is, it looks like a list of installed things which have -git in their name.
The suggestion then is to install the correct versions of these things by editing the list and remove -git from the names (that is, using a text editor to edit the list.txt file you created and saving as a new name, such as list-without-git-suffix.txt) and do a sudo pacman -S $(cat list-without-git-suffix.txt) .
This is just me breaking down the previous post a bit I’m not adding any new information.
Ok I am able to open and read it but don’t know how to modify it. I have to replace all -git files with files witout git… and cannot do it. I tried it with nano but it did not work
sudo pacman -Rdd $(cat list.txt)
sudo: unable to find terminal name for device 136, 2
error: target not found: 6.5.0_r797.g827cab1-1
error: target not found: 6.5.0_r686.g98de44c-1
error: target not found: 6.5.0_r620.g3f6f974-1
error: target not found: 6.5.0_r227.g87a88f9-1
error: target not found: 6.5.0_r1408.g4f20d5ca-1
error: target not found: 6.5.0_r2080.g3d347776-1
error: target not found: 6.5.0_r1322.g275d08c5-1
error: target not found: 6.5.0_r781.g5f3432e-1
error: target not found: 6.5.0_r609.g4c0d220-1
error: target not found: 6.5.0_r758.g6747db6-1
error: target not found: 6.5.0_r4620.gb97fa382-1
error: target not found: 6.5.0_r562.gd6d0f6c-1
error: target not found: 6.5.0_r999.ga730d38-1
error: target not found: r5198.5ed58342-1
error: target not found: 6.5.0_r1397.g5d8e84bd-1
error: target not found: 6.5.0_r1062.g1a1e7f5-1
error: target not found: 0.200.0.r1.ge01dc18-1
error: target not found: 6.5.0_r1062.gad562b24-1
error: target not found: 1.90.6.r0.g94c91f9-1
Then edit the list and remove -git from the names and do a sudo pacman -S $(cat list-without-git-suffix.txt) .
I’m not sure I understand how editing a text file with nano failed. And it doesn’t have to be nano - any text editor will do.
Have you checked the file looks sensible? Do all of the lines end with -git? At least, I think that is the expectation. I don’t think we want lines with -git in the middle of the name
Anyway, you can do the edit on the command line with sed, something like this:
sed -e 's/-git$//' list.txt >list-without-git-suffix.txt
And a cautious person would check the new file looks sensible (using cat or less as suggested by @Nachlese) before running the pacman command.
ok… I did it and got this
Maybe you want to share what was actually in your list.txt.
I erased everything using nano and it just doesn’t work… What’s actually wrong? I also used the erasing command line suggested and it didn’t work either
We don’t want the version numbers so the command to create the list should probably be
pacman -Qq | grep -- '-git' > list.txt
EDIT:
It would be very helpful if instead of
I also used the erasing command line suggested and it didn’t work either
you actually showed the commands you were running and the output.
EDIT 2:
The sed command I gave assumed the -git was at the very end of the line, but of course you had version numbers after the -git. It should work if you recreate the list without version numbers using the command above with the -Qq.