Ubuntu Studio:sddm 欢迎程序缺少文件 - 如何修复以及如何切换 sddm-greeter 设计

Ubuntu Studio:sddm 欢迎程序缺少文件 - 如何修复以及如何切换 sddm-greeter 设计

我刚刚从 Ubuntu Studio 20.04 升级到 22.04。

当 Ubuntu 启动时,欢迎界面看起来非常不正常。没有显示用户名,背景是灰色的,也没有显示任何文本。幸运的是,我仍然可以登录。
检查系统日志时,以下内容引起了我的注意:

“QML 图像:无法打开:file:///usr/share/backgrounds/ubuntustudio/ubuntustudio-default.png”

运行 sddm-greeter --test-mode --theme /usr/share/sddm/themes/breeze/ 时会出现一些错误,但至少看起来它在视觉上是正常的。

我的问题是:

  1. 我如何才能将 sddm-greeter 背景/设计更改为 breeze 和
  2. 我该如何修复错误“QML 图像:无法打开:file:///usr/share/backgrounds/ubuntustudio/ubuntustudio-default.png”
lsb_release -a
LSB Version:    core-11.1.0ubuntu4-noarch:security-11.1.0ubuntu4-noarch
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:    22.04
Codename:   jammy
uname -a
Linux alex-studio-2004 5.15.0-46-lowlatency #49-Ubuntu SMP PREEMPT Thu Aug 4 18:56:09 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
ls /usr/share/sddm/themes/
breeze  ubuntustudio  ubuntu-theme
sddm-greeter --test-mode --theme /usr/share/sddm/themes/ubuntu-theme/
[10:01:02.366] (II) GREETER: High-DPI autoscaling not Enabled
[10:01:02.438] (II) GREETER: Reading from "/usr/share/xsessions/cinnamon.desktop"
[10:01:02.438] (II) GREETER: Reading from "/usr/share/xsessions/cinnamon2d.desktop"
[10:01:02.438] (II) GREETER: Reading from "/usr/share/xsessions/kodi.desktop"
[10:01:02.438] (II) GREETER: Reading from "/usr/share/xsessions/plasma.desktop"
[10:01:02.439] (II) GREETER: Reading from "/usr/share/xsessions/xfce.desktop"
[10:01:02.440] (II) GREETER: Loading theme configuration from "/usr/share/sddm/themes/ubuntu-theme//theme.conf"
[10:01:02.445] (EE) GREETER: Socket error:  "QLocalSocket::connectToServer: Invalid name"
[10:01:02.445] (WW) GREETER: QFont::fromString: Invalid description '(empty)'
[10:01:02.511] (II) GREETER: Loading file:///usr/share/sddm/themes/ubuntu-theme//Main.qml...
[10:01:02.549] (WW) GREETER: QObject: Cannot create children for a parent that is in a different thread.
(Parent is QGuiApplication(0x7fff364c96a0), parent's thread is QThread(0x5621b27410f0), current thread is QThread(0x5621b297f320)
[10:01:02.549] (WW) GREETER: QObject: Cannot create children for a parent that is in a different thread.
(Parent is QGuiApplication(0x7fff364c96a0), parent's thread is QThread(0x5621b27410f0), current thread is QThread(0x5621b297f320)
[10:01:02.549] (WW) GREETER: QObject: Cannot create children for a parent that is in a different thread.
(Parent is QGuiApplication(0x7fff364c96a0), parent's thread is QThread(0x5621b27410f0), current thread is QThread(0x5621b297f320)
[10:01:02.549] (WW) GREETER: QObject::installEventFilter(): Cannot filter events for objects in a different thread.
[10:01:02.787] (WW) GREETER: file:///usr/share/sddm/themes/ubuntu-theme//components/VirtualKeyboard.qml:11:1: Type InputPanel unavailable
[10:01:02.787] (WW) GREETER: qrc:/QtQuick/VirtualKeyboard/content/InputPanel.qml:127:5: Type Keyboard unavailable
[10:01:02.787] (WW) GREETER: qrc:/QtQuick/VirtualKeyboard/content/components/Keyboard.qml:38:1: module "QtQuick.VirtualKeyboard.Plugins" is not installed
[10:01:02.915] (WW) GREETER: file:///usr/share/sddm/themes/ubuntu-theme//Background.qml:21:5: QML Image: Cannot open: file:///usr/share/backgrounds/ubuntustudio/ubuntustudio-default.png
[10:01:02.916] (II) GREETER: Adding view for "eDP-1-1" QRect(0,0 1920x1080)
[10:01:02.922] (WW) GREETER: file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Styles/Plasma/ToolButtonStyle.qml:31:12: QML QQuickItem: Binding loop detected for property "implicitWidth"
[10:01:02.923] (WW) GREETER: file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Styles/Plasma/ToolButtonStyle.qml:31:12: QML QQuickItem: Binding loop detected for property "implicitWidth"
sddm-greeter --test-mode --theme /usr/share/sddm/themes/breeze/
[10:01:46.599] (II) GREETER: High-DPI autoscaling not Enabled
[10:01:46.674] (II) GREETER: Reading from "/usr/share/xsessions/cinnamon.desktop"
[10:01:46.674] (II) GREETER: Reading from "/usr/share/xsessions/cinnamon2d.desktop"
[10:01:46.675] (II) GREETER: Reading from "/usr/share/xsessions/kodi.desktop"
[10:01:46.675] (II) GREETER: Reading from "/usr/share/xsessions/plasma.desktop"
[10:01:46.675] (II) GREETER: Reading from "/usr/share/xsessions/xfce.desktop"
[10:01:46.676] (II) GREETER: Loading theme configuration from "/usr/share/sddm/themes/breeze//theme.conf"
[10:01:46.680] (EE) GREETER: Socket error:  "QLocalSocket::connectToServer: Invalid name"
[10:01:46.680] (WW) GREETER: QFont::fromString: Invalid description '(empty)'
[10:01:46.744] (II) GREETER: Loading file:///usr/share/sddm/themes/breeze//Main.qml...
[10:01:46.781] (WW) GREETER: QObject: Cannot create children for a parent that is in a different thread.
(Parent is QGuiApplication(0x7fff87b37970), parent's thread is QThread(0x556ebe34d0f0), current thread is QThread(0x556ebe53d1a0)
[10:01:46.781] (WW) GREETER: QObject: Cannot create children for a parent that is in a different thread.
(Parent is QGuiApplication(0x7fff87b37970), parent's thread is QThread(0x556ebe34d0f0), current thread is QThread(0x556ebe53d1a0)
[10:01:46.782] (WW) GREETER: QObject: Cannot create children for a parent that is in a different thread.
(Parent is QGuiApplication(0x7fff87b37970), parent's thread is QThread(0x556ebe34d0f0), current thread is QThread(0x556ebe53d1a0)
[10:01:46.782] (WW) GREETER: QObject::installEventFilter(): Cannot filter events for objects in a different thread.
[10:01:47.009] (WW) GREETER: file:///usr/share/sddm/themes/breeze//components/VirtualKeyboard.qml:11:1: Type InputPanel unavailable
[10:01:47.009] (WW) GREETER: qrc:/QtQuick/VirtualKeyboard/content/InputPanel.qml:127:5: Type Keyboard unavailable
[10:01:47.009] (WW) GREETER: qrc:/QtQuick/VirtualKeyboard/content/components/Keyboard.qml:38:1: module "QtQuick.VirtualKeyboard.Plugins" is not installed
[10:01:47.145] (II) GREETER: Adding view for "eDP-1-1" QRect(0,0 1920x1080)
[10:01:47.153] (WW) GREETER: file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Styles/Plasma/ToolButtonStyle.qml:31:12: QML QQuickItem: Binding loop detected for property "implicitWidth"
[10:01:47.154] (WW) GREETER: file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Styles/Plasma/ToolButtonStyle.qml:31:12: QML QQuickItem: Binding loop detected for property "implicitWidth"
cat /var/log/syslog | grep sddm-greeter
Aug 24 21:42:58 alex-studio-2004 sddm-greeter[1885]: High-DPI autoscaling not Enabled
Aug 24 21:42:58 alex-studio-2004 sddm-greeter[1885]: Reading from "/usr/share/xsessions/cinnamon.desktop"
Aug 24 21:42:58 alex-studio-2004 sddm-greeter[1885]: Reading from "/usr/share/xsessions/cinnamon2d.desktop"
Aug 24 21:42:58 alex-studio-2004 sddm-greeter[1885]: Reading from "/usr/share/xsessions/kodi.desktop"
Aug 24 21:42:58 alex-studio-2004 sddm-greeter[1885]: Reading from "/usr/share/xsessions/plasma.desktop"
Aug 24 21:42:58 alex-studio-2004 sddm-greeter[1885]: Reading from "/usr/share/xsessions/xfce.desktop"
Aug 24 21:42:58 alex-studio-2004 sddm-greeter[1885]: Loading theme configuration from "/usr/share/sddm/themes/ubuntu-theme/theme.conf"
Aug 24 21:42:58 alex-studio-2004 sddm-greeter[1885]: Connected to the daemon.
Aug 24 21:42:58 alex-studio-2004 sddm-greeter[1885]: QFont::fromString: Invalid description '(empty)'
Aug 24 21:42:58 alex-studio-2004 sddm-greeter[1885]: Loading file:///usr/share/sddm/themes/ubuntu-theme/Main.qml...
Aug 24 21:42:59 alex-studio-2004 sddm-greeter[1885]: QObject: Cannot create children for a parent that is in a different thread.#012(Parent is QGuiApplication(0x7ffe913d1a10), parent's thread is QThread(0x557ccf3cc0f0), current thread is QThread(0x557ccf4b7070)
Aug 24 21:42:59 alex-studio-2004 sddm-greeter[1885]: QObject: Cannot create children for a parent that is in a different thread.#012(Parent is QGuiApplication(0x7ffe913d1a10), parent's thread is QThread(0x557ccf3cc0f0), current thread is QThread(0x557ccf4b7070)
Aug 24 21:42:59 alex-studio-2004 sddm-greeter[1885]: QObject: Cannot create children for a parent that is in a different thread.#012(Parent is QGuiApplication(0x7ffe913d1a10), parent's thread is QThread(0x557ccf3cc0f0), current thread is QThread(0x557ccf4b7070)
Aug 24 21:42:59 alex-studio-2004 sddm-greeter[1885]: QObject::installEventFilter(): Cannot filter events for objects in a different thread.
Aug 24 21:42:59 alex-studio-2004 dbus-daemon[999]: [system] Activating via systemd: service name='org.freedesktop.UPower' unit='upower.service' requested by ':1.46' (uid=137 pid=1885 comm="/usr/bin/sddm-greeter --socket /tmp/sddm-:0-rvPDBQ" label="unconfined")
Aug 24 21:43:00 alex-studio-2004 sddm-greeter[1885]: file:///usr/share/sddm/themes/ubuntu-theme/Background.qml:21:5: QML Image: Cannot open: file:///usr/share/backgrounds/ubuntustudio/ubuntustudio-default.png
Aug 24 21:43:00 alex-studio-2004 sddm-greeter[1885]: Adding view for "eDP-1-1" QRect(0,0 1920x1080)
Aug 24 21:43:00 alex-studio-2004 sddm-greeter[1885]: Message received from daemon: Capabilities
Aug 24 21:43:00 alex-studio-2004 sddm-greeter[1885]: Message received from daemon: HostName
Aug 24 21:43:05 alex-studio-2004 sddm-greeter[1885]: Reading from "/usr/share/xsessions/cinnamon.desktop"
Aug 24 21:43:05 alex-studio-2004 sddm-greeter[1885]: Message received from daemon: LoginSucceeded
Aug 24 21:46:38 alex-studio-2004 sddm-greeter[1787]: High-DPI autoscaling not Enabled
Aug 24 21:46:38 alex-studio-2004 sddm-greeter[1787]: Reading from "/usr/share/xsessions/cinnamon.desktop"
Aug 24 21:46:38 alex-studio-2004 sddm-greeter[1787]: Reading from "/usr/share/xsessions/cinnamon2d.desktop"
Aug 24 21:46:38 alex-studio-2004 sddm-greeter[1787]: Reading from "/usr/share/xsessions/kodi.desktop"
Aug 24 21:46:38 alex-studio-2004 sddm-greeter[1787]: Reading from "/usr/share/xsessions/plasma.desktop"
Aug 24 21:46:38 alex-studio-2004 sddm-greeter[1787]: Reading from "/usr/share/xsessions/xfce.desktop"
Aug 24 21:46:38 alex-studio-2004 sddm-greeter[1787]: Loading theme configuration from "/usr/share/sddm/themes/ubuntu-theme/theme.conf"
Aug 24 21:46:38 alex-studio-2004 sddm-greeter[1787]: Connected to the daemon.
Aug 24 21:46:38 alex-studio-2004 sddm-greeter[1787]: QFont::fromString: Invalid description '(empty)'
Aug 24 21:46:38 alex-studio-2004 sddm-greeter[1787]: Loading file:///usr/share/sddm/themes/ubuntu-theme/Main.qml...
Aug 24 21:46:38 alex-studio-2004 sddm-greeter[1787]: QObject: Cannot create children for a parent that is in a different thread.#012(Parent is QGuiApplication(0x7ffed59db520), parent's thread is QThread(0x55fc7e57a5e0), current thread is QThread(0x55fc7e653e60)
Aug 24 21:46:39 alex-studio-2004 sddm-greeter[1787]: message repeated 2 times: [ QObject: Cannot create children for a parent that is in a different thread.#012(Parent is QGuiApplication(0x7ffed59db520), parent's thread is QThread(0x55fc7e57a5e0), current thread is QThread(0x55fc7e653e60)]
Aug 24 21:46:39 alex-studio-2004 sddm-greeter[1787]: QObject::installEventFilter(): Cannot filter events for objects in a different thread.
Aug 24 21:46:39 alex-studio-2004 dbus-daemon[985]: [system] Activating via systemd: service name='org.freedesktop.UPower' unit='upower.service' requested by ':1.44' (uid=137 pid=1787 comm="/usr/bin/sddm-greeter --socket /tmp/sddm-:0-PVHiqR" label="unconfined")
Aug 24 21:46:39 alex-studio-2004 sddm-greeter[1787]: file:///usr/share/sddm/themes/ubuntu-theme/Background.qml:21:5: QML Image: Cannot open: file:///usr/share/backgrounds/ubuntustudio/ubuntustudio-default.png
Aug 24 21:46:39 alex-studio-2004 sddm-greeter[1787]: Adding view for "eDP-1-1" QRect(0,0 1920x1080)
Aug 24 21:46:40 alex-studio-2004 sddm-greeter[1787]: Message received from daemon: Capabilities
Aug 24 21:46:40 alex-studio-2004 sddm-greeter[1787]: Message received from daemon: HostName
Aug 24 21:46:50 alex-studio-2004 sddm-greeter[1787]: Reading from "/usr/share/xsessions/cinnamon.desktop"
Aug 24 21:46:50 alex-studio-2004 sddm-greeter[1787]: Message received from daemon: LoginSucceeded
Aug 25 09:38:06 alex-studio-2004 sddm-greeter[1806]: High-DPI autoscaling not Enabled
Aug 25 09:38:06 alex-studio-2004 sddm-greeter[1806]: Reading from "/usr/share/xsessions/cinnamon.desktop"
Aug 25 09:38:06 alex-studio-2004 sddm-greeter[1806]: Reading from "/usr/share/xsessions/cinnamon2d.desktop"
Aug 25 09:38:06 alex-studio-2004 sddm-greeter[1806]: Reading from "/usr/share/xsessions/kodi.desktop"
Aug 25 09:38:06 alex-studio-2004 sddm-greeter[1806]: Reading from "/usr/share/xsessions/plasma.desktop"
Aug 25 09:38:06 alex-studio-2004 sddm-greeter[1806]: Reading from "/usr/share/xsessions/xfce.desktop"
Aug 25 09:38:06 alex-studio-2004 sddm-greeter[1806]: Loading theme configuration from "/usr/share/sddm/themes/ubuntu-theme/theme.conf"
Aug 25 09:38:06 alex-studio-2004 sddm-greeter[1806]: Connected to the daemon.
Aug 25 09:38:06 alex-studio-2004 sddm-greeter[1806]: QFont::fromString: Invalid description '(empty)'
Aug 25 09:38:07 alex-studio-2004 sddm-greeter[1806]: Loading file:///usr/share/sddm/themes/ubuntu-theme/Main.qml...
Aug 25 09:38:07 alex-studio-2004 sddm-greeter[1806]: QObject: Cannot create children for a parent that is in a different thread.#012(Parent is QGuiApplication(0x7ffd71625420), parent's thread is QThread(0x55ac78a185e0), current thread is QThread(0x55ac78af24e0)
Aug 25 09:38:07 alex-studio-2004 sddm-greeter[1806]: message repeated 2 times: [ QObject: Cannot create children for a parent that is in a different thread.#012(Parent is QGuiApplication(0x7ffd71625420), parent's thread is QThread(0x55ac78a185e0), current thread is QThread(0x55ac78af24e0)]
Aug 25 09:38:07 alex-studio-2004 sddm-greeter[1806]: QObject::installEventFilter(): Cannot filter events for objects in a different thread.
Aug 25 09:38:07 alex-studio-2004 sddm-greeter[1806]: file:///usr/share/sddm/themes/ubuntu-theme/Background.qml:21:5: QML Image: Cannot open: file:///usr/share/backgrounds/ubuntustudio/ubuntustudio-default.png
Aug 25 09:38:07 alex-studio-2004 sddm-greeter[1806]: Adding view for "eDP-1-1" QRect(0,0 1920x1080)
Aug 25 09:38:08 alex-studio-2004 sddm-greeter[1806]: Message received from daemon: Capabilities
Aug 25 09:38:08 alex-studio-2004 sddm-greeter[1806]: Message received from daemon: HostName
Aug 25 09:38:22 alex-studio-2004 sddm-greeter[1806]: Reading from "/usr/share/xsessions/cinnamon.desktop"
Aug 25 09:38:23 alex-studio-2004 sddm-greeter[1806]: Message received from daemon: LoginSucceeded
ls -la /usr/share/backgrounds/ubuntustudio/ubuntustudio-default.png
lrwxrwxrwx 1 root root 21 Apr 15 18:37 /usr/share/backgrounds/ubuntustudio/ubuntustudio-default.png -> ubuntustudio_2204.png

答案1

你读过发行说明吗?其中明确指出

升级到 Ubuntu Studio 22.04.1 LTS

注意:Ubuntu Studio 22.04 仅支持从 21.10 升级,而 21.10 现已停用,当您阅读本文时,从 21.10 升级可能已经停止。以下升级信息仅供 20.04 LTS 用户参考,可能有效也可能无效。

由于桌面环境的变化,不支持从 21.10 之前的版本直接升级到 Ubuntu Studio 22.04 LTS。

https://ubuntustudio.org/ubuntu-studio-22-04-lts-release-notes/

问题本应出现

答案2

今天进行了同样的升级。似乎缺少对ubuntustudio-wallpapers-jammy

手动安装

sudo apt install ubuntustudio-wallpapers-jammy

我如何发现缺少哪个包

ls -l /usr/share/backgrounds/ubuntustudio/ubuntustudio-default.png
lrwxrwxrwx 1 root root 21 apr 15 18:37 /usr/share/backgrounds/ubuntustudio/ubuntustudio-default.png -> ubuntustudio_2204.png

ubuntustudio_2204.png失踪

找出它属于哪个包

sudo apt install apt-file
sudo apt-file update

apt-file search /usr/share/backgrounds/ubuntustudio/ubuntustudio_2204.png
ubuntustudio-wallpapers-jammy: /usr/share/backgrounds/ubuntustudio/ubuntustudio_2204.png

相关内容