如何修复 KDE NEON 用户版错误并更新至 Plasma 6

如何修复 KDE NEON 用户版错误并更新至 Plasma 6

昨天 KDE 团队发布了 KDE 6.0.0,并将其添加到 KDE NEON 的用户版中。我已经使用它一年左右了,想升级到这个闪亮的新版本。但是遇到了一个问题apt full-update,即使说有 7 个问题,它也可以执行更新,但它会破坏所有内容(我试过并回滚)

# apt full-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Starting pkgProblemResolver with broken count: 7
Starting 2 pkgProblemResolver with broken count: 7
Investigating (0) plasma-desktop:amd64 < 4:5.27.10-0xneon+22.04+jammy+release+build47 @ii umH Ib >
Broken plasma-desktop:amd64 Depends on plasma-desktop-data:amd64 < 4:5.27.10-0xneon+22.04+jammy+release+build47 -> 4:6.0.0-0xneon+22.04+jammy+release+build52 @ii umU > (= 4:5.27.10-0xneon+22.04+jammy+release+build47)
  Considering plasma-desktop-data:amd64 104 as a solution to plasma-desktop:amd64 5310
  Added plasma-desktop-data:amd64 to the remove list
  Fixing plasma-desktop:amd64 via keep of plasma-desktop-data:amd64
 Try to Re-Instate (0) plasma-desktop-data:amd64
Investigating (0) kwrite:amd64 < 4:23.08.4-0xneon+22.04+jammy+release+build29 -> 4:24.02.0-0xneon+22.04+jammy+release+build31 @ii umU Ib >
Broken kwrite:amd64 Breaks on kate5-data:amd64 < 4:23.08.4-0xneon+22.04+jammy+release+build29 @ii mK >
  Considering kate5-data:amd64 -2 as a solution to kwrite:amd64 102
  Added kate5-data:amd64 to the remove list
  Conflicts//Breaks against version 4:23.08.3-0xneon+22.04+jammy+release+build28 for kate5-data but that is not InstVer, ignoring
  Conflicts//Breaks against version 4:23.08.2-0xneon+22.04+jammy+release+build27 for kate5-data but that is not InstVer, ignoring
  Conflicts//Breaks against version 4:21.12.3-0ubuntu1 for kate5-data but that is not InstVer, ignoring
  Fixing kwrite:amd64 via remove of kate5-data:amd64
Investigating (0) liblayershellqtinterface6:amd64 < none -> 6.0.0-0xneon+22.04+jammy+release+build34 @un uN Ib >
Broken liblayershellqtinterface6:amd64 Breaks on liblayershellqtinterface5:amd64 < 5.27.10-0xneon+22.04+jammy+release+build32 @ii mK IPb > (< 6.0.0)
  Considering liblayershellqtinterface5:amd64 -1 as a solution to liblayershellqtinterface6:amd64 36
  Added liblayershellqtinterface5:amd64 to the remove list
  Conflicts//Breaks against version 5.27.9-0xneon+22.04+jammy+release+build31 for liblayershellqtinterface5 but that is not InstVer, ignoring
  Conflicts//Breaks against version 5.27.8-0xneon+22.04+jammy+release+build30 for liblayershellqtinterface5 but that is not InstVer, ignoring
  Conflicts//Breaks against version 5.24.6-0ubuntu0.1 for liblayershellqtinterface5 but that is not InstVer, ignoring
  Conflicts//Breaks against version 5.24.4-0ubuntu1 for liblayershellqtinterface5 but that is not InstVer, ignoring
  Fixing liblayershellqtinterface6:amd64 via remove of liblayershellqtinterface5:amd64
Investigating (0) kf6-baloowidgets:amd64 < none -> 4:24.02.0-0xneon+22.04+jammy+release+build32 @un uN Ib >
Broken kf6-baloowidgets:amd64 Breaks on libkf5baloowidgets-bin:amd64 < 4:23.08.4-0xneon+22.04+jammy+release+build25 @ii mK > (< 4:24.02)
  Considering libkf5baloowidgets-bin:amd64 -3 as a solution to kf6-baloowidgets:amd64 4
  Added libkf5baloowidgets-bin:amd64 to the remove list
  Conflicts//Breaks against version 4:21.12.3-0ubuntu1 for libkf5baloowidgets-bin but that is not InstVer, ignoring
  Fixing kf6-baloowidgets:amd64 via remove of libkf5baloowidgets-bin:amd64
Investigating (0) libappstreamqt5-3:amd64 < none -> 1.0.2-0xneon+22.04+jammy+release+build43 @un uN Ib >
Broken libappstreamqt5-3:amd64 Breaks on libappstreamqt2:amd64 < 0.16.2-0xneon+22.04+jammy+release+build40 @ii mK >
  Considering libappstreamqt2:amd64 -1 as a solution to libappstreamqt5-3:amd64 3
  Added libappstreamqt2:amd64 to the remove list
  Conflicts//Breaks against version 0.15.2-2 for libappstreamqt2 but that is not InstVer, ignoring
  Fixing libappstreamqt5-3:amd64 via remove of libappstreamqt2:amd64
Investigating (0) libkimageannotator0:amd64 < 0.5.3-1 @ii mK Ib >
Broken libkimageannotator0:amd64 Depends on libkimageannotator-common:amd64 < 0.5.3-1 -> 0.7.0-0xneon1+22.04+jammy+release+build3 @ii umU > (= 0.5.3-1)
  Considering libkimageannotator-common:amd64 -1 as a solution to libkimageannotator0:amd64 0
  Added libkimageannotator-common:amd64 to the remove list
  Fixing libkimageannotator0:amd64 via keep of libkimageannotator-common:amd64
 Try to Re-Instate (0) libkimageannotator-common:amd64
Re-Instated libkimageannotator-common:amd64 (1 vs 1)
Investigating (1) libkimageannotator0:amd64 < 0.5.3-1 @ii mK Ib >
Broken libkimageannotator0:amd64 Depends on libkimageannotator-common:amd64 < 0.5.3-1 -> 0.7.0-0xneon1+22.04+jammy+release+build3 @ii umU > (= 0.5.3-1)
  Considering libkimageannotator-common:amd64 -1 as a solution to libkimageannotator0:amd64 0
  Added libkimageannotator-common:amd64 to the remove list
  Fixing libkimageannotator0:amd64 via keep of libkimageannotator-common:amd64
Investigating (2) libkimageannotator-qt6-0:amd64 < none -> 0.7.0-0xneon1+22.04+jammy+release+build3 @un uN Ib >
Broken libkimageannotator-qt6-0:amd64 Conflicts on libkimageannotator-common:amd64 < 0.5.3-1 | 0.7.0-0xneon1+22.04+jammy+release+build3 @ii umH > (< 0.7)
  Considering libkimageannotator-common:amd64 -1 as a solution to libkimageannotator-qt6-0:amd64 1
  Added libkimageannotator-common:amd64 to the remove list
  Fixing libkimageannotator-qt6-0:amd64 via remove of libkimageannotator-common:amd64
Investigating (2) libkimageannotator0:amd64 < 0.5.3-1 @ii mK Ib >
Broken libkimageannotator0:amd64 Depends on libkimageannotator-common:amd64 < 0.5.3-1 | 0.7.0-0xneon1+22.04+jammy+release+build3 @ii umR > (= 0.5.3-1)
  Considering libkimageannotator-common:amd64 1 as a solution to libkimageannotator0:amd64 0
  Removing libkimageannotator0:amd64 rather than change libkimageannotator-common:amd64
Done
Entering ResolveByKeep

使用pkcon未发生事件进行更新。它在实际更新某些内容之前停止并出现错误

# pkcon update
Getting updates                         [=========================]         
Finished                                [=========================]         
Testing changes                         [=========================]         
Finished                                [=========================]         
Fatal error: The following packages have unmet dependencies:
  plasma-desktop: Depends: plasma-desktop-data (= 4:5.27.10-0xneon+22.04+jammy+release+build47)

答案1

我今天也遇到了同样的问题。

之后sudo apt full-upgrade,您可以尝试我的解决方法来修复依赖关系:

安装 libsdl2-2.0-0 的 libdecor-0-0 依赖项并将其标记为自动安装。

sudo apt full-upgrade libdecor-0-0
sudo apt-mark auto libdecor-0-0

为 plasma-desktop-data 安装 libsdl2-2.0-0 依赖项并将其标记为自动安装。

sudo apt full-upgrade libsdl2-2.0-0
sudo apt-mark auto libsdl2-2.0-0

找到 pkcon 抱怨的依赖版本,并安装它。

sudo apt-cache showpkg plasma-desktop-data
sudo apt-get install plasma-desktop-data=4:5.27.10-0xneon+22.04+jammy+release+build47

最后,pkcon update再次运行。

请注意,如果您尝试在之后重新启动sudo apt full-upgrade,桌面将无法完全发挥作用。

如果您重新启动,它应该可以部分工作,您可以使用快捷方式打开 konsole 并恢复您的备份。

请记住在大更新之前进行备份。

相关内容