我有Ubuntu 14.04(内核 3.19.0-49)并且我想安装最新的 LTS 支持堆栈来访问内核 4+。
根据维基百科, 我需要去做
$ sudo apt-get install --install-recommends linux-generic-lts-wily xserver-xorg-core-lts-wily xserver-xorg-lts-wily xserver-xorg-video-all-lts-wily xserver-xorg-input-all-lts-wily libwayland-egl1-mesa-lts-wily
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
xserver-xorg-lts-wily : Recommends: libgl1-mesa-glx-lts-wily but it is not going to be installed
Recommends: libegl1-mesa-drivers-lts-wily but it is not installable
Recommends: libgles2-mesa-lts-wily but it is not going to be installed
Recommends: libgles1-mesa-lts-wily but it is not going to be installed
Conflicts: libgl1-mesa-glx (>= 0~)
Conflicts: libglapi-mesa (>= 0~)
Conflicts: libgles2-mesa (>= 0~)
E: Unable to correct problems, you have held broken packages.
但我遇到了未满足的依赖关系。
为什么?我该怎么办?
谢谢。
编辑:
不幸的是,我无法独自安装推荐的软件包。
$ sudo apt-get install libgl1-mesa-glx-lts-wily
[...]
The following packages have unmet dependencies:
libgl1-mesa-glx-lts-wily : Depends: libglapi-mesa-lts-wily (= 11.0.2-1ubuntu4~trusty1) but it is not going to be installed
Depends: libgl1-mesa-dri-lts-wily (>= 7.2) but it is not going to be installed
如果我尝试安装
$ sudo apt-get install libglapi-mesa-lts-wily
The following packages have unmet dependencies:
libglapi-mesa-lts-wily : Conflicts: libglapi-mesa
Conflicts: libglapi-mesa:i386
编辑-2:
不幸的是,安装了 LTE HWE 后系统无法启动。系统在启动时卡住,无法进入登录屏幕。
我通过从头开始重新安装 Ubuntu 14.04.4 来“解决”。
答案1
正确的命令是
sudo apt-get install linux-generic-lts-wily xserver-xorg-lts-wily libgl1-mesa-glx-lts-wily libglapi-mesa-lts-wily libwayland-egl1-mesa-lts-wily libgl1-mesa-glx-lts-wily:i386 libglapi-mesa-lts-wily:i386
那个“官方”维基百科总是错误的。
xserver-xorg
还要注意的是,如果你想要 4.2 内核,你不必升级。你可以只升级内核,方法是
sudo apt-get install linux-generic-lts-wily
答案2
首先,(这里要小心)删除有问题的软件包,然后运行安装:
sudo apt-get purge libgl1-mesa-glx libgl1-mesa-glx:i386 libglapi-mesa libgles2-mesa libglapi-mesa:i386 libgles2-mesa:i386
sudo apt-get install --install-recommends libgl1-mesa-glx-lts-wily libegl1-mesa-drivers-lts-wily libgles2-mesa-lts-wily linux-generic-lts-wily xserver-xorg-core-lts-wily xserver-xorg-lts-wily libgles1-mesa-lts-wily xserver-xorg-video-all-lts-wily xserver-xorg-input-all-lts-wily libwayland-egl1-mesa-lts-wily
如果您还需要 i386 版本,请也运行以下命令:
sudo apt-get install libgl1-mesa-glx-lts-wily:i386 libegl1-mesa-drivers-lts-wily:i386 libgles2-mesa-lts-wily:i386 linux-generic-lts-wily:i386 xserver-xorg-core-lts-wily:i386 xserver-xorg-lts-wily:i386 libgles1-mesa-lts-wily:i386 xserver-xorg-video-all-lts-wily:i386 xserver-xorg-input-all-lts-wily:i386 libwayland-egl1-mesa-lts-wily
或者不按照建议直接安装:
sudo apt-get install linux-generic-lts-wily xserver-xorg-core-lts-wily xserver-xorg-lts-wily xserver-xorg-video-all-lts-wily xserver-xorg-input-all-lts-wily libwayland-egl1-mesa-lts-wily
答案3
有同样的问题。通过先删除 libgles2-mesa-lts-utopic 和 libglapi-mesa-lts-utopic 解决:
sudo apt-get purge libgles2-mesa-lts-utopic libglapi-mesa-lts-utopic
然后按照wiki说明进行安装。