AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1023676
Accepted
Zanna
Zanna
Asked: 2018-04-11 06:41:32 +0800 CST2018-04-11 06:41:32 +0800 CST 2018-04-11 06:41:32 +0800 CST

为什么我的系统没有使用 Wayland 却安装了 Wayland 软件包?

  • 772

我正在使用 Ubuntu MATE 17.10。发行说明从未提及任何有关 Wayland的内容,而且我一直认为该系统使用的是 Xorg 显示服务器。

但是,今天我照常跑

sudo apt update && sudo apt full-upgrade

并注意到输出包括:

The following packages will be upgraded:
  libwayland-client0 libwayland-cursor0 libwayland-server0 [...]

我想,这很奇怪。我的系统到底是在使用 Wayland 吗?

正如Byte Commander 在 chat 中所建议的那样,我寻找正在运行的进程(使用pgrep Xorgand pstree),发现 Xorg 但没有 Wayland。所以我很确定 Wayland 没有运行。我寻找 Wayland 包:

dpkg -l | grep [Ww]ayland
ii  kwayland-data                         4:5.38.0-0ubuntu1                        all          Qt library wrapper for Wayland libraries - data files
ii  kwayland-integration:amd64            4:5.10.5-0ubuntu1                        amd64        kwayland runtime integration plugins
ii  libkf5waylandclient5:amd64            4:5.38.0-0ubuntu1                        amd64        Qt library wrapper for Wayland libraries
ii  libqt5waylandclient5:amd64            5.9.1-2                                  amd64        QtWayland client library
ii  libqt5waylandcompositor5:amd64        5.9.1-2                                  amd64        QtWayland compositor library
ii  libwayland-client0:amd64              1.14.0-1ubuntu0.1                        amd64        wayland compositor infrastructure - client library
ii  libwayland-cursor0:amd64              1.14.0-1ubuntu0.1                        amd64        wayland compositor infrastructure - cursor library
ii  libwayland-egl1-mesa:amd64            17.2.8-0ubuntu0~17.10.1                  amd64        implementation of the Wayland EGL platform -- runtime
ii  libwayland-server0:amd64              1.14.0-1ubuntu0.1                        amd64        wayland compositor infrastructure - server library
ii  qtwayland5:amd64                      5.9.1-2                                  amd64        QtWayland platform plugin

为什么我有这些与 Wayland 相关的软件包,即使我没有使用 Wayland?

package-management xorg apt wayland mate
  • 1 1 个回答
  • 2509 Views

1 个回答

  • Voted
  1. Best Answer
    Zanna
    2018-04-11T06:41:32+08:002018-04-11T06:41:32+08:00

    感谢Byte Commander和Eliah Kagan在聊天中提出的建议,我能够弄清楚这些软件包是作为依赖项安装的。

    正如建议的那样,我模拟了删除与 Wayland 相关的包......当我试图假装删除所有与 Wayland 相关的包时......

    apt remove '.*wayland.*' -s
    

    结果看起来像世界末日一样,一个全屏终端,里面装满了被删除的包,包括整个ubuntu-mate-desktop元包及其所有附件、xorg包(哎呀!)和marco(MATE 的默认窗口管理器)。

    但只是删除kwayland-data似乎只删除了其他几个神秘的包kwayland-integration和libkf5waylandclient5......

    因此,正如 Eliah Kagan建议的那样,我试着询问aptitude why我是否有这些包裹,例如

    $ aptitude why kwayland-data
    i   konsole              Depends    libkf5windowsystem5 (>= 4.96.0)                           
    i A libkf5windowsystem5  Recommends kwayland-integration                                      
    i A kwayland-integration Depends    libkf5waylandclient5 (>= 4:5.27.0+p16.10+git20161029.2052)
    i A libkf5waylandclient5 Depends    kwayland-data (= 4:5.38.0-0ubuntu1) 
    

    啊!那讲得通。我安装了 Konsole 是因为其他终端模拟器不支持 CTL。

    通过像一个顽固的蹒跚学步的孩子一样一遍又一遍地询问aptitude why,可以找出为什么需要或已安装任何特定软件包,例如:

    $ aptitude why libwayland-egl1-mesa
    i   libwebkit2gtk-4.0-37 Depends libwayland-egl1-mesa (>= 10.0.2) | libwayland-egl1
    $ aptitude why libwayland-cursor0
    i   libgtk-3-0 Depends libwayland-cursor0 (>= 1.9.91)
    $ aptitude why libgtk-3-0
    i   mate-utils Depends libgtk-3-0 (>= 3.16.2)
    $ aptitude why mate-utils
    i   ubuntu-mate-desktop Depends mate-utils
    

    模拟删除包之类的libgtk-3-0(注意不要实际删除它们......)揭示了更多关于依赖结构的信息。

    结论

    我有这些包是因为其他包出人意料地依赖于它们。一些,例如kwayland-data,作为我自己安装的非必需包的依赖项推荐的包的依赖项的依赖项安装,可以安全地删除,但其他一些,例如libwayland-egl1-mesa我的系统不可或缺的包的依赖项,并删除他们将是灾难性的!有了 APT--simulate或-s标志,aptitude我们就可以安全地调查这些问题。

    • 4

相关问题

  • 如何从命令行仅安装安全更新?关于如何管理更新的一些提示

  • 如何从命令行判断机器是否需要重新启动?

  • 有没有办法重置所有包/源并从头开始?

  • 如何回滚到 PHP 5.2?

  • 包管理器之间有什么区别?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve