我更改了我的默认 Ubuntu 源列表,将 dist 名称更改为 而不是,xenial
因为artful
支持已经消失。
我跑了:
$ sudo apt-get update
$ sudo apt-get dist-upgrade
$ sudo apt-get autoremove
并且它成功更新了我的所有软件包(rabbitmq/nvidia/wireless-regdb 除外)。
我的问题是,现在我的很多软件包都坏了,如果不解决这些问题,我就无法安装。
以下错误:
❆ ~/ ➭ sudo apt-get install libdbus-1-dev libdbus-glib-1-dev
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.
libdbus-1-dev : Depends: libdbus-1-3 (= 1.10.6-1ubuntu3.5) but 1.10.22-1ubuntu1 is to be installed
libdbus-glib-1-dev : Depends: libdbus-glib-1-2 (= 0.106-1) but 0.108-2 is to be installed
E: Unable to correct problems, you have held broken packages.
❆ ~/ ➭ sudo apt-get install python3-pil.imagetk
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.
python3-pil.imagetk : Depends: python3-pil (= 3.1.2-0ubuntu1.1) but 4.1.1-3build2 is to be installed
Depends: python3 (< 3.6) but 3.6.3-0ubuntu3 is to be installed
E: Unable to correct problems, you have held broken packages.
我努力了
$ sudo apt-get clear cache
$ sudo apt-get install --reinstall <broken package>
$ sudo apt-get install --fix-broken
没有成功。
我需要这样做吗apt-get purge <broken package>
?它说它将删除很多重要的软件包,当我尝试在 python3 上这样做时,我有点害怕
答案1
备份数据后安装新支持的 Ubuntu 19.10 版本。这是我的意见