无法在 Ubuntu 18.04.1 上安装 git 和任何程序

无法在 Ubuntu 18.04.1 上安装 git 和任何程序
osman@thisisakella:~$ sudo apt install git
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 git : Depends: liberror-perl but it is not going to be installed
       Depends: git-man (> 1:2.17.0) but it is not going to be installed
       Depends: git-man (< 1:2.17.0-.) but it is not going to be installed
 libnvidia-ifr1-390 : Depends: libnvidia-gl-390 but it is not going to be installed
 libnvidia-ifr1-390:i386 : Depends: libnvidia-gl-390:i386 but it is not going to be installed
 nvidia-driver-390 : Depends: libnvidia-gl-390 (= 390.87-0ubuntu0~gpu18.04.1) but it is not going to be installed
                     Recommends: libnvidia-gl-390:i386 (= 390.87-0ubuntu0~gpu18.04.1)
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

答案1

先尝试一下

sudo apt update
sudo apt dist-upgrade

相关内容