当我尝试将Debian Jessie升级为伸展时,我得到了这个:
marcin@marcin:~$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... 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:
kde-plasma-desktop : Depends: plasma-desktop (>= 4:5.0.0) but 4:4.11.13-2 is to be installed
plasma-workspace : Breaks: plasma-desktop (<= 4:5) but 4:4.11.13-2 is to be installed
N: Ignoring file '50unattended-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
如何解决这些依赖关系以及50unattended-upgrades文件的错误?
答案 0 :(得分:0)
删除以下软件包更容易:
sudo apt-get remove kde-plasma-desktop plasma-workspace
sudo rm /etc/apt/apt.conf.d/50unattended-upgrades.ucf-dist
然后最终更新和升级:
sudo apt-get update && sudo apt-get dist-upgrade