我尝试在重启后将我的 ubuntu 升级到 17.04,如果我运行apt dist-upgrade
告诉我:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libubuntu-app-launch4 : Depends: ubuntu-app-launch (= 0.11+17.04.20170321-0ubuntu1) but 0.9+16.10.20160928-0ubuntu1 is installed
ubuntu-app-launch-tools : Depends: ubuntu-app-launch (= 0.11+17.04.20170321-0ubuntu1) but 0.9+16.10.20160928-0ubuntu1 is installed
E: Unmet dependencies. Try using -f.
如果我跑apt -f install
或者apt-get -f install
告诉我:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
ubuntu-app-launch
The following packages will be upgraded:
ubuntu-app-launch
1 upgraded, 0 newly installed, 0 to remove and 1103 not upgraded.
187 not fully installed or removed.
Need to get 0 B/14.3 kB of archives.
After this operation, 101 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 441897 files and directories currently installed.)
Preparing to unpack .../ubuntu-app-launch_0.11+17.04.20170321-0ubuntu1_amd64.deb ...
Traceback (most recent call last):
File "/usr/bin/click", line 55, in <module>
from click import commands
ImportError: cannot import name 'commands'
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
dpkg: error processing archive /var/cache/apt/archives/ubuntu-app-launch_0.11+17.04.20170321-0ubuntu1_amd64.deb (--unpack):
there is no script in the new version of the package - giving up
Errors were encountered while processing:
/var/cache/apt/archives/ubuntu-app-launch_0.11+17.04.20170321-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
根据此链接更新至 16.10 后出现 Dpkg 错误我试着apt autoremove -f click click-apparmor ubuntu-app-launch
告诉我
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libubuntu-app-launch4 : Depends: ubuntu-app-launch (= 0.11+17.04.20170321-0ubuntu1) but it is not going to be installed
ubuntu-app-launch-tools : Depends: ubuntu-app-launch (= 0.11+17.04.20170321-0ubuntu1) but it is not going to be installed
unity8-desktop-session : Depends: ubuntu-app-launch but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
我能做些什么?!