Ubuntu 升级导致未满足的依赖项

Ubuntu 升级导致未满足的依赖项

所以从 Ubuntu 18.04 升级到 20.04 后我的系统设置消失了。尝试修复它(通过安装 gnome-control-center)会导致一些未满足的依赖项,我尝试修复这些依赖项(但这不起作用)。我直接更改了所需的设置,但是今天重新启动笔记本电脑时,我收到一条错误消息:

iwlwifi: 0000:02:00.0: BIOS contains WGDS but no WRDS

在恢复模式下,我尝试安装 ubuntu-desktop (不是重新安装,令我惊讶的是它当前没有安装),但它不起作用并给出以下错误:

ubuntu-desktop: Depends: gdm3 but it it not going to be installed
Depends: gnome-control-center but it it not going to be installed
Depends: gnome-shell but it it not going to be installed
Depends: gnome-shell-extension-appindicator but it it not going to be installed
Depends: gnome-shell-extension-desktop-icons but it it not going to be installed
Depends: gnome-shell-extension-ubuntu-dock but it it not going to be installed
Depends: ubuntu-desktop-minimal but it it not going to be installed
Depends: ubuntu-release-upgrader-gtk but it it not going to be installed
Depends: ubuntu-session but it it not going to be installed
Depends: update-manager but it it not going to be installed
Depends: xorg but it it not going to be installed
Depends: yelp but it it not going to be installed
Depends: zenity but it it not going to be installed
Recommends: cheese but it it not going to be installed
Recommends: gnome-calendar but it it not going to be installed
Recommends: gnome-getting-started-docs but it it not going to be installed
Recommends: gnome-initial-setup but it it not going to be installed
Recommends: gnome-todo but it it not going to be installed
Recommends: nautilus-share but it it not going to be installed
Recommends: shotwell but it it not going to be installed
Recommends: totem but it it not going to be installed
Recommends: ubuntu-docs but it it not going to be installed
E: Unable to correct problems, you have held broken packages

我已经用 检查了损坏的包裹dpkg --get-selections | grep hold,但没有结果。

我已经尝试过,,, sudo dpkg --configure -a和 ,但都没有改变任何东西。sudo aptitude install ubuntu desktopsudo apt-get -f installsudo apt-get update

如果我在家,我会重新安装 Ubuntu,但我不在家,所以我没有选择这样做。

有没有办法解决依赖问题?递归地尝试手动安装依靠: ...包似乎这可能不是一个富有成果的努力。

编辑:运行grep -r deb /etc/apt/sources.list /etc/apt/sources.list.d给出:

/etc/apt/sources.list:# cdrom:[Ubuntu 18.04.3 LTS _Bionic Beaver_ - Release amd64 (20190805)] Biopic main restricted
/etc/apt/sources.list: deb http://de.archive.ubuntu.com/ubuntu/ focal main restricted 
/etc/apt/sources.list:# deb-src http://de.archive.ubuntu.com/ubuntu/ bionic main restricted
/etc/apt/sources.list: deb http://de.archive.ubuntu.com/ubuntu/ focal-updates main restricted
/etc/apt/sources.list:# deb-src http://de.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
/etc/apt/sources.list: deb http://de.archive.ubuntu.com/ubuntu/ focal universe
/etc/apt/sources.list:# deb-src http://de.archive.ubuntu.com/ubuntu/ bionic universe
/etc/apt/sources.list: deb http://de.archive.ubuntu.com/ubuntu/ focal-updates universe
/etc/apt/sources.list:# deb-src http://de.archive.ubuntu.com/ubuntu/ bionic-updates universe
/etc/apt/sources.list: deb http://de.archive.ubuntu.com/ubuntu/ focal multiverse 
/etc/apt/sources.list: # deb-src http://de.archive.ubuntu.com/ubuntu/ bionic multiverse
/etc/apt/sources.list: deb http://de.archive.ubuntu.com/ubuntu/ focal-updates multiverse
/etc/apt/sources.list: # deb-src http://de.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
/etc/apt/sources.list: deb http://de.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
/etc/apt/sources.list: # deb-src http://de.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
/etc/apt/sources.list: # deb http://archive.canonical.com/ubuntu bionic partner
/etc/apt/sources.list: #deb-src http://archive.canonical.com/ubuntu bionic partner
/etc/apt/sources.list: deb http://security.ubuntu.com/ubuntu focal-security main restricted
/etc/apt/sources.list: #deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted
/etc/apt/sources.list: deb http://security.ubuntu.com/ubuntu focal-security universe
/etc/apt/sources.list:# deb-src http://security.ubuntu.com/ubuntu bionic-security universe
/etc/apt/sources.list: deb http://security.ubuntu.com/ubuntu focal-security multiverse
/etc/apt/sources.list: # deb arc http://security.ubuntu.com/ubuntu bionic-security multiverse
/etc/apt/sources.list.d/google.chrome.list.save: deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
/etc/apt/sources.list.d/oibaf-ubuntu-graphics-drivers-bionic.list: # deb http://ppa.launchpad.net/oibaf/graphics-drivers/ubuntu focal main # disabled on upgrade to focal
/etc/apt/sources.list.d/oibaf-ubuntu-graphics-drivers-bionic.list: # deb-src http://ppa.launchpad.net/oibaf/graphics-drivers/ubuntu bionic main 
/etc/apt/sources.list.d/oibaf-ubuntu-graphics-drivers-bionic.list.distUpgrade: deb http://ppa.launchpad.net/oibaf/graphics-drivers/ubuntu bionic main 
/etc/apt/sources.list.d/oibaf-ubuntu-graphics-drivers-bionic.list.distUpgrade:# deb-src http://ppa.launchpad.net/oibaf/graphics-drivers/ubuntu bionic main 
/etc/apt/sources.list.d/google-chrome.list.distUpgrade: deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
/etc/apt/sources.list.d/google-chrome.list: deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main

谢谢如果有人可以帮忙!

答案1

好的,感谢没有人的评论,我找到了解决方案:图形驱动程序的 ppa 不会自动升级。跑步:

sudo add-apt-repository ppa:oibaf/graphics-drivers
sudo apt update
sudo apt upgrade
sudo apt-get install ubuntu-desktop

解决了依赖关系,现在甚至系统设置也回来了。

如果有人有类似的问题:检查输出中是否有任何可疑条目

grep -r deb /etc/apt/sources.list /etc/apt/sources.list.d

就我而言,oibaf ... 条目包含“bionic”,即 Ubuntu 18.04 版本,因此更新驱动程序提供了正确的存储库并解决了所有问题。

相关内容