apt-get install --reinstall ubuntu-desktop

apt-get install --reinstall ubuntu-desktop

首先我想指出的是,我的问题与此类似,但是响应没有起作用。无法 sudo apt-get install ubuntu-desktop --reinstall

当我跑步时sudo apt install --reinstall ubuntu-server,我得到

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:
 ubuntu-server : Depends: byobu but it is not going to be installed
                 Depends: curl but it is not going to be installed
                 Depends: ubuntu-cloudimage-keyring but it is not going to be installed
                 Depends: vim
                 Recommends: lxd but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

当我尝试安装这些软件包时,以 vim 为例,我得到了

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:
 vim : Depends: vim-common (= 2:7.4.1689-3ubuntu1.4) but 2:8.0.1453-1ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.

如果我重新安装时忽略这些依赖项,重新安装会完成吗?还是这无法工作,需要手动完成?

如果您希望我尝试或澄清任何事情,请告诉我。

相关内容