linuxdeepin / developer-center

Deepin developer center, provide developer wiki and community forum.
453 stars 73 forks source link

`processing triggers` while removing `gnome-shell` exposes slight bug related to `gschema.override`, #2462

Closed averyfreeman closed 2 years ago

averyfreeman commented 2 years ago

Hi,

I like the desktop very much, very nice job

I was installing gnome-shell and related framework files from Ubuntu 21.10 and noticed these bugs during processing triggers, I wanted to report them so you are aware:

❯ sudo apt remove gnome-shell gnome-shell-extension-desktop-icons-ng gnome-shell-extension-desktop-icons-ng gnome-shell-extension-prefs gnome-shell-extension-appindicator gnome-shell-common chrome-gnome-shell yaru-theme-gnome-shell 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gir1.2-gck-1 gir1.2-gcr-3 gir1.2-gdm-1.0 gir1.2-geoclue-2.0
  gir1.2-gnomebluetooth-1.0 gir1.2-graphene-1.0 gir1.2-gtk-4.0
  gir1.2-gweather-3.0 gir1.2-mutter-8 gir1.2-rsvg-2.0 gstreamer1.0-pipewire
  libmutter-8-0 mutter-common switcheroo-control xwayland
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  chrome-gnome-shell gdm3 gnome-shell gnome-shell-common
  gnome-shell-extension-appindicator gnome-shell-extension-desktop-icons-ng
  gnome-shell-extension-prefs gnome-shell-extension-ubuntu-dock gnome-tweaks
  ubuntu-desktop-minimal ubuntu-session yaru-theme-gnome-shell
0 upgraded, 0 newly installed, 12 to remove and 0 not upgraded.
After this operation, 12.0 MB disk space will be freed.
Do you want to continue? [Y/n] 
Requesting to save current system state
Successfully saved as "autozsys_5kg6q6"
(Reading database ... 402751 files and directories currently installed.)
Removing chrome-gnome-shell (10.1-5) ...
Removing ubuntu-desktop-minimal (1.472) ...
Removing gdm3 (41~rc-0ubuntu2) ...
Removing gnome-tweaks (40.0-3) ...
Removing gnome-shell-extension-prefs (40.5-1ubuntu2) ...
Removing ubuntu-session (40.1.1-1ubuntu1) ...
Removing gnome-shell-extension-appindicator (40-1) ...
Removing gnome-shell-extension-desktop-icons-ng (20-0ubuntu3) ...
Removing gnome-shell-extension-ubuntu-dock (70~ubuntu3) ...
Removing yaru-theme-gnome-shell (21.10.2) ...
update-alternatives: using /usr/share/gnome-shell/gnome-shell-theme.gresource to provide /usr/share/gnome-shell/gdm-theme.gresource (gdm-theme.gresource) in auto mode
Removing gnome-shell (40.5-1ubuntu2) ...
Removing gnome-shell-common (40.5-1ubuntu2) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu2) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for libglib2.0-0:amd64 (2.68.4-1ubuntu1) ...
/usr/share/glib-2.0/schemas/com.deepin.service.gschema.xml:1:1  Error on line 1 char 1: Document was empty or contained only whitespace.  This entire file has been ignored.
Error parsing key “apps-order” in schema “com.deepin.dde.launcher” as specified in override file “/usr/share/glib-2.0/schemas/90_deepin_base.gschema.override”: 32:expected ',' or ']' to follow array element. Ignoring override for this key.
Error parsing key “apps-order-zh-cn” in schema “com.deepin.dde.launcher” as specified in override file “/usr/share/glib-2.0/schemas/90_deepin_base.gschema.override”: 32:expected ',' or ']' to follow array element. Ignoring override for this key.
Error parsing key “apps-order-zh-tw” in schema “com.deepin.dde.launcher” as specified in override file “/usr/share/glib-2.0/schemas/90_deepin_base.gschema.override”: 32:expected ',' or ']' to follow array element. Ignoring override for this key.
Error parsing key “apps-order” in schema “com.deepin.dde.launcher” as specified in override file “/usr/share/glib-2.0/schemas/91_deepin_product.gschema.override”: 32:expected ',' or ']' to follow array element. Ignoring override for this key.
Error parsing key “apps-order-zh-cn” in schema “com.deepin.dde.launcher” as specified in override file “/usr/share/glib-2.0/schemas/91_deepin_product.gschema.override”: 32:expected ',' or ']' to follow array element. Ignoring override for this key.
Error parsing key “apps-order-zh-tw” in schema “com.deepin.dde.launcher” as specified in override file “/usr/share/glib-2.0/schemas/91_deepin_product.gschema.override”: 32:expected ',' or ']' to follow array element. Ignoring override for this key.
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for gnome-icon-theme (3.12.0-4) ...
Processing triggers for mailcap (3.69ubuntu1) ...
Processing triggers for bamfdaemon (0.5.5+21.10.20210710-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
ZSys is adding automatic system snapshot to GRUB menu

EDIT: Update

Got more similar errors when autoremoving related libraries:

❯ sudo apt --purge autopurge
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  gir1.2-gck-1* gir1.2-gcr-3* gir1.2-gdm-1.0* gir1.2-geoclue-2.0*
  gir1.2-gnomebluetooth-1.0* gir1.2-graphene-1.0* gir1.2-gtk-4.0*
  gir1.2-gweather-3.0* gir1.2-mutter-8* gir1.2-rsvg-2.0*
  gstreamer1.0-pipewire* libmutter-8-0* mutter-common* switcheroo-control*
  xwayland*
0 upgraded, 0 newly installed, 15 to remove and 0 not upgraded.
After this operation, 8,612 kB disk space will be freed.
Do you want to continue? [Y/n] 
Requesting to save current system state
Successfully saved as "autozsys_f1c984"
(Reading database ... 402283 files and directories currently installed.)
Removing gir1.2-gcr-3:amd64 (3.40.0-3) ...
Removing gir1.2-gck-1:amd64 (3.40.0-3) ...
Removing gir1.2-gdm-1.0:amd64 (41~rc-0ubuntu2) ...
Removing gir1.2-geoclue-2.0:amd64 (2.5.7-3ubuntu2) ...
Removing gir1.2-gnomebluetooth-1.0:amd64 (3.34.5-3) ...
Removing gir1.2-mutter-8:amd64 (40.5-1ubuntu3~21.10.1) ...
Removing gir1.2-gtk-4.0:amd64 (4.4.0+ds1-5) ...
Removing gir1.2-graphene-1.0:amd64 (1.10.4+dfsg1-1build1) ...
Removing gir1.2-gweather-3.0:amd64 (40.0-3) ...
Removing gir1.2-rsvg-2.0:amd64 (2.50.7+dfsg-1) ...
Removing gstreamer1.0-pipewire:amd64 (0.3.32-1) ...
Removing libmutter-8-0:amd64 (40.5-1ubuntu3~21.10.1) ...
Removing mutter-common (40.5-1ubuntu3~21.10.1) ...
Removing switcheroo-control (2.4-3build1) ...
Removing xwayland (2:21.1.2-0ubuntu1.1) ...
Processing triggers for libc-bin (2.34-0ubuntu3) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for udev (248.3-1ubuntu8.2) ...
Processing triggers for libglib2.0-0:amd64 (2.68.4-1ubuntu1) ...
/usr/share/glib-2.0/schemas/com.deepin.service.gschema.xml:1:1  Error on line 1 char 1: Document was empty or contained only whitespace.  This entire file has been ignored.
Error parsing key “apps-order” in schema “com.deepin.dde.launcher” as specified in override file “/usr/share/glib-2.0/schemas/90_deepin_base.gschema.override”: 32:expected ',' or ']' to follow array element. Ignoring override for this key.
Error parsing key “apps-order-zh-cn” in schema “com.deepin.dde.launcher” as specified in override file “/usr/share/glib-2.0/schemas/90_deepin_base.gschema.override”: 32:expected ',' or ']' to follow array element. Ignoring override for this key.
Error parsing key “apps-order-zh-tw” in schema “com.deepin.dde.launcher” as specified in override file “/usr/share/glib-2.0/schemas/90_deepin_base.gschema.override”: 32:expected ',' or ']' to follow array element. Ignoring override for this key.
Error parsing key “apps-order” in schema “com.deepin.dde.launcher” as specified in override file “/usr/share/glib-2.0/schemas/91_deepin_product.gschema.override”: 32:expected ',' or ']' to follow array element. Ignoring override for this key.
Error parsing key “apps-order-zh-cn” in schema “com.deepin.dde.launcher” as specified in override file “/usr/share/glib-2.0/schemas/91_deepin_product.gschema.override”: 32:expected ',' or ']' to follow array element. Ignoring override for this key.
Error parsing key “apps-order-zh-tw” in schema “com.deepin.dde.launcher” as specified in override file “/usr/share/glib-2.0/schemas/91_deepin_product.gschema.override”: 32:expected ',' or ']' to follow array element. Ignoring override for this key.
(Reading database ... 402188 files and directories currently installed.)
Purging configuration files for switcheroo-control (2.4-3build1) ...
Processing triggers for dbus (1.12.20-2ubuntu2) ...
ZSys is adding automatic system snapshot to GRUB menu

Current env:

❯ echo $SHELL && env && uname -a && cat /etc/os-release && lsb_release -a

SHELL=/bin/bash
LSCOLORS=Gxfxcxdxdxegedabagacad
WINDOWID=0
QT_ACCESSIBILITY=1
COLORTERM=truecolor
XDG_CONFIG_DIRS=/etc/xdg/xdg-deepin:/etc/xdg
LESS=-R
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
NVM_INC=/home/avery/.nvm/versions/node/v14.18.3/include/node
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GTK_IM_MODULE=ibus
LANGUAGE=en_US
D_DISABLE_RT_SCREEN_SCALE=1
QT_LOGGING_RULES=*.debug=false
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
XDG_DATA_HOME=/home/avery/.local/share
XDG_CONFIG_HOME=/home/avery/.config
XMODIFIERS=@im=ibus
DESKTOP_SESSION=deepin
OSH=/home/avery/.oh-my-bash
GTK_MODULES=gail:atk-bridge
XDG_SEAT=seat0
PWD=/home/avery/build
XDG_SESSION_DESKTOP=deepin
LOGNAME=avery
XDG_SESSION_TYPE=x11
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
XAUTHORITY=/home/avery/.Xauthority
DEEPIN_WINE_SCALE=1.25
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/avery
GDM_LANG=en_US
HOME=/home/avery
LANG=en_US.UTF-8
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
XDG_CURRENT_DESKTOP=Deepin
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
COMP_WORDBREAKS= 
"'><=;|&(
CLUTTER_IM_MODULE=ibus
QT_QPA_PLATFORM=
XDG_CACHE_HOME=/home/avery/.cache
YVM_DIR=/home/joe_user/.yvm
NVM_DIR=/home/avery/.nvm
LESSCLOSE=/usr/bin/lesspipe %s %s
XDG_SESSION_CLASS=user
TERM=xterm-256color
LESSOPEN=| /usr/bin/lesspipe %s
USER=avery
DISPLAY=:0
QT_DBL_CLICK_DIST=18
SHLVL=1
NVM_CD_FLAGS=
PAGER=less
QT_IM_MODULE=ibus
XDG_VTNR=1
XDG_SESSION_ID=c3
QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
LC_CTYPE=en_US.UTF-8
QT_SCALE_FACTOR_ROUNDING_POLICY=PassThrough
XDG_RUNTIME_DIR=/run/user/1000
GTK3_MODULES=xapp-gtk3-module
XDG_DATA_DIRS=/usr/share/deepin:/home/avery/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop
PATH=/home/avery/.nvm/versions/node/v14.18.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
HISTIGNORE=&:[ ]*:exit:ls:bg:fg:history:clear
GDMSESSION=deepin
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
NVM_BIN=/home/avery/.nvm/versions/node/v14.18.3/bin
GIO_LAUNCHED_DESKTOP_FILE_PID=9363
GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/deepin-terminal.desktop
OLDPWD=/home/avery/build/kwin-quick-tile-enhancements
_=/usr/bin/env
Linux treygouty 5.13.0-27-generic #29-Ubuntu SMP Wed Jan 12 17:36:47 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
PRETTY_NAME="Ubuntu 21.10"
NAME="Ubuntu"
VERSION_ID="21.10"
VERSION="21.10 (Impish Indri)"
VERSION_CODENAME=impish
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=impish
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 21.10
Release:        21.10
Codename:       impish
Zeno-sole commented 2 years ago

Did you find this problem using ubuntudde?

Zeno-sole commented 2 years ago

Due to no reply for a long time and lack of necessary information, close the issue, If the problem still exists, you can apply to reopen the issue