今天,我在更新后丢失了网络管理器,但用
sudo service network-manager restart
但是现在,我无法安装新程序。运行 sudo apt-get install program_name 重新运行
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libnl-3-200 : Breaks: libnl-3-200:i386 (!= 3.2.21-1) but 3.2.21-1ubuntu1 is to be installed
libnl-3-200:i386 : Breaks: libnl-3-200 (!= 3.2.21-1ubuntu1) but 3.2.21-1 is to be installed
libnl-genl-3-200 : Depends: libnl-3-200 (= 3.2.21-1ubuntu1) but 3.2.21-1 is to be installed
libnl-route-3-200 : Depends: libnl-3-200 (= 3.2.21-1ubuntu1) but 3.2.21-1 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
运行 sudo apt-get -f install 然后返回:
Preparing to unpack .../libnl-3-200_3.2.21-1ubuntu1_amd64.deb ...
Unpacking libnl-3-200:amd64 (3.2.21-1ubuntu1) over (3.2.21-1) ...
dpkg: error processing archive /var/cache/apt/archives/libnl-3-200_3.2.21-1ubuntu1_amd64.deb (--unpack):
trying to overwrite shared '/usr/share/doc/libnl-3-200/changelog.Debian.gz', which is different from other instances of package libnl-3-200:amd64
Errors were encountered while processing:
/var/cache/apt/archives/libnl-3-200_3.2.21-1ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
我的 /var/cache/apt/archives/ 有两个 *.deb 文件和一个锁定文件以及一个名为 partial 的文件夹。我该如何解决上述问题。最重要的是我需要安装一些程序。请帮忙。谢谢。
答案1
最后我通过删除 /var/cache/apt/archives/ 中的两个 *.deb 文件让它正常工作。但我不知道为什么会发生这种情况。