无法在 Ubuntu 16.04 上安装 MATE 1.20

无法在 Ubuntu 16.04 上安装 MATE 1.20
ryan@Dell-Latitude-E6330:~$ sudo apt-get install mate
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'mate-desktop-environment' instead of 'mate'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 mate-desktop-environment : Depends: mate-desktop-environment-core (= 1.20.0+2~16.04.york0) but it is not going to be installed
                            Recommends: atril (>= 1.20) but it is not going to be installed
                            Recommends: engrampa (>= 1.20) but it is not going to be installed
                            Recommends: eom (>= 1.20) but it is not going to be installed
                            Recommends: mate-calc (>= 1.20) but it is not going to be installed
                            Recommends: mate-applets (>= 1.20) but it is not going to be installed
                            Recommends: mate-icon-theme-faenza (>= 1.20) but it is not going to be installed
                            Recommends: mate-media (>= 1.20) but it is not going to be installed
                            Recommends: mate-notification-daemon (>= 1.20) but 1.18.1-1~16.04.york0 is to be installed
                            Recommends: mate-power-manager (>= 1.20) but 1.18.1-3~16.04.york2 is to be installed
                            Recommends: mate-screensaver (>= 1.20) but it is not going to be installed
                            Recommends: mate-system-monitor (>= 1.20) but 1.18.1-2~16.04.york0 is to be installed
                            Recommends: mate-utils (>= 1.20) but it is not going to be installed
                            Recommends: pluma (>= 1.20) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

有什么方法可以正确安装 Ubuntu MATE?

答案1

让我们看一些消息。

Note, selecting 'mate-desktop-environment' instead of 'mate'

apt-getmate正在用替换包名称mate-desktop-environment。您不必假设包名为mate,而是应该查看apt-cache search mate

 The following packages have unmet dependencies:
 mate-desktop-environment : Depends: mate-desktop-environment-core (= 1.20.0+2~16.04.york0) but it is not going to be installed

这说明您要求安装的软件包 ( mate-desktop-environment,是mate) 依赖于名为 的软件包mate-desktop-environment-core。“依赖”在此上下文中的意思是“必须有它,没有它就无法工作”。

要修复此问题,请执行以下操作:

sudo apt-get install mate-desktop-environment mate-desktop-environment-core

但是,所有Recommends:行都推荐了其他mate更有用的软件包。您只需将所需的软件包添加到命令行即可。Myapt-cache search mate | grep -w mate | wc -l显示名称中120包含的软件包。调查它们。从开始。mateapt-cache search mate | grep -w mate

答案2

ppa:jonathonf/mate-1.20我假设您正在尝试使用或存储库安装软件包ppa:jonathonf/mate-1.20-gtk3.22

我发现上述错误的根本原因是只有旧版本的 GTK 可用。

我发现运行命令添加了所有必要的软件包,以允许完整安装 mate 桌面环境。

sudo add-apt-repository ppa:jonathonf/mate-1.20-gtk3.22
sudo add-apt-repository ppa:jonathonf/gtk3.22
sudo apt update
sudo apt install mate-desktop-environment

相关内容