Running a freshly installed Raspberry Pi OS Desktop on a Raspberry Pi 4, I'm trying to install software using the graphical Add/Remove Software tool. For example, Visual Studio Code. After checking the tick near the code entry, I clicked OK. A popup appears that additional confirmations are needed because other software has to be changed:
I confirmed with Weiter (which means continue) but nothing happens. The list appears again and it seems that nothing is working on installing the software, there is no CPU/Network/IO usage.
This doesn't change after waiting for a few minutes. The code command is also still not avaliable.
Using sudo apt install code on the commandline works, about a minute later VS Code is avaliable using the code binary as well as in the application menu of the pixel desktop:
The same happens on other packages like vim: The GUI doesn't do anything, installing using the terminal works perfectly. I tried to run the Add/Remove software gui using the pi-packages command from the terminal, in hope to get some information, but I only get the following lines immediately after startup (without doing anything in the UI):
$ pi-packages (pi-packages:5577): Gtk-CRITICAL **: 16:11:10.005: gtk_widget_get_style_context: assertion 'GTK_IS_WIDGET (widget)' failed (pi-packages:5577): Gtk-CRITICAL **: 16:11:10.005: gtk_style_context_add_class: assertion 'GTK_IS_STYLE_CONTEXT (context)' failed I found this thread and changed the locales back to en_GB.UTF-8 (since they were German). After the reboot, the behaviour is still the same.
Why is the GUI not working? What's the problem?
EDIT
I found the -v switch and after clicking continue, it gave me the following entry
GnomePackageKit failed to install packages: Failed to obtain authentication. This seems strange, I never got an authentication popup - also not behind the window. I tried to allow sudo without password in visudo with the line
pi ALL=(ALL) NOPASSWD:ALL Still doesn't work.




sudo apt updatein a terminal window and respond to any questions, If that succeeds you can try installing programs in the GUI again.apt upgrade, which also says that everything is up2date.xrdpwas installed on the client and I used it to access the GUI from my workstation PC. After connecting the PI to a physical screen, mouse and keyboard, it shows an authentication dialog and now it works š