根据Ubuntu 的维基百科页面之前,Ubuntu 仅运行 GNOME 直到 10.10 版本,即 Unity 发布之时。
然而,根据 Sysinfo,我的电脑有 GNOME。
我有 Ubuntu 15.04。
答案1
答案2
截取您的桌面截图,我们就可以一目了然地告诉您正在运行的版本。
如果您运行的是普通的旧标准 Ubuntu 15.04,那么您将拥有一些 GNOME 组件,但您正在使用 Unity。
如果您运行的是 Ubuntu GNOME 15.04,那么您使用的是 GNOME 环境。不过,这是一个专门的变体,其主要桌面环境是 GNOME,而不是 Unity。(它也是一个不同的安装程序 ISO)
答案3
除非你手动更改了它,否则你应该运行 Unity。我读到的唯一将应用的 Gnome 更新是在软件中心,删除 Unity
答案4
检查正在运行的进程,看看你正在运行的是 Unity 还是 Gnome
尝试使用以下命令检查正在运行的 Unity 和 Gnome 进程:
# look for running unity processes
ps aux | grep -i unity
# look for running gnome processes
ps aux | grep -i gnome
在我的 Ubuntu 18.04 机器上,第一个 cmd 仅显示以下内容,即grep
进程本身:
gabriel+ 24941 0.0 0.0 14436 1092 pts/16 S+ 11:44 0:00 grep --color=auto unity
第二条命令显示以下内容:
gdm 1899 0.0 0.0 190692 5572 tty1 Ssl+ Dec13 0:00 /usr/lib/gdm3/gdm-wayland-session gnome-session --autostart /usr/share/gdm/greeter/autostart
gdm 1904 0.0 0.0 625456 13412 tty1 Sl+ Dec13 0:00 /usr/lib/gnome-session/gnome-session-binary --autostart /usr/share/gdm/greeter/autostart
gdm 1916 0.1 0.5 4339956 165784 tty1 Sl+ Dec13 1:10 /usr/bin/gnome-shell
gdm 2201 0.0 0.0 220768 7024 ? Sl Dec13 0:00 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
gdm 2691 0.0 0.0 857948 30592 tty1 Sl+ Dec13 0:00 /usr/lib/gnome-settings-daemon/gsd-xsettings
gdm 2698 0.0 0.0 271088 5816 tty1 Sl+ Dec13 0:00 /usr/lib/gnome-settings-daemon/gsd-a11y-settings
gdm 2703 0.0 0.0 706580 28788 tty1 Sl+ Dec13 0:00 /usr/lib/gnome-settings-daemon/gsd-clipboard
gdm 2705 0.0 0.0 1040296 31948 tty1 Sl+ Dec13 0:14 /usr/lib/gnome-settings-daemon/gsd-color
gdm 2708 0.0 0.0 386616 13464 tty1 Sl+ Dec13 0:00 /usr/lib/gnome-settings-daemon/gsd-datetime
gdm 2709 0.0 0.0 276640 5088 tty1 Sl+ Dec13 0:00 /usr/lib/gnome-settings-daemon/gsd-housekeeping
gdm 2710 0.0 0.0 861172 30080 tty1 Sl+ Dec13 0:00 /usr/lib/gnome-settings-daemon/gsd-keyboard
gdm 2715 0.0 0.0 1436332 31364 tty1 Sl+ Dec13 0:00 /usr/lib/gnome-settings-daemon/gsd-media-keys
gdm 2717 0.0 0.0 194892 4592 tty1 Sl+ Dec13 0:00 /usr/lib/gnome-settings-daemon/gsd-mouse
gdm 2718 0.0 0.0 871732 30456 tty1 Sl+ Dec13 0:00 /usr/lib/gnome-settings-daemon/gsd-power
gdm 2721 0.0 0.0 259920 8352 tty1 Sl+ Dec13 0:00 /usr/lib/gnome-settings-daemon/gsd-print-notifications
gdm 2727 0.0 0.0 194912 4716 tty1 Sl+ Dec13 0:00 /usr/lib/gnome-settings-daemon/gsd-rfkill
gdm 2728 0.0 0.0 268628 4720 tty1 Sl+ Dec13 0:00 /usr/lib/gnome-settings-daemon/gsd-screensaver-proxy
gdm 2729 0.0 0.0 298056 7388 tty1 Sl+ Dec13 0:00 /usr/lib/gnome-settings-daemon/gsd-sharing
gdm 2735 0.0 0.0 371004 9008 tty1 Sl+ Dec13 0:00 /usr/lib/gnome-settings-daemon/gsd-smartcard
gdm 2738 0.0 0.0 327912 7960 tty1 Sl+ Dec13 0:00 /usr/lib/gnome-settings-daemon/gsd-sound
gdm 2744 0.0 0.0 791588 29700 tty1 Sl+ Dec13 0:00 /usr/lib/gnome-settings-daemon/gsd-wacom
gabriel+ 3751 0.0 0.0 576336 8728 ? Sl Dec13 0:00 /usr/bin/gnome-keyring-daemon --daemonize --login
gabriel+ 3775 0.0 0.0 205028 5724 tty2 Ssl+ Dec13 0:00 /usr/lib/gdm3/gdm-x-session --run-script env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
gabriel+ 3792 0.0 0.0 720132 15716 tty2 Sl+ Dec13 0:00 /usr/lib/gnome-session/gnome-session-binary --session=ubuntu
gabriel+ 3878 0.0 0.0 11316 316 ? Ss Dec13 0:00 /usr/bin/ssh-agent /usr/bin/im-launch env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
gabriel+ 3891 0.0 0.0 220792 6904 ? Sl Dec13 0:05 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
gabriel+ 3912 1.6 1.3 4598528 432764 tty2 Rl+ Dec13 18:30 /usr/bin/gnome-shell
gabriel+ 3987 0.0 0.0 628064 21392 ? Sl Dec13 0:00 /usr/lib/gnome-shell/gnome-shell-calendar-server
gabriel+ 4001 0.0 0.1 710208 33528 ? Sl Dec13 0:00 /usr/lib/gnome-online-accounts/goa-daemon
gabriel+ 4351 0.0 0.0 595704 23228 tty2 Sl+ Dec13 0:01 /usr/lib/gnome-settings-daemon/gsd-power
gabriel+ 4353 0.0 0.0 354196 10932 tty2 Sl+ Dec13 0:00 /usr/lib/gnome-settings-daemon/gsd-print-notifications
gabriel+ 4354 0.0 0.0 416240 5772 tty2 Sl+ Dec13 0:00 /usr/lib/gnome-settings-daemon/gsd-rfkill
gabriel+ 4355 0.0 0.0 268628 4756 tty2 Sl+ Dec13 0:00 /usr/lib/gnome-settings-daemon/gsd-screensaver-proxy
gabriel+ 4357 0.0 0.0 446204 9396 tty2 Sl+ Dec13 0:08 /usr/lib/gnome-settings-daemon/gsd-sharing
gabriel+ 4360 0.0 0.0 371032 7804 tty2 Sl+ Dec13 0:00 /usr/lib/gnome-settings-daemon/gsd-smartcard
gabriel+ 4365 0.0 0.0 327948 8108 tty2 Sl+ Dec13 0:00 /usr/lib/gnome-settings-daemon/gsd-sound
gabriel+ 4366 0.0 0.0 487956 22064 tty2 Sl+ Dec13 0:09 /usr/lib/gnome-settings-daemon/gsd-xsettings
gabriel+ 4378 0.0 0.0 421248 21112 tty2 Sl+ Dec13 0:00 /usr/lib/gnome-settings-daemon/gsd-wacom
gabriel+ 4379 0.0 0.0 336496 19872 tty2 Sl+ Dec13 0:00 /usr/lib/gnome-settings-daemon/gsd-clipboard
gabriel+ 4383 0.0 0.0 271116 5768 tty2 Sl+ Dec13 0:00 /usr/lib/gnome-settings-daemon/gsd-a11y-settings
gabriel+ 4386 0.0 0.0 462712 13464 tty2 Sl+ Dec13 0:00 /usr/lib/gnome-settings-daemon/gsd-datetime
gabriel+ 4389 0.0 0.0 1137152 23452 tty2 Sl+ Dec13 0:16 /usr/lib/gnome-settings-daemon/gsd-color
gabriel+ 4392 0.0 0.0 511756 23136 tty2 Sl+ Dec13 0:01 /usr/lib/gnome-settings-daemon/gsd-keyboard
gabriel+ 4393 0.0 0.0 357808 7372 tty2 Sl+ Dec13 0:06 /usr/lib/gnome-settings-daemon/gsd-housekeeping
gabriel+ 4396 0.0 0.0 271124 5844 tty2 Sl+ Dec13 0:00 /usr/lib/gnome-settings-daemon/gsd-mouse
gabriel+ 4399 0.0 0.0 1211580 24512 tty2 Sl+ Dec13 0:01 /usr/lib/gnome-settings-daemon/gsd-media-keys
gabriel+ 4447 0.0 0.0 501676 12068 tty2 Sl+ Dec13 0:00 /usr/lib/gnome-settings-daemon/gsd-printer
gabriel+ 4464 0.0 0.0 271940 6268 tty2 Sl+ Dec13 0:00 /usr/lib/gnome-disk-utility/gsd-disk-utility-notify
gabriel+ 4499 1.3 0.1 678248 50200 tty2 Sl+ Dec13 15:24 gnome-system-monitor
gabriel+ 4668 0.0 0.1 1141068 63884 ? Sl Dec13 0:00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx4587x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/Calendar/4587/2
gabriel+ 4706 0.0 0.0 1022136 27600 ? Sl Dec13 0:00 /usr/lib/evolution/evolution-addressbook-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.AddressBookx4695x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/AddressBook/4695/2
gabriel+ 4981 0.0 0.4 1357716 156320 tty2 SLl+ Dec13 0:11 /usr/bin/gnome-software --gapplication-service
gabriel+ 15949 0.0 0.0 258644 28780 tty2 Sl+ Dec13 0:00 /usr/bin/python3 /usr/bin/chrome-gnome-shell chrome-extension://gphhapmejobijbbhgpjhcjognlahblep/
gabriel+ 15950 0.0 0.0 258644 28696 tty2 Sl+ Dec13 0:00 /usr/bin/python3 /usr/bin/chrome-gnome-shell chrome-extension://gphhapmejobijbbhgpjhcjognlahblep/
gabriel+ 24984 0.0 0.0 14436 1052 pts/16 S+ 11:45 0:00 grep --color=auto gnome
gabriel+ 29329 0.0 0.1 657752 41516 tty2 Sl+ 09:45 0:01 gnome-calculator
显然,我正在运行 gnome。
您可以通过将输出传输到wc -l
管道来计算输出行数。unity
显示 1 行,和gnome
显示 56 行:
$ ps aux | grep unity | wc -l
1
$ ps aux | grep gnome | wc -l
56