首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >从18.10升级到19.04没有桌面

从18.10升级到19.04没有桌面
EN

Ask Ubuntu用户
提问于 2019-04-19 15:28:29
回答 2查看 1.7K关注 0票数 0

我最近升级了从18.10到19.04,桌面不再可用。系统启动到终端。如果我尝试sudo apt install ubuntu-desktop,我会得到一个长长的依赖关系错误列表:

代码语言:javascript
复制
Reading package lists...
Building dependency tree...
Reading state information...
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:
ubuntu-desktop : Depends: gdm3 but it is not going to be installed
                 Depends: gnome-control-center but it is not going to be installed
                 Depends: gnome-shell but it is not going to be installed
                 Depends: gnome-shell-extension-appindicator but it is not going to be installed
                 Depends: gnome-shell-extension-desktop-icons but it is not going to be installed
                 Depends: gnome-shell-extension-ubuntu-dock but it is not going to be installed
                 Depends: nautilus but it is not going to be installed
                 Depends: ubuntu-desktop-minimal but it is not going to be installed
                 Depends: ubuntu-release-upgrader-gtk but it is not going to be installed
                 Depends: ubuntu-session but it is not going to be installed
                 Depends: update-manager but it is not going to be installed
                 Depends: xorg but it is not going to be installed
                 Depends: yelp but it is not going to be installed
                 Depends: zenity
                 Recommends: cheese but it is not going to be installed
                 Recommends: deja-dup but it is not going to be installed
                 Recommends: gnome-calendar but it is not going to be installed
                 Recommends: gnome-getting-started-docs but it is not going to be installed
                 Recommends: gnome-initial-setup but it is not going to be installed
                 Recommends: gnome-todo but it is not going to be installed
                 Recommends: gvfs-fuse but it is not going to be installed
                 Recommends: nautilus-share but it is not going to be installed
                 Recommends: shotwell but it is not going to be installed
                 Recommends: totem but it is not going to be installed
                 Recommends: ubuntu-docs but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我试过以下方法来修复apt,但没有成功:

代码语言:javascript
复制
sudo apt clean
sudo apt update
sudo apt update --fix-missing
sudo apt upgrade
sudo apt dist-upgrade
sudo dpkg --configure -a
sudo apt install -f

/etc/apt/sources.list中未注释的行:

代码语言:javascript
复制
deb http://ch.archive.ubuntu.com/ubuntu/ disco main restricted
deb http://ch.archive.ubuntu.com/ubuntu/ disco-updates main restricted
deb http://ch.archive.ubuntu.com/ubuntu/ disco universe
deb http://ch.archive.ubuntu.com/ubuntu/ disco-updates universe
deb http://ch.archive.ubuntu.com/ubuntu/ disco multiverse
deb http://ch.archive.ubuntu.com/ubuntu/ disco-updates multiverse
deb http://ch.archive.ubuntu.com/ubuntu/ disco-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu disco-security main restricted
deb http://security.ubuntu.com/ubuntu disco-security universe
deb http://security.ubuntu.com/ubuntu disco-security multiverse

运行startx会导致:

代码语言:javascript
复制
/etc/X11/xinit/xserverrc: 3: exec: /usr/bin/X: not found
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error

uname -a的输出:

代码语言:javascript
复制
Linux XPS13 5.0.0-13-generic #14-Ubuntu SMP Mon Apr 15 14:59:14 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

任何建议都将是非常感谢的,这将有助于修复apt,并最终给我的desktop环境带来生命!

EN

回答 2

Ask Ubuntu用户

回答已采纳

发布于 2019-04-22 15:20:28

最后,我终于重新安装了.:-(

票数 2
EN

Ask Ubuntu用户

发布于 2019-04-26 14:34:27

好吧,也许对更多的读者有帮助。

在使用The following packages have unmet dependencies的情况下,查找故障的方法之一是使用链式方法:

所以,在这种情况下,你做到了:

代码语言:javascript
复制
sudo apt install ubuntu-desktop

它犯了错误:

代码语言:javascript
复制
...
The following packages have unmet dependencies:
ubuntu-desktop : Depends: gdm3 but it is not going to be installed
...

那么你应该做:

代码语言:javascript
复制
sudo apt install gdm3

这将导致新的未满足的依赖项错误,或者您将发现错误的真正原因。在前一种情况下,您将使用不同的未满足包重复该过程,而在后一种情况下,您只需处理问题。

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1135272

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档