当我尝试在 ubuntu 12.04 中安装任何东西时,我收到此错误

当我尝试在 ubuntu 12.04 中安装任何东西时,我收到此错误

sudo apt-get install

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: libjson0 : Breaks: libjson0:i386 (!= 0.10-1.2ubuntu2) but 0.9-1ubuntu1 is installed libjson0:i386 : Breaks: libjson0 (!= 0.9-1ubuntu1) but 0.10-1.2ubuntu2 is installed
teamviewer : Depends: lib32asound2 but it is not installed
          Depends: lib32z1 but it is not installed
E: Unmet dependencies. Try using -f.

有人能帮我解决这个问题吗

答案1

您必须强制删除特定的libjson0软件包libjson0:i386,而不删除其依赖项,

sudo dpkg --purge --force-all --force-remove-reinstreq libjson0 libjson0:i386
sudo apt-get -f install

答案2

先生...你应该输入这个命令

apt-get -f install

如果这不起作用,试试这个

sudo apt-get clean
sudo apt-get remove libjson0:i386
sudo apt-get install libjson0
sudo apt-get install lib32asound2
sudo apt-get install lib32z1

如果命令sudo apt-get remove libjson0:i386不起作用,请转到下一步或使用 synapatic 包管理器进行安装

*在 dash 中搜索 这里

相关内容