Skip to content
Unix Server Solutions
  • Server
  • Apple
  • Database
  • Ubuntu
  • Linux

Ubuntu – Kubuntu shows error at login (file:///usr/share/sddm//themes/breeze/Main.qml:No such file or directory)

kdekubuntuloginthemes

I moved over to the latest Kubuntu release and after successfully installing everything I removed some unwanted packages. However after a reboot I was stuck at the login screen showing an on screen keyboard and this error message:

The current theme cannot be loaded due to the errors below, please select another theme.

file:///usr/share/sddm//themes/breeze/Main.qml:No such file or directory

Long story short, the reason is the dependency management of some packages. I found that if you uninstall the calendar and the binary watch, virtually half of Kunbuntu is uninstalled, causing the system to fail.

Now I am struggling to find a way of reporting this. I am not sure if this is caused by KDE or if it is also a problem of the Ubuntu beneath it.

Any ideas how to tell the developers?

Best Answer

Had the exact same issue after uninstalling some basic programs through the UI.

Fixed it with

apt-get install sddm-theme-breeze
apt-get install --reinstall plasma-desktop 

The first install made it possible to log on again and the second one fixed the rest.

You may use a virtual terminal to login (by pressing ctrl+alt+F1; if that doesn't work, try the other virtual terminals from ctrl+alt+F2 up to ctrl+alt+F6).

Related Solutions

Ubuntu – Installing a theme in the /usr/share/themes/ directory

Ok, let's do a checklist to make it work:

1) You probably downloaded the .zip from github, right?

2) Uncompress the master.zip, you will get a folder named "iris-light-master"

3) Copy that folder in /usr/share/themes/

3a) But be careful! you will need root access to do that: run (pressing alt+f2) gksu nautilus (enter your password) and finally browse to /usr/share/themes/ and paste the folder.

Or you can use an script that I made: In one move, you should be able to download, install and apply the theme by pasting this code in your terminal:

Iris Light theme:

mkdir -p ~/.iris-install && cd ~/.iris-install && wget https://github.com/xyl0n/iris-light/archive/master.zip && unzip master.zip && sudo cp -a iris-light-master /usr/share/themes && gsettings set org.gnome.desktop.interface gtk-theme 'iris-light-master' && cd ~ && rm -R ~/.iris-install

Iris Dark theme:

mkdir -p ~/.iris-install && cd ~/.iris-install && wget https://github.com/xyl0n/iris/archive/master.zip && unzip master.zip && sudo cp -a iris-master /usr/share/themes && gsettings set org.gnome.desktop.interface gtk-theme 'iris-master' && cd ~ && rm -R ~/.iris-install

Yes yes, just copy and paste in your terminal. It will be automatically applied. :)

Ubuntu – Kubuntu 16.04 SDDM login screen hangs

Recently I encountered this problem with kubuntu 16.04 SDDM login screen hangs. The issue occurred after I installed kubuntu 16.04 on an Intel i7-7700k with Intel 630 HD graphics and then updated to the latest packages.

I was able to login using the workaround of using Ctrl+Alt+F1 to get to a text console and then Ctrl+Alt+F7 to get back to X and the logged in session.

I stumbled upon a fix to the login hang while I was working to get rid of a screen tearing problem. The fix involves changing the compositor rendering backend from XRender to OpenGL.

More specifically to address the hang on login and problem with screen tearing I did the following:

FIX SCREEN TEARING AND LOGIN HANGING

A) Start K -> Settings -> System Settings

     Under Hardware section
     Double-click Display and Monitor
       Choose Compositor on LHS
         Enable compositor on startup:  Checked               # was checked
         Rendering backend:             OpenGL 3.1            # was XRender
         OpenGL interface:              GLX
         Tearing prevention ("vsync"):  Full screen repaints  # was Automatic
          Ignore message "Full screen repaints" can cause performance problems.
       Click Apply

REFERENCES:

Bug 321589 - Automatic VSync strategy causes tearing
https://bugs.kde.org/show_bug.cgi?id=321589

Screen Tearing on Kubuntu 16.04 with Intel Drivers?
https://askubuntu.com/questions/764302/screen-tearing-on-kubuntu-16-04-with-intel-drivers

B) Set KWIN variables.

Edit /etc/environment and add the top and bottom line:

__GL_YIELD="USLEEP"
#KWIN_TRIPLE_BUFFER=0
KWIN_USE_BUFFER_AGE=0

REFERENCES:

https://community.kde.org/KWin/Environment_Variables
https://askubuntu.com/questions/764302/screen-tearing-on-kubuntu-16-04-with-intel-drivers/774788

Listed as also working with NVidia.

I hope the above steps help others get rid of the login hang and screen tearing problems.

Related Question
  • Ubuntu – Installing a theme in the /usr/share/themes/ directory
  • Ubuntu – Kubuntu 16.04 SDDM login screen hangs
  • Ubuntu – What methods are there to restore a deleted theme? file:///usr/share/sddm//themes/breeze/Main.qml:No such file or directory
  • Ubuntu – Only a big keyboard shows instead of a login screen (except for breeze theme)