依赖关系未满足,无法进行任何升级


0

我正在使用Linux Mint14。每当我尝试使用apt-get安装或升级任何东西时,都会收到以下消息:

The following packages have unmet dependencies.
google-chrome-stable : 
Depends: libnss3 (>= 3.17.2) but 3.15.4-0ubuntu0.12.10.2 is to be installed
Depends: libstdc++6 (>= 4.8.0) but 4.7.2-2ubuntu1 is to be installed                    
Depends: lsb-base (>= 4.1) but 4.0-0ubuntu26.2 is to be installed

Google Chrome似乎工作正常,而且我似乎也无法解决此问题。任何更新都将在此消息之后完成。

我试过了:

$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  audacity-data avidemux-common avidemux-plugins-common fgfs-aircraft-base fgfs-base fgfs-scenery-base lame libaften0 libalut0
  libavidemux0 libenet1a libflac++6 libirrlicht1.7a libmlt++3 libmlt-data libmlt5 libplib1 libportsmf0 libsbsms10 melt mjpegtools
  openshot-doc python-mlt5 simgear2.6.0 stellarium-data supertuxkart-data twolame
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED
  google-chrome-stable
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 178 MB disk space will be freed.

这只是删除了我需要的Chrome

$ sudo apt-get update
Ign http://ppa.launchpad.net nadia Release.gpg
Ign http://ppa.launchpad.net nadia Release                                     
Get:1 http://dl.bintray.com jessie Release.gpg [821 B]                         
Get:2 http://dl.bintray.com jessie Release [9,496 B]                            
Ign http://packages.linuxmint.com nadia Release.gpg                          
Hit http://packages.linuxmint.com nadia Release                              
Get:3 http://dl.bintray.com jessie/main amd64 Packages [1,790 B]
Get:4 http://dl.bintray.com jessie/main i386 Packages [1,790 B]                                                              
Ign http://packages.linuxmint.com nadia/main amd64 Packages/DiffIndex                                 
Err http://ppa.launchpad.net nadia/main Sources                       
  404  Not Found
Ign http://packages.linuxmint.com nadia/upstream amd64 Packages/DiffIndex
Err http://ppa.launchpad.net nadia/main amd64 Packages
  404  Not Found
Err http://ppa.launchpad.net nadia/main i386 Packages
  404  Not Found
Ign http://ppa.launchpad.net nadia/main Translation-en_GB
Ign http://ppa.launchpad.net nadia/main Translation-en
Ign http://packages.linuxmint.com nadia/import amd64 Packages/DiffIndex
Ign http://packages.linuxmint.com nadia/main i386 Packages/DiffIndex
Ign http://packages.linuxmint.com nadia/upstream i386 Packages/DiffIndex
Ign http://dl.bintray.com jessie/main Translation-en_GB
Ign http://dl.bintray.com jessie/main Translation-en
Ign http://packages.linuxmint.com nadia/import i386 Packages/DiffIndex
Hit http://packages.linuxmint.com nadia/main amd64 Packages                                                                       
Hit http://packages.linuxmint.com nadia/upstream amd64 Packages                                                                   
Hit http://packages.linuxmint.com nadia/import amd64 Packages                                                                     
Hit http://packages.linuxmint.com nadia/main i386 Packages                                                                        
Hit http://packages.linuxmint.com nadia/upstream i386 Packages                                                                    
Hit http://packages.linuxmint.com nadia/import i386 Packages                                                                      
Ign http://packages.linuxmint.com nadia/import Translation-en_GB                                                                  
Ign http://packages.linuxmint.com nadia/import Translation-en                                                                     
Ign http://packages.linuxmint.com nadia/main Translation-en_GB                                                                    
Ign http://packages.linuxmint.com nadia/main Translation-en                                                                       
Ign http://packages.linuxmint.com nadia/upstream Translation-en_GB                                                                
Ign http://packages.linuxmint.com nadia/upstream Translation-en                                                                   
Fetched 13.9 kB in 9s (1,537 B/s)                                                                                                 
W: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/dists/nadia/main/source/Sources  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/dists/nadia/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/dists/nadia/main/binary-i386/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.

也没有帮助。

还根据注释中的建议尝试了以下方法:

sudo apt-get install lsb-base libstdc++6 libnss3


Reading package lists... Done
Building dependency tree       
Reading state information... Done
lsb-base is already the newest version.
libnss3 is already the newest version.
libstdc++6 is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
 google-chrome-stable : Depends: libnss3 (>= 3.17.2) but 3.15.4-0ubuntu0.12.10.2 is to be installed
                        Depends: libstdc++6 (>= 4.8.0) but 4.7.2-2ubuntu1 is to be installed
                        Depends: lsb-base (>= 4.1) but 4.0-0ubuntu26.2 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

我需要电脑才能工作,而且非常忙碌,所以没有时间升级到较新版本的Mint,这是我的首选。任何想法如何解决这个问题?


根据日志,sudo apt-get -f install显然是删除了Chrome的不sudo apt-get update。我假设您已尝试再次安装Chrome并强制(-f)安装?
Ramhound

删除chrome后,由于无法解决依赖关系,我无法重新安装它。经过90分钟的尝试后,chrome再次起作用,尽管dpkg等认为它已损坏。我不想冒险再次将其卸载,因为它是我的主要工作工具
Christian Mayne,

只需使用即可sudo apt-get install lsb-base libstdc++6 libnss3解决您的原始问题。此评论基于以下问题的答案:无法安装Google Chrome。我如何解决它?对于Ubuntu,其输出几乎相同。您可能还必须添加一个专门的(通用)存储库,我不知道它将对Mint使用什么,但是我怀疑可以使用相同的存储库。
Ramhound

感谢您的建议,只是去尝试,并没有工作,要么already the newest version-见上面的编辑
克里斯蒂安·梅恩

您运行了错误的命令。其sudo apt-get install -f。那就是我每次都这样做的方式。在-f后的install是修复的依赖关系。
xR34P3Rx
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.